Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A074830
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A074830 Number of base reversals which result in a prime for bases less than n. +0
1
0, 0, 1, 0, 3, 2, 5, 2, 1, 3, 7, 3, 10, 4, 3, 3, 12, 4, 9, 5, 4, 7, 14, 4, 11, 5, 5, 7, 15, 3, 20, 9, 6, 6, 12, 3, 19, 11, 9, 6, 23, 4, 26, 8, 6, 10, 24, 7, 17, 11, 7, 15, 33, 4, 19, 9, 12, 12, 22, 5, 30, 16, 11, 13, 15, 4, 38, 15, 14, 8, 36, 5, 40, 17, 7, 13, 32, 4, 39, 13, 6, 13, 38, 4, 25 (list; graph; listen)
OFFSET

1,5

COMMENT

If n is composite, then there does not exist any bases greater than n for which its base reversal is prime. And if n is a prime, then there exists an infinite number of bases greater than n for which its base reversals are primes. Therefore the restriction to bases up to n only.

EXAMPLE

a(5) = 3 because 5 = 101 in base 2 and its reversal 101 base 2 = 5, 5 = 12 in base 3 and its reversal 21 base 3 = 7, 5 = 11 base 4 and its reversal 11 base 4 = 5. 3,7,&5 are all primes.

MATHEMATICA

f[n_] := Block[{c = 0, b = 2}, While[b < n + 1, If[ PrimeQ[ FromDigits[ Reverse[ IntegerDigits[n, b]], b]], c++ ]; b++ ]; c]; Table[ f[n], {n, 1, 85}]

CROSSREFS

Sequence in context: A093527 A088233 A056008 this_sequence A127750 A112528 A154421

Adjacent sequences: A074827 A074828 A074829 this_sequence A074831 A074832 A074833

KEYWORD

base,easy,nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 09 2002

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 | The OEIS Foundation | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified March 20 09:10 EDT 2010. Contains 173642 sequences.


AT&T Labs Research