login
Squares which are a sum of consecutive squares starting with 7^2.
3

%I #18 Sep 24 2023 10:29:31

%S 49,8464,20449,60025,2304324,3624882849

%N Squares which are a sum of consecutive squares starting with 7^2.

%C That is, terms are squares of the form sum_{i=7..m} i^2 for some m. This sequence is complete. See A180442 and A184763.

%e a(2) = 8464 = 92^2 = 7^2+8^2+9^2+...+28^2+29^2.

%t Select[Accumulate[Range[7,3000]^2],IntegerQ[Sqrt[#]]&] (* _Harvey P. Dale_, Jul 16 2014 *)

%o (PARI) for(n=8,9999999,t=n*(n+1)*(2*n+1)/6-91;if(issquare(t),print1(t,",")))

%Y Cf. A001032, A094196, A151557, A180259.

%K nonn,easy,fini,full

%O 1,1

%A _Zhining Yang_, Jan 17 2011