|
|
A215149
|
|
a(n) = n * (1 + 2^(n-1)).
|
|
4
|
|
|
0, 2, 6, 15, 36, 85, 198, 455, 1032, 2313, 5130, 11275, 24588, 53261, 114702, 245775, 524304, 1114129, 2359314, 4980755, 10485780, 22020117, 46137366, 96469015, 201326616, 419430425, 872415258, 1811939355, 3758096412
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Related to Bernoulli numbers.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = n (the nonnegative integers A001477(n)) + n*2^(n-1) (their binomial transform A001787(n)).
a(n+1) - a(n) = 2,4,9,21,... = A001792(n) + 1.
a(n+1) - 2*a(n) = 2 before A132045(n+1).
G.f. x*(2-6*x+5*x^2) / ( (2*x-1)^2*(x-1)^2 ). - R. J. Mathar, Aug 06 2012
|
|
MATHEMATICA
|
Table[n(1+2^(n-1)), {n, 0, 30}] (* or *) LinearRecurrence[{6, -13, 12, -4}, {0, 2, 6, 15}, 30] (* Harvey P. Dale, Oct 18 2013 *)
|
|
PROG
|
(Magma) [n*(1 + 2^(n-1)): n in [0..30]]; // G. C. Greubel, Apr 19 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|