login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A057199 The first nontrivial (k>n+2) palindromic prime in both bases n and n+2. 0
5, 1667, 7517, 34853363 (list; graph; refs; listen; history; internal format)
OFFSET

2,1

EXAMPLE

a(2) = 1667 because it is the first prime > 5 which is a palindrome in both base 3 and 5.

MATHEMATICA

Do[ k = n + 3; While[ a = IntegerDigits[ k, n ]; b = IntegerDigits[ k, n + 2 ]; !PrimeQ[ k ] || a != Reverse[ a ] || b != Reverse[ b ], k++ ]; Print[ k ], {n, 2, 10} ]

CROSSREFS

Sequence in context: A127106 A165877 A123658 * A198246 A122465 A203683

Adjacent sequences:  A057196 A057197 A057198 * A057200 A057201 A057202

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 16 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 09:00 EST 2012. Contains 205904 sequences.