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!)
A123368 Numbers k such that 10*(10^(k+1) + 10^k - 1) + 7 is prime. 0
0, 1, 4, 5, 7, 22, 23, 40, 65, 73, 169, 271, 802, 1451, 2623, 4107, 7315, 7583, 7747, 8407, 9841, 19647, 23923, 24825 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
107, 1097, 1099997, 10999997 are prime so terms are 0, 1, 4, 5.
MATHEMATICA
Join[{0}, Select[Range[3000], PrimeQ[10*(10^(# + 1) + 10^# - 1) + 7] &]] (* G. C. Greubel, Oct 13 2017 *)
PROG
(PARI) g(n) = for(x=0, n, y=10*(10^(x+1)+10^x-1)+7; if(ispseudoprime(y), print1(x", ")))
CROSSREFS
Sequence in context: A292321 A049896 A029520 * A292164 A178439 A214584
KEYWORD
more,nonn
AUTHOR
Cino Hilliard, Oct 12 2006
EXTENSIONS
More terms from Ryan Propper, Jan 11 2008
a(22)-a(24) from Michael S. Branicky, Jun 22 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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)