OFFSET
0,1
REFERENCES
M. Gardner, Time Travel and Other Mathematical Bewilderments. Freeman, NY, 1988, p. 20.
LINKS
John Elias, Illustration of Initial Terms
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 12*(5*n*(n + 1) + 1) + 1.
From Stefano Spezia, Feb 07 2020: (Start)
O.g.f.: (13 + 94*x + 13*x^2)/(1 - x)^3.
E.g.f.: exp(x)*(13 + 120*x + 60*x^2).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-2) for n > 2. (End)
EXAMPLE
Example: a(2) = 13 + 60*2 + 60*2^2 = 373.
Illustration of initial terms:
. 0
. 0 0 0 0
. 0 0 0
. 0 0 0 0 0 0
. 0 0 0 0 * * 0 * * 0 0 0 0
. 0 0 0 * * * * * * 0 0 0
. 0 0 0 0 * * 0 * * 0 0 0 0
. 0 * * 0 0 0 0 * * 0
. * * * 0 0 0 * * *
. 0 * * 0 0 0 0 * * 0
. 0 0 0 0 * * 0 * * 0 0 0 0
. 0 0 0 * * * * * * 0 0 0
. 0 0 0 0 0 * * 0 * * 0 0 0 0
. 0 * * 0 0 0 0 0 0 0
. * 0 * 0 0 0
. 0 * * 0 0 0 0 0
. 0 0
.
. 13 133
MATHEMATICA
Array[12 (5 #^2 + 5 # + 1) + 1 &, 38, 0] (* Michael De Vlieger, Feb 07 2020 *)
LinearRecurrence[{3, -3, 1}, {13, 133, 373}, 40] (* Harvey P. Dale, Nov 18 2023 *)
PROG
(PARI) A332243(n)=n*(n+1)*60+13 \\ M. F. Hasler, Jun 09 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
John Elias, Feb 07 2020
STATUS
approved