A269449 The first of 33 consecutive positive integers the sum of the squares of which is a square.
7, 27, 60, 181, 227, 612, 1085, 1985, 3492, 9047, 11161, 28860, 50607, 91987, 161276, 416685, 513883, 1327652, 2327541, 4230121, 7415908, 19159167, 23628161, 61043836, 107016983, 194494283, 340971196, 880905701, 1086382227, 2806689508, 4920454381, 8942507601
Offset: 1
Examples
7 is in the sequence because sum(k=7, 39, k^2) = 20449 = 143^2.
Links
- Colin Barker, Table of n, a(n) for n = 1..1000
- Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,46,-46,0,0,0,0,-1,1).
Programs
-
Mathematica
Rest@ CoefficientList[Series[x (7 + 20 x + 33 x^2 + 121 x^3 + 46 x^4 + 385 x^5 + 151 x^6 - 20 x^7 - 11 x^8 - 11 x^9 - 2 x^10 - 11 x^11 - 4 x^12)/((1 - x) (1 - 46 x^6 + x^12)), {x, 0, 32}], x] (* Michael De Vlieger, Aug 08 2016 *) LinearRecurrence[{1,0,0,0,0,46,-46,0,0,0,0,-1,1},{7,27,60,181,227,612,1085,1985,3492,9047,11161,28860,50607},50] (* Harvey P. Dale, Oct 18 2020 *)
-
PARI
Vec(x*(7 +20*x +33*x^2 +121*x^3 +46*x^4 +385*x^5 +151*x^6 -20*x^7 -11*x^8 -11*x^9 -2*x^10 -11*x^11 -4*x^12) / ((1 -x)*(1 -46*x^6 +x^12)) + O(x^40))
Formula
G.f.: x*(7 +20*x +33*x^2 +121*x^3 +46*x^4 +385*x^5 +151*x^6 -20*x^7 -11*x^8 -11*x^9 -2*x^10 -11*x^11 -4*x^12) / ((1 -x)*(1 -46*x^6 +x^12)).
a(1)=7, a(2)=27, a(3)=60, a(4)=181, a(5)=227, a(6)=612, a(7)=1085, a(8)=1985, a(9)=3492, a(10)=9047, a(11)=11161, a(12)=28860, a(n)=46*a(n-6)-a(n-12)+704. - Daniel Mondot, Aug 08 2016
Comments