


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



(a) Prove that the function is onto. Example solution based on above function : Prove that ∀y∈ Z+ , ∃x∈ Zodd^ such that F(x)=y Let y be a generic particular element in Z+ Find x such that F(x)=y Case 1: y is even Rewrite y as 2i, i∈ Z by the definition of even numbers Let x = -1 * i x is an integer by closure of integers under * F(-i) = 2i by function F F(-i) = y by substitution So, we have constructed x such that F(x) = y. Case 2: y is odd Rewrite y as 2i+1, i∈ Z+^ by the definition of odd numbers and y being positive Let x = i+ x is a positive integer by closure of positive integers under + F(i+1) = 2(i+1)-1 by function F F(i+1) = 2i-1 by algebra F(i+1) = y by substitution So, we have constructed x such that F(x) = y. Since we have proven F(x)=y for both cases, and these two cases form a partition of the possible values for y, we have shown that ∀y∈ Z+ , ∃x∈ Zodd^ such that F(x)=y by generalizing from the generic particular.
(b) Prove that the function is one-to-one. Example solution based on above function : Prove that ∀a,b∈ Zodd , F(a)=F(b)