Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Determine whether each statement is one-to-one and onto and prove it? (a) The fu

ID: 1720929 • Letter: D

Question

Determine whether each statement is one-to-one and onto and prove it?

(a) The function that assigns to each pair of positive integers the maximum of these two integers. (b) The function that assigns to each positive integer the number of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 that do not appear as digits in the decimal representation of the integer. (c) The function that assigns to a binary string the numerical position of the first 1 in the string and that assigns the value 0 to a bit string consisting of all 0s.

Explanation / Answer

(a) The function is not one-one

maximum (1,3) = 3

maximum (2,3) =3

Since two sets of number map to the same number, hence the function is not one-one

The full range is covered, hence the function is onto

Therefore, the function is not one-one but onto

(b) The function will be one-one and onto

c) Function is one-one and onto

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote