|
|
A123623
|
|
Smallest k>1 such that mu(n*k) = mu(n), where mu=A008683.
|
|
3
|
|
|
6, 15, 10, 2, 6, 35, 6, 2, 2, 21, 6, 2, 6, 15, 14, 2, 6, 2, 6, 2, 10, 15, 6, 2, 2, 15, 2, 2, 6, 77, 6, 2, 10, 15, 6, 2, 6, 15, 10, 2, 6, 55, 6, 2, 2, 15, 6, 2, 2, 2, 10, 2, 6, 2, 6, 2, 10, 15, 6, 2, 6, 15, 2, 2, 6, 35, 6, 2, 10, 33, 6, 2, 6, 15, 2, 2, 6, 35, 6, 2, 2, 15, 6, 2, 6, 15, 10, 2, 6, 2, 6, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
If n is squarefree, a(n) is the product of the least two primes coprime to n.
Otherwise a(n) = 2. (End)
|
|
LINKS
|
|
|
MAPLE
|
a:= proc(n) local r, p, count;
if not numtheory:-issqrfree(n) then return 2 fi;
r:= 1; count:= 0; p:= 1;
do
p:= nextprime(p);
if n mod p > 0 then
count:= count+1;
r:= r*p;
if count = 2 then return r fi
fi
od
end proc:
|
|
MATHEMATICA
|
a[n_] := Module[{r = 1, p = 1, count = 0}, If[!SquareFreeQ[n], Return[2]]; While[True, p = NextPrime[p]; If[Mod[n, p] > 0, count++; r = r*p; If[count == 2, Return[r]]]]]; Array[a, 100] (* Jean-François Alcover, Feb 13 2018, after Robert Israel *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|