How many functions from integers to integers are there such that for all integer we have
Note: The main point is not really solving it, but to prove your result.
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.
The RHS is n , which ranges through the whole set of integers, hence f ( m ) is surjective ∀ m ∈ Z .
f ( x ) = f ( y ) , x , y ∈ Z ⟹ f ( f ( x ) + 1 ) = f ( f ( y ) + 1 )
⟹ x = y ⟹ f ( m ) is injective , ∀ m ∈ Z
Let P ( n ) be the statement f ( f ( n ) + 1 ) = n .
Let f ( n ) = m . We know that m ranges through the whole set of integers Z .
f ( m + 1 ) = n
⟹ f ( f ( m + 1 ) ) = f ( n ) = m , ∀ m ∈ Z ( 1 )
P ( m ) ⟹ f ( f ( m ) + 1 ) = m = ( 1 ) f ( f ( m + 1 ) )
\stackrel{\text{injective}}\implies f(m)+1=f(m+1), \forall m\in\mathbb Z
The only functions f : Z → Z that could satisfy this property are of the form f ( n ) = n + c for some integer c .
When n goes up by 1 , the function also goes up by 1 , and vice versa. Knowing this, it is not difficult to see why my last claim is true.
But such a function would in our case require c = − 2 1 . The codomain of our function is Z , which makes this impossible, hence there are no function-solutions at all. □