OFFSET
0,2
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 (3,-1,-1).
FORMULA
a(n) = (1/4)((2*s - 1)*(1 + s)^n - (2*s + 1)*(1 - s)^n + 2) where s = sqrt(2).
G.f.: -x*(3*x-2)/((x-1)*(x^2+2*x-1)). - Alois P. Heinz, May 03 2022
E.g.f.: exp(x)*(1 - cosh(sqrt(2)*x) + 2*sqrt(2)*sinh(sqrt(2)*x))/2. - Stefano Spezia, May 03 2022
MATHEMATICA
nxt[{a_, b_}]:={b, 2b+a-1}; NestList[nxt, {0, 2}, 40][[;; , 1]] (* or *) LinearRecurrence[{3, -1, -1}, {0, 2, 3}, 40] (* Harvey P. Dale, Mar 14 2025 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Paul K. Stockmeyer, May 03 2022
STATUS
approved