IMO 2012 A1 (P4) #
A triple $(a, b, c)$ of integers is called a Heron triple if $$ a^2 + b^2 + c^2 = 2ab + 2bc + 2ca. $$ Find all functions $f : ℤ → ℤ$ such that $f(a), f(b), f(c))$ is a Heron triple for any $a, b, c ∈ ℤ$ satisfying $a + b + c = 0$.
Answer #
They are precisely the functions of the following form:
- $f(n) = cn^2$;
- $f(n) = \begin{cases} c & \text{if } 2 ∤ n, \\ 0 & \text{if } 2 ∣ n, \end{cases}$;
- $f(n) = \begin{cases} c & \text{if } 2 ∤ n, \\ 4c & \text{if } n ≡ 2 \pmod{4}, \\ 0 & \text{if } 2 ∣ n. \end{cases}$
Solution #
We follow the official solution. Our implementation is slightly more complicated at the final step in the case where $f(2) = 4f(1)$ and $f(3) = 9f(1)$, but it works even when the range of the function is generalized to any integral domain (of characteristic not equal to $3$). The difference is that $k(n - 1)^2 ≠ k(n - 3)^2$ is not always true this time, but $k(n - 1)^2 = k(n - 3)^2$ would imply either $k = 0$, $R$ has characteristic $2$, or $n = 2$ in $R$, and in all cases we still get $f(n + 1) = k(n + 1)^2$.
Heron triples #
If (a, b, c) is a Heron triple, then (b, c, a) is a Heron triple.
If (a, b, c) is a Heron triple, then (c, a, b) is a Heron triple.
If (a, b, c) is a Heron triple, then (b, a, c) is a Heron triple.
If (a, b, c) is a Heron triple, then (c, b, a) is a Heron triple.
If (a, b, c) is a Heron triple, then (a, c, b) is a Heron triple.
If (a, b, c) is a Heron triple, then (ra, rb, rc) is a Heron triple for any r.
The main formula which inspires the name "Heron triple":
2(a^2 b^2 + b^2 c^2 + c^2 a^2) - (a^4 + b^4 + c^4) is equal to
(a + b - c)(b + c - a)(c + a - b)(a + b + c).
If char(R) ≠ 3 and (x, x, x) is a Heron triple, then x = 0.
The triple (x, y, 0) is a Heron triple if and only if x = y.
The triple (rx^2, ry^2, z) is a Heron triple if and only if
either z = r(x + y)^2 or z = r(x - y)^2.
The triple (r, r, z) is a Heron triple if and only if z = 4r or z = 0.
Start of the problem #
A function f : G → R is called good if (f(a), f(b), f(c)) is
a Heron triple whenever a, b, c ∈ G satisfies a + b + c = 0.
Equations
- IMOSL.IMO2012A1.good f = ∀ (a b c : G), a + b + c = 0 → IMOSL.IMO2012A1.HeronTriple (f a) (f b) (f c)
Instances For
An alternative definition of good function when G is a group.
If f : G → R is good, then the function rf : x ↦ rf(x) is good for any r : R.
Suppose that char(R) ≠ 3. If f : G → R is good then f(0) = 0.
If f : G → R is good with f(0) = 0 then
(f(x), f(y), f(x + y)) is a Heron triple for any x, y : G.
If f : G → R is good with f(0) = 0 and c : G satisfies f(c) = 0,
then f(x + c) = f(x) for any x : G.
If f : G → R is good with f(0) = 0 and c : G satisfies f(c) = 0,
then f(nc) = 0 for every integer n.
If f(0) = 0 and f(N) = 0 for some N : ℕ nonzero, then for any n : ℕ,
we have f(n) = f(x) where x is the image of n in Fin N.
If char(R) ≠ 3, f(2) = 4 f(1), and f(3) = f(1), then f(n) = f(1) if n is odd,
f(n) = 4f(1) if n ≡ 2 (mod 4), and f(n) = 0 if 4 ∣ n.