OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..3307
FORMULA
G.f.: Sum_{k>=1} k*2^(k-1)*x^k/(1 - 2^(k-1)*x^k). - N. J. A. Sloane, Jun 04 2003
G.f.: Sum_{k>=1} x^k/(1 - (2 * x)^k)^2. - Seiichi Manyama, Dec 20 2022
MAPLE
oo := 40; s1 := add( k*2^(k-1)*x^k/(1-2^(k-1)*x^k), k=1..oo): s2 := series(s1, x, oo-1): s3 := seriestolist(%): A080267 := n->s3[n+1];
MATHEMATICA
a[n_] := Sum[d*2^(n-n/d), {d, Divisors[n]}]; Array[a, 29] (* Jean-François Alcover, Mar 20 2014 *)
PROG
(PARI) a(n) = sumdiv(n, d, d*2^(n-n/d)); \\ Michel Marcus, Mar 20 2014
(PARI) my(N=30, x='x+O('x^N)); Vec(sum(k=1, N, x^k/(1-(2*x)^k)^2)) \\ Seiichi Manyama, Dec 20 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Feb 11 2003
STATUS
approved