OFFSET
1,6
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(2) = 1 since 2 = 2^1 has only one exponent (1) in its prime factorization.
a(6) = 2 since 6 = 2*3 has two equal exponents (1) in its prime factorization, and 2*6 = 12 = 2^2*3 has two distinct exponents (1 and 2).
MATHEMATICA
a[n_] := Module[{k = 1}, While[!UnsameQ @@ FactorInteger[k*n][[;; , 2]], k++]; k]; Array[a, 100]
PROG
(PARI) a(n) = my(k=1, f=factor(n)[, 2]); while(#Set(f) != #f, k++; f=factor(k*n)[, 2]); k; \\ Michel Marcus, May 05 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 04 2022
STATUS
approved