OFFSET
3,1
LINKS
Stefano Spezia, Table of n, a(n) for n = 3..452
Alexsandar Petojevic, The Function vM_m(s; a; z) and Some Well-Known Sequences, Journal of Integer Sequences, Vol. 5 (2002), Article 02.1.7
FORMULA
a(n) = A056158(n) + 2n.
MATHEMATICA
a[3]=2; a[n_]:=a[n]=-(n-3)*a[n-1]+2*(n-2)^2; Array[a, 22, 3] (* Stefano Spezia, Sep 16 2022 *)
nxt[{n_, a_}]:={n+1, 2(n-1)^2-a(n-2)}; NestList[nxt, {3, 2}, 30][[;; , 2]] (* Harvey P. Dale, Nov 18 2024 *)
CROSSREFS
KEYWORD
sign
AUTHOR
STATUS
approved