OFFSET
0,2
COMMENTS
On a square spiral with 1 in the center is a parabola y=n^2. The coordinate system is defined by the On and Oy axes, which intersect at the center of the spiral. The points of the parabola with integer coordinates located on the right branch of the parabola y=n^2 determine the terms of the sequence. In the attached figure, the terms are highlighted in red cells.
LINKS
Nicolay Avilov, Figure illustrating the terms a(0) - a(3)
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = 4*n^4 + 3*n^2 + n + 1.
G.f.: (1 + 4*x + 44*x^2 + 40*x^3 + 7*x^4)/(1 - x)^5. - Stefano Spezia, Sep 24 2022
EXAMPLE
a(0) = 1;
a(4) = 4*4^4 + 3*4^2 + 4 + 1 = 1024 + 48 + 5 = 1077.
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {1, 9, 79, 355, 1077}, 40] (* Harvey P. Dale, Oct 15 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Nicolay Avilov, Sep 22 2022
STATUS
approved