A118337 Nonnegative values x of solutions (x, y) to the Diophantine equation x^2 + (x + 23)^2 = y^2.
0, 12, 33, 69, 133, 252, 460, 832, 1525, 2737, 4905, 8944, 16008, 28644, 52185, 93357, 167005, 304212, 544180, 973432, 1773133, 3171769, 5673633, 10334632, 18486480, 33068412, 60234705, 107747157, 192736885, 351073644, 627996508, 1123352944, 2046207205
Offset: 1
Links
- G. C. Greubel, Table of n, a(n) for n = 1..1000
- Index entries for linear recurrences with constant coefficients, signature (1,0,6,-6,0,-1,1).
Crossrefs
Programs
-
Magma
I:=[0,12,33,69,133,252,460]; [n le 7 select I[n] else Self(n-1) +6*Self(n-3) -6*Self(n-4) -Self(n-6) +Self(n-7): n in [1..30]]; // G. C. Greubel, May 04 2018
-
Mathematica
Select[Range[0,100000],IntegerQ[Sqrt[#^2+(#+23)^2]]&] (* or *) LinearRecurrence[{1,0,6,-6,0,-1,1},{0,12,33,69,133,252,460},50] (* Vladimir Joseph Stephan Orlovsky, Feb 02 2012 *)
-
PARI
forstep(n=0, 1124000000, [1, 3], if(issquare(2*n*(n+23)+529), print1(n, ",")))
-
PARI
x='x+O('x^30); concat([0], Vec(x*(12+21*x+36*x^2-8*x^3-7*x^4-8*x^5)/((1-x)*(1-6*x^3+x^6)))) \\ G. C. Greubel, May 04 2018
Formula
a(n) = 6*a(n-3) - a(n-6) + 46 for n > 6; a(1)=0, a(2)=12, a(3)=33, a(4)=69, a(5)=133, a(6)=252.
G.f.: x*(12 + 21*x + 36*x^2 - 8*x^3 - 7*x^4 - 8*x^5)/((1-x)*(1 - 6*x^3 + x^6)).
Extensions
Edited by Klaus Brockhaus, Feb 10 2009
Comments