login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098654 Records in A098650. 2
4, 341, 451, 481, 671, 703, 1105, 1111, 1333, 1729, 2465, 3277, 3281, 3721, 3775, 4681, 4753, 5461, 5611, 5963, 6031, 6601, 6981, 7107, 8149, 8695, 8911, 9005, 9637, 12673, 14701, 14981, 15841, 18721, 22177, 23001, 24211, 28939, 29089, 29341 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..40.

MATHEMATICA

f[n_] := Block[{k = n + 1}, While[ PrimeQ[k] || PowerMod[n, k - 1, k] != 1, k++ ]; k]; a = {1}; b = {4}; Do[ c = f[n]; If[c > b[[ -1]], AppendTo[a, n]; AppendTo[b, c]; Print[{n, c}]], {n, 2, 10^6}]; b

CROSSREFS

Cf. A007535, A098653.

Sequence in context: A090086 A007535 A000783 * A317058 A317357 A069884

Adjacent sequences:  A098651 A098652 A098653 * A098655 A098656 A098657

KEYWORD

nonn

AUTHOR

Robert G. Wilson v, Sep 19 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 9 07:36 EDT 2021. Contains 343692 sequences. (Running on oeis4.)