login
A396068
Product of squarefree divisors of n that are <= sqrt(n).
2
1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 5, 2, 3, 2, 1, 30, 1, 2, 3, 2, 5, 36, 1, 2, 3, 10, 1, 36, 1, 2, 15, 2, 1, 36, 7, 10, 3, 2, 1, 36, 5, 14, 3, 2, 1, 180, 1, 2, 21, 2, 5, 36, 1, 2, 3, 70, 1, 36, 1, 2, 15, 2, 7, 36, 1, 10, 3, 2, 1, 252, 5
OFFSET
1,4
MATHEMATICA
a[n_] := Times @@ Select[Divisors[n], SquareFreeQ[#] && # <= Sqrt[n] &]; Array[a, 85]
PROG
(PARI) a(n) = vecprod(select(x->(x<=sqrt(n) && issquarefree(x)), divisors(n))); \\ Michel Marcus, May 15 2026
(Python)
from math import isqrt, prod
from itertools import combinations
from sympy import primefactors
def A396068(n):
c, ps, m = 1, primefactors(n), isqrt(n)
for l in range(1, len(ps)+1):
for p in combinations(ps, l):
if (q:=prod(p)) <= m:
c *= q
return c # Chai Wah Wu, May 20 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, May 15 2026
STATUS
approved