This is in response to a question of evarist that was closed. Evarist's question was this: Do there exist infinitely many triples of consecutive sums of two squares? The topic actually has an interesting history: In 1903 an anonymous reader submitted the following question to the section Mathematical Questions in the British journal The Educational Times - Find all consecutive triples of sums of two squares. Elementary though non-explicit solutions were submitted by A. J. Champneys Cunningham and two other British academics (The reference is Mathematical Questions 14955. Educ. Times (2) 3 (1903), 41-43.) The Cunningham in question is the same one as the Cunningham project is named after. He was an artillery officer in the Indian Army who turned to elementary number theory after he retired.

Later J. E. Littlewood posed the following research problem which generalizes Evarist's first question: Given distinct positive integers h and k, do there exist infinitely many triples n,n+h,n+k that are simultaneously sums of two squares? This was solved in 1973 by C. Hooley, On the Intervals between Numbers that are sums of Two Squares, II. J. Number Theory 5 (1973), 215-217. Hooley's proof that there are infinitely many such triples is not long, but uses the theory of ternary quadratic forms.

The following problem is the reason that I have information relevant to Evarist's question, and together with another Littlewood problem about sums of two squares, the source of my interest in this topic:

For which choices of positive integers $h_1,\ldots,h_r$ are there infinitely many tuples $n + h_1,\ldots,n + h_r$ that are simultanously sums of two squares?

This ties up with Evarist's second question. Clearly a necessary condition is that $h_1,\ldots,h_r$ do not cover all four residue classes modulo $4$, since integers congruent to 3 modulo 4 are not sums of two squares.

EDIT: Greg Martin (see below) has observed that there are other necessary congruence conditions than the one modulo 4. So the answer to the optimistic version of my question is NO, but the above highlighted question still stands. (The optimistic version was that the congruence condition modulo 4 would be sufficient).

(By the way, I have not been able to find Littlewood's statement of his research problem, and actually he may have considered the more general problem too. I could not find the n,n+h,n+k problem in the collection of research problems that he published, though his other and better known problem about sums of two squares is there).

I think the general case of the above problem is likely to be difficult. I had planned a project for a master's thesis to obtain more computational evidence, to establish special cases, and possibly to generalize the Cochrane-Dressler result discussed below, but no student with the requisite background was interested, so nothing came of it.

Actually, there is an unsolved problem directly connected to Evarist's first question too. In 1987 T. Cochrane and R. E. Dressler used the Selberg sieve to obtain un upper bound $$ A(x) \ll \frac{x}{\log^{3/2}(x)} $$ for the counting function $A(x)$ of the triples of consecutive sums of two squares. The reference is Consecutive triples of sums of two squares, Archiv der Math. 49 (1987), 301-304. One would expect a lower bound of the same order of growth, and actually an asymptotic estimate, but this is not known. (The distribution of consecutive pairs of sums of two squares has been investigated, and more is known in this case).

Cochrane and Dressler give a very simple argument for Evarist's first question. The integers 8,9,10 are sums of two squares. Suppose n+1,n,n-1 are sums of two squares. Then $n^2 + 1$, $n^2$ and $n^2 - 1 = (n - 1)(n +1)$ are also sums of two squares, the last by the Brahmagupta-Fibonacci identity $(x^2 + y^2)(u^2 + v^2) = (xu + yv)^2 + (xv - yu)^2$ that shows that products of sums of two squares are sums of two squares.