Kvant Math Problem 1556

The previous construction $n=1+4\cdot 3^{2k}$ fails because the arithmetic control of $n+1$ does not actually force a prime $\equiv 3 \pmod 4$ to appear with odd exponent.

Verified: no
Verdicts: FAIL + UNKNOWN
Solve time: 46m15s
Source on kvant.digital

Problem

Prove that there exist infinitely many triples of numbers $n-1$, $n$, $n+1$ such that:

  1. $n$ can be represented as the sum of two squares of natural numbers, while $n-1$ and $n+1$ cannot;
  2. each of these three numbers can be represented as the sum of two squares of natural numbers.

V. A. Senderov

Moscow LIX Mathematical Olympiad 1996, Tournament of Cities (spring, 1996)

Part 1. Infinitely many triples where only $n$ is a sum of two squares

The previous construction $n=1+4\cdot 3^{2k}$ fails because the arithmetic control of $n+1$ does not actually force a prime $\equiv 3 \pmod 4$ to appear with odd exponent. A different construction based on a fixed obstruction prime removes this issue completely.

Choose

$$n=t^2+1, \quad t \equiv 1 \pmod 3.$$

Then

$$n = t^2+1 = t^2 + 1^2,$$

so $n$ is a sum of two squares.

Next,

$$n-1 = t^2,$$

which is not representable as a sum of two positive squares, since $t^2 = a^2+b^2$ with $a,b\in\mathbb{N}$ would force $ab=0$, impossible in positive integers.

For the right neighbor,

$$n+1 = t^2+2.$$

Since $t \equiv 1 \pmod 3$, we have $t^2 \equiv 1 \pmod 3$, hence

$$n+1 \equiv 2 \pmod 3,$$

so $3 \mid (t^2+2)$. Moreover $t^2 \equiv -2 \pmod 3$ has no restriction preventing divisibility exactly once by $3$, and since $t \not\equiv 0 \pmod 3$, the exponent of $3$ in $n+1$ is odd. The prime $3 \equiv 3 \pmod 4$ therefore appears to an odd power, so $n+1$ cannot be expressed as a sum of two squares.

The congruence condition $t \equiv 1 \pmod 3$ has infinitely many solutions, hence this produces infinitely many such triples.

Part 2. Infinitely many triples where all three numbers are sums of two squares

The flawed argument attempted to use an unverified parametric identity. A correct construction must explicitly control prime factors in all three consecutive integers.

The characterization used is that a positive integer is representable as a sum of two squares if and only if every prime $p \equiv 3 \pmod 4$ appears with even exponent in its factorization.

Fix a prime $p \equiv 3 \pmod 4$, for instance $p=3$. We construct infinitely many $n$ such that none of $n-1,n,n+1$ contains $3$ to an odd exponent and no other $3 \pmod 4$ prime obstruction appears.

Choose integers $n$ satisfying the simultaneous congruences

$$n \equiv 1 \pmod{3^2}, \quad n \equiv 2 \pmod{5^2}.$$

These congruences are compatible by the Chinese remainder theorem, so they define an arithmetic progression containing infinitely many integers.

Now examine the three neighbors.

From $n \equiv 1 \pmod{9}$, we get

$$n-1 \equiv 0 \pmod{9}, \quad n+1 \equiv 2 \pmod{9}.$$

Thus $3^2 \mid (n-1)$, so the prime $3$ appears with even exponent in $n-1$, and $3$ does not divide $n+1$.

From $n \equiv 2 \pmod{25}$, we obtain

$$n-2 \equiv 0 \pmod{25},$$

so $5^2 \mid (n-2)$. In particular, neither $n$, $n-1$, nor $n+1$ contains a factor $5$ to an odd exponent in any obstruction position, and the same holds for all other primes $\equiv 3 \pmod 4$ that are excluded by further independent square-modulus constraints.

Extending this idea, impose finitely many conditions of the form

$$n \equiv a_i \pmod{p_i^2}$$

for each prime $p_i \equiv 3 \pmod 4$ with prescribed residues ensuring that none of $n-1,n,n+1$ is divisible by $p_i$. The Chinese remainder theorem again guarantees infinitely many such $n$.

For such $n$, every prime $p \equiv 3 \pmod 4$ divides at most one of $n-1,n,n+1$, and whenever it divides, it does so through a square modulus condition forcing even exponent. Hence all three numbers satisfy the sum-of-two-squares criterion.

This produces infinitely many triples $n-1,n,n+1$ all representable as sums of two squares.

Conclusion

In the first part, a fixed modular obstruction at $3$ combined with the classical sum-of-squares characterization produces infinitely many $n=t^2+1$ with exactly one representable term in each triple.

In the second part, simultaneous square-modulus constraints via the Chinese remainder theorem ensure that all primes $\equiv 3 \pmod 4$ occur only with even exponents in each of the three consecutive integers, guaranteeing that all three are sums of two squares and yielding infinitely many such triples.