About two consecutive integers which are sum of squares I am looking for all two consecutive integers $A$ and $A+1$, which can be represented as sums of two squares
$A=a^2+b^2$     and     $A+1=c^2+d^2$,    $a,b,c,d>0$.
 A: Not a complete answer --- I doubt there is one --- but $$(n^2-n)^2+(n^2-n)^2,(n^2-2n)^2+(n^2-1)^2,(n^2-n-1)^2+(n^2-n+1)^2$$ gives three consecutive numbers, each a sum of two non-zero squares. This example is taken from Cochrane and Dressler, Consecutive triples of sums of two squares, which also cites earlier results about consecutive pairs of sums of two squares.  
A: Take a member of the modular group, i.e. a matrix with integer entries and determinant one. Let's call it M={{a,b},{c,d}}. There are plenty of such matrices, in fact factorization of any two consecutive integers is a good source of these beasts (it is a kind of poetic justice that any two consecutive integers will give you your special consecutive integers - or half integers).
For any such matrix consider these two integers (or half integers)
$X = (\frac{a+d}{2})^2+(\frac{c-b}{2})^2$
$Y = (\frac{a-d}{2})^2+(\frac{c+b}{2})^2$
Elements of the modular group come in two flavors, they have either one even number among its entries or two. The latter case will give you the desired integers. The fact that they are consecutive follows from the det(M)=1 condition (the former case will give you some interesting solutions with half integers, which you may donate at the Salvation Army).
