login
Number of ways n can be written as the sum of squares of consecutive numbers (possibly including squares of negative numbers).
2

%I #5 Mar 30 2012 18:51:34

%S 1,4,1,0,2,4,2,0,0,2,1,0,0,2,4,2,2,0,0,2,0,0,0,0,0,4,0,0,1,2,4,2,0,0,

%T 0,2,2,0,0,0,0,2,0,0,2,0,0,0,0,2,2,0,0,0,2,4,2,0,0,0,3,2,0,0,2,0,0,0,

%U 0,2,0,0,0,0,0,0,0,2,0,0,0,2,0,0,0,4,2,0,0,0,2,4,2,0,0,0,2,0,0,0,2,0,0,0,0

%N Number of ways n can be written as the sum of squares of consecutive numbers (possibly including squares of negative numbers).

%H <a href="/index/Su#ssq">Index entries for sequences related to sums of squares</a>

%e a(25)=4 since 25 = 5^2 = 3^2+4^2 = (-4)^2+(-3)^2 = (-5)^2.

%Y If a(n) is zero then n is in A062863, otherwise in A062861. If a(n) is odd then n is in A006331.

%K nonn

%O 0,2

%A _Henry Bottomley_, Jun 25 2001