OFFSET
0,1
REFERENCES
Seen in a newspaper quiz.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
From Chai Wah Wu, Mar 29 2017: (Start)
a(n) = 6*a(n-1) - 12*a(n-2) + 10*a(n-3) - 3*a(n-4) for n > 3.
G.f.: (-65*x^3 + 131*x^2 - 84*x + 16)/((x - 1)^3*(3*x - 1)). (End)
MAPLE
(3^n + (5-n)*(6-n) + 1)/2;
MATHEMATICA
nxt[{n_, a_}]:={n+1, 3a-(6-n)^2}; NestList[nxt, {0, 16}, 30][[;; , 2]] (* Harvey P. Dale, Sep 07 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mark Orr (mjo(AT)cns.ed.ac.uk)
EXTENSIONS
Definition edited by Chai Wah Wu, Mar 29 2017
STATUS
approved