OFFSET
1,4
LINKS
FORMULA
For all n >= 1, a(n) <= A072721(n).
G.f.: Sum_{k>=2} x^k/Product_{j>=1} (1 - x^(k^j)). - Andrew Howroyd, Jan 23 2025
EXAMPLE
The a(2) = 1 through a(12) = 9 integer partitions (A = 10, B = 11, C = 12):
(2) (3) (4) (5) (6) (7) (8) (9) (A) (B) (C)
(22) (33) (44) (333) (55) (66)
(42) (422) (82) (93)
(222) (2222) (442) (444)
(4222) (822)
(22222) (3333)
(4422)
(42222)
(222222)
Note how this differs from A072721 first at n=12 (that has value A072721(12)=10 instead of 9) because this doesn't count the partition (84) of 12, as although both 8 and 4 are powers of 2 (which is a divisor of 12), the 2 itself is not included in that partition as its smallest term and 8 is not a power of 4.
PROG
(PARI)
powers_of_d_reversed(n, d) = vecsort(vector(logint(n, d), i, d^i), , 4);
partitions_into_parts(n, parts, from=1) = if(0==n, 1 , my(s=0); for(i=from, #parts, if(parts[i]<=n, s += partitions_into_parts(n-parts[i], parts, i))); (s));
A379957(n) = if(!n, 1, sumdiv(n, d, if(1==d, 0, partitions_into_parts(n-d, powers_of_d_reversed(n, d)))));
(PARI) A379957(n) = sumdiv(n, d, if(d>1, polcoef(1/prod(j=1, logint(n, d), 1 - 'x^(d^j), Ser(1, 'x, n-d+1)), n-d)));
(PARI) seq(n)={Vec(sum(d=2, n, x^d/prod(j=1, logint(n, d), 1 - x^(d^j), Ser(1, x, 1+n-d))), -n)} \\ Andrew Howroyd, Jan 23 2025
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Antti Karttunen, Jan 22 2025
STATUS
approved