login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A176776
a(n) = 2^n-n*(n-2).
2
1, 3, 4, 5, 8, 17, 40, 93, 208, 449, 944, 1949, 3976, 8049, 16216, 32573, 65312, 130817, 261856, 523965, 1048216, 2096753, 4193864, 8388125, 16776688, 33553857, 67108240, 134217053, 268434728, 536870129, 1073740984, 2147482749
OFFSET
0,2
FORMULA
G.f.: ( 1-2*x-2*x^2+5*x^3 ) / ( (2*x-1)*(x-1)^3 ). - R. J. Mathar, Feb 18 2016
MATHEMATICA
Table[2^n-n*(n-2), {n, 0, 5!}]
CROSSREFS
Cf. A142974.
Sequence in context: A106048 A219038 A258454 * A049931 A335436 A058983
KEYWORD
nonn,easy
AUTHOR
STATUS
approved