OFFSET
1,2
COMMENTS
a(n) is divisible by n.
LINKS
Bartlomiej Pawlik, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Product_{f in F(n)} min(f), where F(n) is the set of factorizations of n into factors > 1.
a(p^k) = p^A046746(k-1), p prime.
a(n) = n iff n = 1 or n is prime.
If n = p*q with p <= q primes, then a(n) = p^2*q.
EXAMPLE
The factorizations of 12 are 12, 2*6, 3*4, 2*2*3, so a(12) = 12*2*3*2 = 144.
MATHEMATICA
mp[n_Integer?Positive, m_Integer?Positive]:=mp[n, m]=
Join[{{n}}, Flatten[Table[
If[Mod[n, d]==0, Prepend[#, d]&/@ mp[n/d, d], Nothing],
{d, m, Floor[Sqrt[n]]}], 1
]];
a[1] = 1;
a[n_Integer?Positive]:=Times@@(First/@ mp[n, 2]);
Table[a[n], {n, 1, 60}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bartlomiej Pawlik, Apr 29 2026
STATUS
approved
