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!)
A257040 Numbers k such that 9*R_(k+2) - 2*10^k is prime, where R_k = 11...1 is the repunit (A002275) of length k. 0

%I #16 Sep 08 2022 08:46:12

%S 0,90,1928,2206,7244,11110,125056,131394

%N Numbers k such that 9*R_(k+2) - 2*10^k is prime, where R_k = 11...1 is the repunit (A002275) of length k.

%C Also, numbers k such that 98*10^k - 1 is prime.

%C Terms from Kamada.

%C a(9) > 300000.

%H Makoto Kamada, <a href="https://stdkmd.net/nrr/abaaa.htm">Near-repdigit numbers of the form ABAA...AA</a>.

%H Makoto Kamada, <a href="https://stdkmd.net/nrr/9/97999.htm#prime">Prime numbers of the form 9799...99</a>.

%H <a href="/index/Pri#Pri_rep">Index entries for primes involving repunits</a>.

%e For k=0, 9*R_2 - 2*10^0 = 99 - 2 = 97 which is prime.

%t Select[Range[0, 300000], PrimeQ[98*10^#-1 ] &]

%o (Magma) [n: n in [0..300] | IsPrime(98*10^n-1)]; // _Vincenzo Librandi_, Apr 15 2015

%Y Cf. A002275.

%K more,hard,nonn

%O 1,2

%A _Robert Price_, Apr 14 2015

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 14:54 EDT 2024. Contains 371960 sequences. (Running on oeis4.)