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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A046477 Palindromic primes in bases 8 and 10. 0
2, 3, 5, 7, 373, 13331, 30103, 1496941, 1970791 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

373{10} gives 373{8} but also 373{4} and 373{9}.

LINKS

Table of n, a(n) for n=1..9.

P. De Geest, World!Of Palindromic Primes

MATHEMATICA

Do[s = RealDigits[n, 8][[1]]; t = RealDigits[n, 10][[1]]; If[PrimeQ[n], If[FromDigits[t] == FromDigits[Reverse[t]], If[FromDigits[s] == FromDigits[Reverse[s]], Print[n]]]], {n, 1, 10^5}]

CROSSREFS

Cf. A002385, A029976.

Sequence in context: A052025 A045336 A083183 * A145843 A090720 A114780

Adjacent sequences:  A046474 A046475 A046476 * A046478 A046479 A046480

KEYWORD

nonn,hard,base

AUTHOR

Patrick De Geest, Aug 15 1998.

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified August 16 13:36 EDT 2017. Contains 290623 sequences.