OFFSET
0,2
COMMENTS
Also sequence found by reading the segment (1,21) together with the line from 21, in the direction 21, 73, ..., in the square spiral whose vertices are the generalized decagonal numbers A074377. - Omar E. Pol, Nov 02 2012
LINKS
FORMULA
G.f.: (-1-18*x-13*x^2)/(x-1)^3 . - R. J. Mathar, Dec 03 2014
From Elmo R. Oliveira, Oct 28 2024: (Start)
E.g.f.: exp(x)*(1 + 20*x + 16*x^2).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2. (End)
MATHEMATICA
Table[16n^2+4n+1, {n, 0, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {1, 21, 73}, 50] (* Harvey P. Dale, Sep 28 2024 *)
PROG
(PARI) a(n)=16*n^2+4*n+1 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 02 2003
STATUS
approved