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!)
A361977 a(n) is the largest prime p such that 2^p - 1 <= 10^n. 1
3, 5, 7, 13, 13, 19, 23, 23, 29, 31, 31, 37, 43, 43, 47, 53, 53, 59, 61, 61, 67, 73, 73, 79, 83, 83, 89, 89, 89, 97, 101, 103, 109, 109, 113, 113, 113, 113, 127, 131, 131, 139, 139, 139, 149, 151, 151, 157, 157, 163, 167, 167, 173, 179, 181, 181, 181, 191, 193 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A151799(A067497(n)). - Alois P. Heinz, Apr 02 2023
EXAMPLE
a(5) = 13, 2^13 - 1 = 8192 < 10^5.
PROG
(Python)
from sympy import prevprime
def A361977(n): return prevprime((10**n-1).bit_length()) # Chai Wah Wu, Apr 02 2023
CROSSREFS
Sequence in context: A152075 A092789 A092793 * A285130 A024909 A063241
KEYWORD
nonn,easy
AUTHOR
Jack Braxton, Apr 02 2023
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 April 29 15:45 EDT 2024. Contains 372114 sequences. (Running on oeis4.)