OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-4).
FORMULA
PROG
(Magma) m:=16; S:=&cat[ [ 1, 2*i ]: i in [0..m] ]; T:=[ &+[ Binomial(j-1, k-1)*S[k]: k in [1..j] ]: j in [1..2*m] ]; [ T[n+1]-T[n]: n in[1..2*m-1] ]; // Klaus Brockhaus, Jun 17 2007
(PARI) {m=29; print1(0, ", ", 1, ", "); for(n=2, m, print1((n+2)*2^(n-2), ", "))} \\ Klaus Brockhaus, Jun 17 2007
(Python)
def A129953(n): return n+2<<n-2 if n>1 else n # Chai Wah Wu, Oct 03 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jun 10 2007
EXTENSIONS
Edited and extended by Klaus Brockhaus, Jun 17 2007
STATUS
approved