OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (7, -14, 8).
FORMULA
a(n) = (8*4^n-6*2^n+1)/3.
G.f.: 1/((1-x)*(1-2*x)*(1-4*x)).
a(n) = A139250(2^(n+1) - 1). - Omar E. Pol, Dec 20 2012
PROG
(PARI) {m=23; v=concat([1, 7], vector(m-2)); for(n=3, m, v[n]=6*v[n-1]-8*v[n-2]+1); v}
(Magma) [(8*4^n-6*2^n+1)/3: n in [0..30]]; // Vincenzo Librandi, Jul 18 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Dec 09 2009
STATUS
approved