OFFSET
0,2
COMMENTS
The identity (32*n^2+1)^2-(256*n^2+16)*(2*n)^2 = 1 can be written as a(n)^2-A158574(n)*A005843(n)^2 = 1. - Comment rewritten by R. J. Mathar, Oct 16 2009
Sequence found by reading the line segment from 1 to 33 together with the line from 33, in the direction 33, 129, ..., in the square spiral whose vertices are the generalized 18-gonal numbers A274979. - Omar E. Pol, Apr 21 2021
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Vincenzo Librandi, X^2-AY^2=1, Math Forum, 2007. [Wayback Machine link]
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: (1+30*x+33*x^2)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
a(n) = A244082(n) + 1. - Omar E. Pol, Apr 21 2021
From Amiram Eldar, Mar 09 2023: (Start)
Sum_{n>=0} 1/a(n) = (1 + coth(Pi/(4*sqrt(2)))*Pi/(4*sqrt(2)))/2.
Sum_{n>=0} (-1)^n/a(n) = (1 + cosech(Pi/(4*sqrt(2)))*Pi/(4*sqrt(2)))/2. (End)
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {1, 33, 129}, 50] (* Vincenzo Librandi, Feb 15 2012 *)
32*Range[0, 40]^2+1 (* Harvey P. Dale, Jul 20 2021 *)
PROG
(Magma) I:=[1, 33, 129]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..50]]; // Vincenzo Librandi, Feb 15 2012
(PARI) for(n=0, 50, print1(32*n^2+1", ")); \\ Vincenzo Librandi, Feb 15 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 21 2009
EXTENSIONS
a(0) added by R. J. Mathar, Oct 16 2009
STATUS
approved