OFFSET
0,3
LINKS
Paul K. Stockmeyer, Table of n, a(n) for n = 0..1000
Andreas M. Hinz and Paul K. Stockmeyer, Precious Metal Sequences and Sierpinski-Type Graphs, J. Integer Seq., Vol 25 (2022), Article 22.4.8.
Index entries for linear recurrences with constant coefficients, signature (2,0,2,1).
FORMULA
a(n) = (1/8) ((5-3*s)*(1+s)^n + (5+3*s)*(1-s)^n + 2*sin(n*Pi/2) - 10*cos(n*Pi/2)) where s = sqrt(2).
G.f.: x^2*(2 - 3*x)/((1 + x^2)*(1 - 2*x - x^2)). - Stefano Spezia, May 04 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul K. Stockmeyer, May 04 2022
STATUS
approved