[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A077783
Numbers k such that (10^k-1)/9 + 4*10^floor(k/2) is a palindromic wing prime (a.k.a. near-repdigit palindromic prime).
3
3, 15, 91, 231, 1363, 2497, 4963, 5379, 12397, 26395, 120253, 200145
OFFSET
1,1
COMMENTS
Prime versus probable prime status and proofs are given in the author's table.
a(13) > 200466. - _Robert Price, Sep 05 2023
REFERENCES
C. Caldwell and H. Dubner, "Journal of Recreational Mathematics", Volume 28, No. 1, 1996-97, pp. 1-9.
FORMULA
a(n) = 2*A107125(n) + 1.
EXAMPLE
15 is a term because (10^15 - 1)/9 + 4*10^7 = 111111151111111.
MATHEMATICA
Do[ If[ PrimeQ[(10^n + 36*10^Floor[n/2] - 1)/9], Print[n]], {n, 3, 26400, 2}] (* Robert G. Wilson v, Dec 16 2005 *)
PROG
(Magma) [n: n in [3..2000 by 2] | IsPrime((10^n+36*10^(n div 2)-1) div 9)]; // Vincenzo Librandi, Oct 13 2015
KEYWORD
more,nonn,base
AUTHOR
Patrick De Geest, Nov 16 2002
EXTENSIONS
a(11) from Robert Price, Oct 12 2015
Name edited by Jon E. Schoenfield, Oct 13 2015
a(12) from Robert Price, Sep 05 2023
STATUS
approved