OFFSET
1,1
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (4, -5, 2).
FORMULA
From R. J. Mathar, Apr 30 2008: (Start)
O.g.f.: -x(3-6x+4x^2)/((-1+x)^2*(-1+2x)).
a(n) = 4a(n-1) - 5a(n-2) + 2a(n-3). (End)
a(n) = A000247(n+1) + 3 = 2^(n+1) - n. - Martin Ettl, Nov 08 2012
MATHEMATICA
Table[2^(n + 1) - n, {n, 0, 31}] (* Robert G. Wilson v Jun 12 2004 *)
LinearRecurrence[{4, -5, 2}, {3, 6, 13}, 40] (* Harvey P. Dale, Jan 02 2012 *)
PROG
(Maxima) A095768(n):=2^(n+1)-n$
makelist(A095768(n), n, 1, 30); /* Martin Ettl, Nov 08 2012 */
(PARI) a(n)=2^(n+1)-n \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Jun 05 2004
STATUS
approved