Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A057199
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A057199 The first nontrivial (k>n+2) palindromic prime in both bases n and n+2. +0
1
5, 1667, 7517, 34853363 (list; graph; listen)
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: A119747 A127106 A123658 this_sequence A122465 A003733 A024073

Adjacent sequences: A057196 A057197 A057198 this_sequence A057200 A057201 A057202

KEYWORD

nonn

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 5 01:44 EDT 2008. Contains 143476 sequences.


AT&T Labs Research