OFFSET
0,2
COMMENTS
Row sums of A055894.
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
N. J. A. Sloane, Transforms
FORMULA
G.f.: 1 + Sum_{k>=1} 2^k*x^k/(1-x^k). - Benoit Cloitre, Apr 21 2003
a(n) = Sum_{d divides n} 2^d. - Olivier Gérard, Jan 01 2012
a(n) = 2 * A034729(n) for n >= 1. - Joerg Arndt, Aug 14 2012
G.f.: 1 + Sum_{k>=1} 2*x^k/(1-2*x^k). - Joerg Arndt, Mar 28 2013
EXAMPLE
G.f. = 1 + 2*x + 6*x^2 + 10*x^3 + 22*x^4 + 34*x^5 + 78*x^6 + 130*x^7 + ...
MATHEMATICA
Table[Plus @@ Map[Function[d, 2^d], Divisors[n]], {n, 0, 30}] (* Olivier Gérard, Jan 01 2012 *)
a[0]=1; a[n_] := DivisorSum[n, 2^#&]; Array[a, 40, 0] (* Jean-François Alcover, Dec 01 2015 *)
PROG
(PARI) a(n)=if(n<1, 1, polcoeff(sum(k=1, n, 1/(1-2*x^k), x*O(x^n)), n))
(PARI) a(n)=if(n<1, 1, sumdiv(n, d, 2^d)); /* Joerg Arndt, Aug 14 2012 */
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian G. Bower, Jun 09 2000
STATUS
approved