Feqn Day3 July 19
Feqn Day3 July 19
Problem 1. Find all functions f : R → R such that f (x2 ) − f (y 2 ) = (x + y)(f (x) − f (y))
holds for all x, y ∈ R.
Solution: We observe that if f satisfies this functional equation, then so does f + c for any
constant c. Motivated from this, we can assume w.l.o.g. that f (0) = 0. To formalise it, let
us define g(x) = f (x) − f (0) and observe that g satisfies the same functional equation. But
for g, we have an additional information, namely g(0) = 0.
We have
g(x2 ) − g(y 2 ) = (x + y)(g(x) − g(y)) (1)
Putting y = 0 in equation (1) we get g(x2 ) = xg(x). We substitute this back into (1) to get
g(x) g(y)
xg(x) − yg(y) = (x + y)(g(x) − g(y)) =⇒ = (for all x, y 6= 0
x y
The last equation tells us that g(x)/x is a constant function, i.e. g(x) = kx for all x 6= 0 for
some constant k (which is g(1)). Since g(0) = 0, so this also holds for x = 0.
Thus, g(x) = kx and hence f (x) = kx + c for some constants k and c. We observe that for
any value of k and c, this function indeed satisfies the given functional equation.
1
So here is our guess: if n = a0 + a1 2+ · · · + ak 2k = (ak · · · a1 a0 )2 be the binary representation
of n, then f (n) = (a0 a1 · · · ak )2 = a0 2k + a1 2k−1 + · · · + ak−1 2 + ak .
To prove this, we shall induct on k (or equivalently, on the number of digits of n). When
k = 0 or 1, we have checked that our claim holds. Next, suppose the claim holds for every
k < m. We shall now prove our claim for k = m.
Case 1: a0 = 0 (i.e., all even numbers with m + 1 digits in binary)
Since n = (am am−1 · · · a1 0)2 = 2 × (am am−1 · · · a1 )2 , we can say that
n that are less than 2048. So we have to subtract the count of those n that are > 2020.
2
Since 2020 = (11111100100)2 so there is only one n > 2020 which is palindromic, namely
(11111111111)2 = 2047. Final answer: 93.
Suppose this claim holds for all k < m. Lets prove it for k = m.
Let f (am ) be the minimal element of Sm = {f (n) : n ≥ m}. If am > m then am − 1 ≥ m, so
f (am −1) ≥ m (by hypothesis (iii)). Hence f (f (am −1)) < f (am ) contradicts the minimality
of f (am ) in Sm . Therefore we conclude that am = m, i.e., f (m) must be the minimum element
in Sm . Note that if f (m) = f (m0 ) for any m < m0 then we get a contradiction (just replace
am with m0 in the above argument).
Note that (ii) is immediate from the fact that f (m − 1) is the smallest element in Sm−1 and
hence f (m) > f (m − 1). And we already had f (m − 1) > · · · > f (2) > f (1).
Next we have to show that if n ≥ m then f (n) ≥ m. This follows from the fact that if n > m
then f (n) > f (m) and f (m) > f (m − 1) > f (m − 2) > · · · > f (1). Thus, there are at least
m numbers less than f (n), hence f (n) > m. This completes the induction.
We have shown that f (1) < f (2) < f (3) < · · · . Now, fix any n. It follows from the above
that f (n) ≥ n. Now if f (n) > n then f (n) ≥ n + 1 =⇒ f (f (n)) ≥ f (n + 1), which
contradicts the given inequality that f (f (n)) < f (n + 1). Therefore f (n) = n for all n ∈ N.
3
Problem 4. Let N0 be the set N ∪ {0}. Find all f : N0 → N0 satisfying f (m2 + n2 ) =
f (m)2 + f (n)2 for every m, n ∈ N0 and f (1) > 0.
Solution: First show that f (0) = 0 and f (m2 ) = f (m)2 and f (1) = 1. Hence we also have
Note that if p2 + q 2 = r2 + s2 then f (p)2 + f (q)2 = f (r)2 + f (s)2 . (Prove this by combining
(2) with the master equation.) So in order to show that f (n) = n for every n, by induction
on n, we can use identities of the form p2 + q 2 = r2 + s2 .
(3k + 1)2 + (4k + 3)2 = (5k + 3)2 + 12 =⇒ f (3k + 1)2 + f (4k + 3)2 = f (5k + 3)2 + f (1)2
Find such identities for f (5k), f (5k + 1), f (5k + 2), f (5k + 4) and complete the proof by
induction on k.
For a complete solution, you may consult BJV’s book (this is Problem 2.11 there).