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!)
A167218 Primes whose reversal - 1 is a square. 1
2, 5, 71, 73, 101, 109, 263, 269, 523, 541, 587, 1061, 1063, 2089, 2251, 2273, 2297, 2843, 2861, 5441, 5477, 5483, 6203, 6221, 7129, 7507, 7937, 10009, 10163, 10169, 10487, 10691, 20201, 20693, 22391, 22769, 24023, 24877, 26141, 26171, 26723 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The first digit of a(n) cannot be 3, 4, 8 or 9. - Altug Alkan, Dec 20 2015
LINKS
EXAMPLE
71 is prime and 17-1 = 16 = 4^2.
PROG
(Python)
from sympy import isprime
A167218_list, i, j = [], 0, 1
while j < 10**10:
p = int(str(j)[::-1])
if j % 10 and isprime(p):
A167218_list.append(p)
j += 2*i+1
i += 1
A167218_list = sorted(A167218_list) # Chai Wah Wu, Dec 20 2015
(PARI) lista(nn) = {forprime(p=2, nn, if (issquare(eval(concat(Vecrev(Str(p))))-1), print1(p, ", ")); ); } \\ Michel Marcus, Dec 20 2015
CROSSREFS
Cf. A007488.
Sequence in context: A066933 A132496 A100009 * A013045 A290864 A309366
KEYWORD
base,nonn
AUTHOR
Claudio Meller, Oct 30 2009
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 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)