The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A336719 Largest odd prime p for which the order of 2 mod p is at most n. 3
3, 7, 7, 31, 31, 127, 127, 127, 127, 127, 127, 8191, 8191, 8191, 8191, 131071, 131071, 524287, 524287, 524287, 524287, 524287, 524287, 524287, 524287, 524287, 524287, 524287, 524287, 2147483647, 2147483647, 2147483647, 2147483647, 2147483647, 2147483647 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
a(1) is undefined.
Changing "at most n" to "equal to n" in the definition gives A097406.
The first term that is not a Mersenne prime (A000668) is 4432676798593.
For a version without duplicates, see A336720. For a list of all n where a(n) increases, see A336721.
LINKS
PROG
(PARI) re=0; for(n=2, +oo, p=vecmax(factor(2^n-1)[, 1]); p>re&&re=p; print1(re, ", "))
CROSSREFS
Sequence in context: A077629 A184467 A004794 * A272981 A086839 A359322
KEYWORD
nonn
AUTHOR
Jeppe Stig Nielsen, Aug 01 2020
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 23 00:54 EDT 2024. Contains 372758 sequences. (Running on oeis4.)