OFFSET
0,4
COMMENTS
Combines the additive structure of partitions into distinct parts with the multiplicative radical function A007947.
For squarefree n (A005117), reduces to partitions into distinct squarefree parts (A087188), since rad(n) = n and rad(k) <= k forces rad(k) = k for all parts.
Every admissible part k has all its prime divisors dividing n, since otherwise rad(k) would contain a prime not dividing rad(n).
If n is a power of 2, the radical sum condition forces the unique partition [n].
We define A007947(0) = 0.
Conjecture 1: The set of values {a(n)} coincides with the set of values {A087188(n)}.
Conjecture 2: The set {n : a(n) = 1} has natural density 0.
LINKS
Felix Huber, Table of n, a(n) for n = 0..1000
Sean A. Irvine, Java program (github)
FORMULA
EXAMPLE
a(8) = 1: [8], since rad(8) = 2 and this is the only distinct partition with radical sum 2.
a(10) = 5: [10], [3, 7], [1, 2, 7], [1, 3, 6], [2, 3, 5], since rad(10) = 10 and these are exactly the five distinct partitions with radical sum 10.
a(12) = 4: [12], [3, 9], [1, 3, 8], [1, 2, 9], since rad(12) = 6 and these are exactly the four distinct partitions with radical sum 6.
MAPLE
A := proc(f, N)
local d, k, n, s, v;
v := Vector(N);
for n from 1 to N do
v[n] := f(n);
end do;
d := Array(0 .. N, 0 .. N, 'fill = 0');
d[0, 0] := 1;
for k from 1 to N do
for n from N by -1 to k do
for s from N by -1 to v[k] do
d[n, s] := d[n, s] + d[n - k, s - v[k]];
end do;
end do;
end do;
n -> `if`(n = 0, 1, d[n, v[n]]);
end proc:
N := 66:
A395111 := A(NumberTheory:-Radical, N):
seq(A395111(n), n = 0 .. N);
MATHEMATICA
rad[x_] := Times @@ FactorInteger[x][[All, 1]]; Table[With[{r = rad[n]}, Count[Select[IntegerPartitions[n], DuplicateFreeQ], _?(Total[rad /@ #] == r &)]], {n, 0, 60}] (* Michael De Vlieger, Apr 15 2026 *)
PROG
(PARI) rad(n) = factorback(factorint(n)[, 1]);
a(n) = my(nb=0); forpart(p=n, if ((#Set(p) == #p) && sum(k=1, #p, rad(p[k])) == rad(n), nb++)); nb; \\ Michel Marcus, Apr 15 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Apr 15 2026
STATUS
approved
