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!)
A372262 a(n) = smallest number m > 0 such that n followed by m 3's yields a prime, or -1 if no such m exists. 3
1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 14, 2, -1, 1, 1, -1, 1, 3, -1, 1, 1, -1, 8, 1, -1, 1, 1, -1, 1, 4, -1, 2, 1, -1, 1, 1, -1, 483, 2, -1, 1, 1, -1, 1, 2, -1, 2, 1, -1, 1, 2, -1, 3, 1, -1, 6, 1, -1, 1, 5, -1, 1, 1, -1, 1, 1, -1, 5, 3, -1, 1, 1, -1, 3, 1, -1, 2, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,13
COMMENTS
a(n) = -1 when n = 3*k because no matter how many 3's are appended to n, the resulting number is always divisible by 3 and therefore cannot be prime.
a(n) = -1 when n = 37037*k + 2808, 3666, 4070, 9287, 18799, 21574, 28083, 30558, 33300, 33740, 36663 or 36707, because n followed by any positive number, m say, of 3's is divisible by at least one of the primes {7,11,13,37}.
a(817) > 300000 or a(817) = -1.
LINKS
EXAMPLE
a(20)=3 because 203 and 2033 are composite but 20333 is prime.
CROSSREFS
Sequence in context: A223516 A350888 A348335 * A040192 A112647 A040191
KEYWORD
sign,base
AUTHOR
Toshitaka Suzuki, Apr 24 2024
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 July 28 00:45 EDT 2024. Contains 374674 sequences. (Running on oeis4.)