OFFSET
0,1
LINKS
Ray Chandler, Table of n, a(n) for n = 0..652
Index entries for linear recurrences with constant coefficients, signature (35,-35,1).
FORMULA
a(n) = A038761(n)^2 + 2, e.g., 95483 = 309^2 + 2.
a(n) = A001652(2*n+1) - A001109(n+1)^2 - Sum_{k=1..n-1} A038723(2*n), e.g., 95483 = 137903 - 204^2 - (23 + 781).
G.f.: -(11*x^2-22*x+3) / ((x-1)*(x^2-34*x+1)). - Colin Barker, Dec 14 2014 (Empirical g.f. confirmed for more terms and recurrence of source sequences. - Ray Chandler, Feb 05 2024)
EXAMPLE
a(1) = 83 = 3^2+5^2+7^2.
MATHEMATICA
LinearRecurrence[{35, -35, 1}, {3, 83, 2811}, 20] (* Paolo Xausa, Feb 06 2024 *)
KEYWORD
nonn,easy
AUTHOR
Charlie Marion, Aug 24 2005
STATUS
approved