[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
1,1
COMMENTS
a(n) = A123624(n) / n.
From Robert Israel, Apr 02 2017: (Start)
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:
map(a, [$1..1000]); # Robert Israel, Apr 02 2017
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
Cf. A093316.
Sequence in context: A351369 A070870 A202749 * A240990 A215739 A161397
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 03 2006
EXTENSIONS
Name corrected by Robert Israel, Apr 02 2017
STATUS
approved