Weird Functional Equation

Algebra Level 4

f f ( a ) ( b ) f f ( b ) ( a ) = ( f ( a + b ) ) 2 f^{f(a)}(b) f^{f(b)}(a) = \big(f(a+b)\big)^2

Let f : N N f:\mathbb{N} \to \mathbb{N} be an injective function such that the above holds true for all a , b N a,b \in \mathbb{N} . Let S S be the sum of all possible values of f ( 2017 ) f(2017) . Find S m o d 1000 S \bmod{1000} .


Note: f k ( n ) f^{k} (n) means f ( f ( f ( f ( n ) ) ) ) number of f ’s = k . \underbrace{f\big(f(f(\ldots f(n)\ldots))\big)}_{\text{number of }f \text{'s}\ = \ k}.


The answer is 18.

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.

1 solution

Sharky Kesa
Apr 15, 2017

Let P ( a , b ) P(a, b) denote the assertion f f ( a ) ( b ) f f ( b ) ( a ) = f ( a + b ) 2 f^{f(a)}(b) f^{f(b)}(a) = f(a + b)^2 for all positive integers a a and b b .

P ( a , a ) P(a, a) gives f f ( a ) ( a ) = f ( 2 a ) f^{f(a)}(a) = f(2a) , or f f ( a ) 1 ( a ) = 2 a f^{f(a) - 1}(a) = 2a since f f is injective.

Suppose there existed a k k with f ( k ) = 1 f(k) = 1 . Then, P ( k , k ) P(k, k) gives f 0 ( k ) = 2 k f^0(k) = 2k , i.e. k = 2 k k = 2k , which is impossible. Thus, f ( a ) 2 f(a) \ge 2 for all a a , so f ( f f ( a ) 2 ( a ) ) = 2 a f\left(f^{f(a) - 2}(a) \right) = 2a for all a a . Thus, all even positive integers are in the range of f f .

For every positive integer n n , define S n = { n , f ( n ) , f ( f ( n ) ) , } . S_n = \{n, f(n), f(f(n)), \dots\}. Then, the result above gives that 2 n S n 2n \in S_n for all n n . By an easy induction, we see that 2 k n S n 2^k n \in S_n for all k 0 k \ge 0 , so S n S_n is infinite for all n n .

Suppose n n and k > 0 k > 0 are such that f k ( n ) = n f^k(n) = n . Then, S n S_n is finite, a contradiction to the above. Thus, f k ( n ) n f^k(n) \neq n for all n n and k > 0 k > 0 .

We know that there exists a positive integer k k with f ( k ) = 2 f(k) = 2 . Then, f f ( k ) 1 ( k ) = 2 k f^{f(k) - 1}(k) = 2k , or 2 k = f f ( k ) 1 ( k ) = f 1 ( k ) = 2 2k = f^{f(k) - 1}(k) = f^1(k) = 2 , so k = 1 k = 1 . Thus, f ( 1 ) = 2 f(1) = 2 .


Next, we show that f ( 2 ) = 3 f(2) = 3 and f ( 3 ) = 4 f(3) = 4 . We know that there exists an integer a 1 a \ge 1 with f ( a + 1 ) = 4 f(a + 1) = 4 . Then, P ( 1 , a ) P(1, a) gives f ( f ( a ) ) f f ( a ) ( 1 ) = f ( a + 1 ) 2 = 16. f(f(a)) f^{f(a)}(1) = f(a + 1)^2 = 16. We know that f ( f ( a ) ) 1 f(f(a)) \neq 1 , and if f ( f ( a ) ) = 2 f(f(a)) = 2 , then f ( a ) = 1 f(a) = 1 , a contradiction. Thus, f ( f ( a ) ) 4 f(f(a)) \ge 4 .

Similarly, f f ( a ) ( 1 ) 1 f^{f(a)}(1) \neq 1 , and if f f ( a ) ( 1 ) = 2 f^{f(a)}(1) = 2 , then f f ( a ) 1 ( 1 ) = 1 f^{f(a) - 1}(1) = 1 , so f ( a ) = 1 f(a) = 1 , a contradiction. Thus, f f ( a ) ( 1 ) 4 f^{f(a)}(1) \ge 4 .

These two inequalities force f ( f ( a ) ) = f f ( a ) ( 1 ) = 4 f(f(a)) = f^{f(a)}(1) = 4 . Since f ( a + 1 ) = 4 f(a + 1) = 4 , we get f ( a ) = a + 1 f(a) = a + 1 . In addition, f f ( a ) ( 1 ) = 4 f^{f(a)}(1) = 4 , or f f ( a ) 1 ( 2 ) = 4 f^{f(a) - 1}(2) = 4 . However, from P ( 2 , 2 ) P(2, 2) , we get f f ( 2 ) 1 ( 2 ) = 4 f^{f(2) - 1}(2) = 4 , so f ( a ) = f ( 2 ) f(a) = f(2) and a = 2 a = 2 . Finally, f ( a ) = a + 1 f(a) = a + 1 , so f ( 2 ) = 3 f(2) = 3 . Thus, f ( 2 ) = 3 f(2) = 3 and f ( a + 1 ) = f ( 3 ) = 4 f(a + 1) = f(3) = 4 .


Now, we prove that f ( n ) = n + 1 f(n) = n + 1 by induction on n n . The base cases f ( n ) = n + 1 f(n) = n + 1 for n 3 n \le 3 have been done above.

Suppose that f ( n ) = n + 1 f(n) = n + 1 for all n 2 k 1 n \le 2k - 1 , with k 2 k \ge 2 . We will show that f ( 2 k ) = 2 k + 1 f(2k) = 2k + 1 and f ( 2 k + 1 ) = 2 k + 2 f(2k + 1) = 2k + 2 .

Let a 1 a \ge 1 be an integer with f ( a + 1 ) = 2 k + 2 f(a + 1) = 2k + 2 . Then, P ( 1 , a ) P(1, a) gives f ( f ( a ) ) f f ( a ) ( 1 ) = f ( a + 1 ) 2 = ( 2 k + 2 ) 2 . f(f(a)) f^{f(a)}(1) = f(a + 1)^2 = (2k + 2)^2.

Suppose that f ( f ( a ) ) = r 2 k f(f(a)) = r \le 2k . Then f ( a ) = r 1 f(a) = r - 1 and a = r 2 a = r - 2 , so f f ( a ) ( 1 ) = f r 1 ( 1 ) = r f^{f(a)}(1) = f^{r - 1}(1) = r , since r 1 2 k 1 r - 1 \le 2k - 1 . Then, r 2 = ( 2 k + 2 ) 2 r^2 = (2k + 2)^2 , so r = 2 k + 2 r = 2k + 2 , a contradiction. Thus, f ( f ( a ) ) 2 k + 1 f(f(a)) \ge 2k + 1 . However, since 2 k + 1 ( 2 k + 2 ) 2 2k + 1 \nmid (2k + 2)^2 , we have f ( f ( a ) ) 2 k + 2 f(f(a)) \ge 2k + 2 .

Suppose that f f ( a ) ( 1 ) = r 2 k f^{f(a)}(1) = r \le 2k . Then, since f r 1 ( 1 ) = r f^{r - 1}(1) = r , we get f ( a ) = r 1 f(a) = r - 1 , so a = r 2 a = r - 2 , and similarly to the above, we get f ( f ( a ) ) = r f(f(a)) = r and r = 2 k + 2 r = 2k + 2 , a contradiction. Thus, f f ( a ) ( 1 ) 2 k + 1 f^{f(a)}(1) \ge 2k + 1 , and since 2 k + 1 ( 2 k + 2 ) 2 2k + 1 \nmid (2k + 2)^2 , we get f f ( a ) ( 1 ) 2 k + 2 f^{f(a)}(1) \ge 2k + 2 .

The above inequalities force f ( f ( a ) ) = f f ( a ) ( 1 ) = 2 k + 2 f(f(a)) = f^{f(a)}(1) = 2k + 2 . Recall that f ( a + 1 ) = 2 k + 2 f(a + 1) = 2k + 2 as well, so f ( a ) = a + 1 f(a) = a + 1 .

However, from P ( k + 1 , k + 1 ) P(k + 1, k + 1) , we know that f f ( k + 1 ) 1 ( k + 1 ) = 2 k + 2 f^{f(k + 1) - 1}(k + 1) = 2k + 2 . Since k + 1 2 k 1 k + 1 \le 2k - 1 (as k 2 k \ge 2 ), we see that f ( k + 1 ) = k + 2 f(k + 1) = k + 2 , so f k + 1 ( k + 1 ) = 2 k + 2 f^{k + 1}(k + 1) = 2k + 2 .

However, we see that f k 1 ( k + 1 ) = f k 2 ( k + 2 ) = = f ( 2 k 1 ) = 2 k , f^{k - 1}(k + 1) = f^{k - 2}(k + 2) = \dots = f(2k - 1) = 2k, so 2 k + 2 = f k + 1 ( k + 1 ) = f ( f ( 2 k ) ) 2k + 2 = f^{k + 1}(k + 1) = f(f(2k)) . Since f ( a + 1 ) = 2 k + 2 f(a + 1) = 2k + 2 , we see that f ( 2 k ) = a + 1 f(2k) = a + 1 . Since f ( a ) = a + 1 f(a) = a + 1 as well, we see that a = 2 k a = 2k , so f ( 2 k ) = 2 k + 1 f(2k) = 2k + 1 and f ( 2 k + 1 ) = 2 k + 2 f(2k + 1) = 2k + 2 .


The induction is complete, so the only possible function is f ( n ) = n + 1 f(n) = n + 1 for all n n . Since this forces f f ( a ) ( b ) = f f ( b ) ( a ) = f ( a + b ) = a + b + 1 f^{f(a)}(b) = f^{f(b)}(a) = f(a + b) = a + b + 1 for all a a and b b , this function is valid.

Therefore, f ( 2017 ) = 2018 f(2017)=2018 , and this is the only value, so the answer is S = 2018 ( m o d 1000 ) 18 S = 2018 \pmod{1000} \equiv18 .

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?

MAC A - 4 years, 1 month ago

Log in to reply

I fixed it. To learn about modulo, look at this page.

Sharky Kesa - 4 years, 1 month ago

I struggled to follow the first sections of this proof - why was P introduced?

Malcolm Rich - 4 years, 1 month ago

Log in to reply

Basically, it makes it easier to show the substitutions, rather than stating explicitly that substitution.

Sharky Kesa - 4 years, 1 month ago

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?

Malcolm Rich - 4 years, 1 month ago

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

Amit Chand - 4 years, 1 month ago

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.

Malcolm Rich - 4 years, 1 month ago

So how do you go from this proof to the final answer about S mod 1000?

Alex Silverman - 4 years, 1 month ago

Log in to reply

Oops, forgot about posting that. Thanks!

Sharky Kesa - 4 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...