OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..32299
EXAMPLE
6 is not included since nondivisor 4 = 2^2 is such that rad(4) | 6, but 4 is a perfect power of a prime.
24 is included since nondivisor 18 = 2 * 3^2 is such that rad(18) | 24 and is not a prime power.
42 is included since nondivisor 36 = 2^2 * 3^2 is such that rad(36) | 42 and 36 is not a prime power.
60 is in the sequence because nondivisor 54 = 2 * 3^3 but rad(54) | 60 and 54 is not a prime power, etc.
MATHEMATICA
rad[x_] := Times @@ FactorInteger[x][[All, 1]];
Table[If[PrimePowerQ[n], Nothing,
If[PrimePowerQ[#], Nothing, n] &@
SelectFirst[Range[n - 1, 1, -1],
And[! Divisible[n, #], Divisible[n, rad[#]]] &] ], {n, 2, 336}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Sep 22 2024
STATUS
approved