Q:Given a function f from {1, 2...,n} to the set of integers, determine whether f is one-to-one OR onto.
I understand how the logic works for both these types of func