Consider the mapping defined as
for all . Is this mapping injective ? Is this mapping surjective ?
Notations :
denotes the floor function .
denotes the fractional part function .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Credit to @Guillermo Templado
Answer: both.
Proof:
Proof of injectivity:
F can be written as F ( x ) = ( ⌊ x ⌋ , x − ⌊ x ⌋ )
F ( x ) = F ( y )
⇒ ( ⌊ x ⌋ , x − ⌊ x ⌋ ) = ( ⌊ y ⌋ , y − ⌊ y ⌋ )
⇒ { ⌊ x ⌋ = ⌊ y ⌋ x − ⌊ x ⌋ = y − ⌊ y ⌋
⇒ x = y (by summing the two equations)
Proof of surjectivity:
∀ ( a , b ) ∈ Z × [ 0 , 1 ) , ∃ x = a + b ∈ R s . t . F ( x ) = ( a , b )