OFFSET
0,5
COMMENTS
Also number of partitions of n into parts k^k for k > 0.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
G.f.: 1 + Sum_{n>0} x^(n^n) / Product_{k=1..n} (1 - x^(k^k)).
EXAMPLE
G.f.: 1 + x/(1-x) + x^4/((1-x)*(1-x^4)) + x^27/((1-x)*(1-x^4)*(1-x^27)) + ... .
MAPLE
b:= proc(n, i) option remember; `if`(n=0 or i=1, 1,
b(n, i-1)+(p-> `if`(p>n, 0, b(n-p, i)))(i^i))
end:
a:= n-> `if`(n<2, 1, b(n, floor((t-> t/LambertW(t))(log(n))))):
seq(a(n), n=0..100); # Alois P. Heinz, Oct 12 2019
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0 || i == 1, 1, b[n, i - 1] + With[{p = i^i}, If[p > n, 0, b[n - p, i]]]];
a[n_] := If[n < 2, 1, b[n, Floor[PowerExpand[Log[n]/ProductLog[Log[n]]]]]];
a /@ Range[0, 100] (* Jean-François Alcover, Mar 12 2021, after Alois P. Heinz *)
PROG
(PARI) my(N=99, x='x+O('x^N)); m=1; while(N>=m^m, m++); Vec(1/prod(k=1, m-1, 1-x^k^k))
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Oct 12 2019
STATUS
approved
