OFFSET
1,5
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum_{i=1..A024936(n)} T(n,i)*binomial(n-1,i-1), where T(n,i) is the number of partitions of n into i distinct prime parts.
EXAMPLE
The a(5) = 5 positive integers are 2^4*3^1 = 48, 2^3*3^2 = 72, 2^2*3^3 = 108, 2^1*3^4 = 162, 5^5 = 3125.
MAPLE
# Processes b and T (slightly adapted) by Alois P. Heinz (A219180).
b:=proc(n, i)
option remember;
`if`(n=0, [1], `if`(i<1, [], zip((x, y)->x+y, b(n, i-1), [0, `if`(ithprime(i)>n, [], b(n-ithprime(i), i-1))[]], 0)))
end:
T:=proc(n)
local l;
l:=b(n, numtheory[pi](n));
while nops(l)>0 and l[-1]=0 do
l:=subsop(-1=NULL, l)
od;
`if`(nops(l)>0, subsop(1=NULL, l), l)
end:
A390784:=proc(n)
local i, l;
l:=T(n);
add(l[i]*binomial(n-1, i-1), i=1..nops(l))
end:
seq(A390784(n), n=1..47);
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Nov 20 2025
STATUS
approved
