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”).

A098652
Records in A098650.
2
9, 341, 1105, 1541, 1729, 1891, 2465, 29341, 162401, 252601, 294409, 334153, 340561, 399001, 410041, 488881, 530881, 636641, 954271, 1024651, 1152271, 1193221, 1461241, 1615681, 1857241
OFFSET
1,1
MATHEMATICA
PrimeFactors[n_] := Flatten[ Table[ # [[1]], {1} ] & /@ FactorInteger[ n ]]; f[n_] := Block[{k = n + 1}, If[EvenQ[k], k++ ]; While[ PrimeQ[k] || Union[ PowerMod[ PrimeFactors[n], k - 1, k]] != {1}, k += 2]; k]; a = {1}; b = {9}; Do[ If[ SquareFreeQ[n], c = f[n]; If[c > b[[ -1]], AppendTo[a, n]; AppendTo[b, c]; Print[n]]], {n, 2, 145000}]; b
CROSSREFS
Sequence in context: A090085 A098650 A354689 * A110695 A157589 A055601
KEYWORD
nonn,more
AUTHOR
Robert G. Wilson v, Sep 18 2004
EXTENSIONS
a(13)-a(25) from Amiram Eldar, Jul 07 2021
STATUS
approved