OFFSET
1,3
COMMENTS
Number of ways to partition n as Sum_i k^e_i, where the exponents e_i are not all 0.
The exponents cannot all be 0, e.g. a(2)=1 arises from 2^1, and does not include 2^0+2^0. - Shujing Lyu, Apr 23 2016
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000 (terms 1..220 from Shujing Lyu)
FORMULA
G.f.: Sum_{k>=2} 1/(Product_{r>=0} 1-x^(k^r)) - 1/(1-x). - Andrew Howroyd, Dec 29 2017
EXAMPLE
a(4)=5: 4^1, 3^1+3^0, 2^2, 2*2^1, 2^1+2*2^0.
PROG
(PARI) first(n)={Vec(sum(k=2, n, 1/prod(r=0, logint(n, k), 1-x^(k^r) + O(x*x^n)) - 1/(1-x), 0), -n)} \\ Andrew Howroyd, Dec 29 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Marc LeBrun, Sep 20 2001
STATUS
approved