f f ( a ) ( b ) f f ( b ) ( a ) = ( f ( a + b ) ) 2
Let f : N → N be an injective function such that the above holds true for all a , b ∈ N . Let S be the sum of all possible values of f ( 2 0 1 7 ) . Find S m o d 1 0 0 0 .
Note:
f
k
(
n
)
means
number of
f
’s
=
k
f
(
f
(
f
(
…
f
(
n
)
…
)
)
)
.
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.
This is simply induction method to find the function. It doesn't provide the solution to the problem. What is S mod 1000? What does it even mean?
Log in to reply
I fixed it. To learn about modulo, look at this page.
I struggled to follow the first sections of this proof - why was P introduced?
Log in to reply
Basically, it makes it easier to show the substitutions, rather than stating explicitly that substitution.
Log in to reply
Does the solution need to show f(2)=3. Can't it proceed straight to induction once we've shown f(1)=2?
on the second line you used the fact that, since the function is injective therefore f^-1 exist. However i think that, if we think pointwise then this function is not bijective, on the number line, we would get two pair for which the statement would be true and so not bijective and hence inverse does not exist. If i am missing any point then please tell
Log in to reply
It might not be immediately obvious but expressing f(2) as f(1+1) and knowing that A^2 = B^2 implies A=B for all natural numbers proves that f(2) must lie somewhere in the sequence f(1),f(f(1)), f(f(.....f(1)....)). In fact it is f applied f(1) times to 1.
Since f is injective, 2 must therefore be equal to f applied f(1)-1 times to 1.
So how do you go from this proof to the final answer about S mod 1000?
Problem Loading...
Note Loading...
Set Loading...
Let P ( a , b ) denote the assertion f f ( a ) ( b ) f f ( b ) ( a ) = f ( a + b ) 2 for all positive integers a and b .
P ( a , a ) gives f f ( a ) ( a ) = f ( 2 a ) , or f f ( a ) − 1 ( a ) = 2 a since f is injective.
Suppose there existed a k with f ( k ) = 1 . Then, P ( k , k ) gives f 0 ( k ) = 2 k , i.e. k = 2 k , which is impossible. Thus, f ( a ) ≥ 2 for all a , so f ( f f ( a ) − 2 ( a ) ) = 2 a for all a . Thus, all even positive integers are in the range of f .
For every positive integer n , define S n = { n , f ( n ) , f ( f ( n ) ) , … } . Then, the result above gives that 2 n ∈ S n for all n . By an easy induction, we see that 2 k n ∈ S n for all k ≥ 0 , so S n is infinite for all n .
Suppose n and k > 0 are such that f k ( n ) = n . Then, S n is finite, a contradiction to the above. Thus, f k ( n ) = n for all n and k > 0 .
We know that there exists a positive integer k with f ( k ) = 2 . Then, f f ( k ) − 1 ( k ) = 2 k , or 2 k = f f ( k ) − 1 ( k ) = f 1 ( k ) = 2 , so k = 1 . Thus, f ( 1 ) = 2 .
Next, we show that f ( 2 ) = 3 and f ( 3 ) = 4 . We know that there exists an integer a ≥ 1 with f ( a + 1 ) = 4 . Then, P ( 1 , a ) gives f ( f ( a ) ) f f ( a ) ( 1 ) = f ( a + 1 ) 2 = 1 6 . We know that f ( f ( a ) ) = 1 , and if f ( f ( a ) ) = 2 , then f ( a ) = 1 , a contradiction. Thus, f ( f ( a ) ) ≥ 4 .
Similarly, f f ( a ) ( 1 ) = 1 , and if f f ( a ) ( 1 ) = 2 , then f f ( a ) − 1 ( 1 ) = 1 , so f ( a ) = 1 , a contradiction. Thus, f f ( a ) ( 1 ) ≥ 4 .
These two inequalities force f ( f ( a ) ) = f f ( a ) ( 1 ) = 4 . Since f ( a + 1 ) = 4 , we get f ( a ) = a + 1 . In addition, f f ( a ) ( 1 ) = 4 , or f f ( a ) − 1 ( 2 ) = 4 . However, from P ( 2 , 2 ) , we get f f ( 2 ) − 1 ( 2 ) = 4 , so f ( a ) = f ( 2 ) and a = 2 . Finally, f ( a ) = a + 1 , so f ( 2 ) = 3 . Thus, f ( 2 ) = 3 and f ( a + 1 ) = f ( 3 ) = 4 .
Now, we prove that f ( n ) = n + 1 by induction on n . The base cases f ( n ) = n + 1 for n ≤ 3 have been done above.
Suppose that f ( n ) = n + 1 for all n ≤ 2 k − 1 , with k ≥ 2 . We will show that f ( 2 k ) = 2 k + 1 and f ( 2 k + 1 ) = 2 k + 2 .
Let a ≥ 1 be an integer with f ( a + 1 ) = 2 k + 2 . Then, P ( 1 , a ) gives f ( f ( a ) ) f f ( a ) ( 1 ) = f ( a + 1 ) 2 = ( 2 k + 2 ) 2 .
Suppose that f ( f ( a ) ) = r ≤ 2 k . Then f ( a ) = r − 1 and a = r − 2 , so f f ( a ) ( 1 ) = f r − 1 ( 1 ) = r , since r − 1 ≤ 2 k − 1 . Then, r 2 = ( 2 k + 2 ) 2 , so r = 2 k + 2 , a contradiction. Thus, f ( f ( a ) ) ≥ 2 k + 1 . However, since 2 k + 1 ∤ ( 2 k + 2 ) 2 , we have f ( f ( a ) ) ≥ 2 k + 2 .
Suppose that f f ( a ) ( 1 ) = r ≤ 2 k . Then, since f r − 1 ( 1 ) = r , we get f ( a ) = r − 1 , so a = r − 2 , and similarly to the above, we get f ( f ( a ) ) = r and r = 2 k + 2 , a contradiction. Thus, f f ( a ) ( 1 ) ≥ 2 k + 1 , and since 2 k + 1 ∤ ( 2 k + 2 ) 2 , we get f f ( a ) ( 1 ) ≥ 2 k + 2 .
The above inequalities force f ( f ( a ) ) = f f ( a ) ( 1 ) = 2 k + 2 . Recall that f ( a + 1 ) = 2 k + 2 as well, so f ( a ) = a + 1 .
However, from P ( k + 1 , k + 1 ) , we know that f f ( k + 1 ) − 1 ( k + 1 ) = 2 k + 2 . Since k + 1 ≤ 2 k − 1 (as k ≥ 2 ), we see that f ( k + 1 ) = k + 2 , so f k + 1 ( k + 1 ) = 2 k + 2 .
However, we see that f k − 1 ( k + 1 ) = f k − 2 ( k + 2 ) = ⋯ = f ( 2 k − 1 ) = 2 k , so 2 k + 2 = f k + 1 ( k + 1 ) = f ( f ( 2 k ) ) . Since f ( a + 1 ) = 2 k + 2 , we see that f ( 2 k ) = a + 1 . Since f ( a ) = a + 1 as well, we see that a = 2 k , so f ( 2 k ) = 2 k + 1 and f ( 2 k + 1 ) = 2 k + 2 .
The induction is complete, so the only possible function is f ( n ) = n + 1 for all n . Since this forces f f ( a ) ( b ) = f f ( b ) ( a ) = f ( a + b ) = a + b + 1 for all a and b , this function is valid.
Therefore, f ( 2 0 1 7 ) = 2 0 1 8 , and this is the only value, so the answer is S = 2 0 1 8 ( m o d 1 0 0 0 ) ≡ 1 8 .