|
Search: id:A075242
|
|
|
| A075242 |
|
Least base for which the n-th composite number whose reversal in that base is a prime, or zero if impossible. |
|
+0 3
|
|
| 0, 2, 4, 6, 2, 2, 2, 3, 8, 3, 2, 3, 2, 2, 2, 2, 9, 2, 6, 4, 3, 2, 3, 12, 6, 3, 2, 6, 2, 3, 2, 2, 3, 2, 9, 2, 3, 2, 2, 3, 2, 12, 2, 3, 12, 3, 6, 2, 3, 10, 6, 2, 3, 10, 2, 26, 2, 27, 2, 12, 3, 2, 9, 2, 12, 2, 2, 3, 2, 3, 2, 4, 3, 2, 34, 2, 3, 2, 6, 2, 3, 2, 38, 2, 2, 3, 4, 7, 24, 2, 2, 3, 2, 3, 18, 4, 18
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
Question, other than 4, is there a composite which can not be made a prime by base reversal? I have found none < 10^5-th composite.
|
|
EXAMPLE
|
a(1) = 0 because 4 (2) = 1 and 4 (3) = 4 and any base greater than 3 always gives the composite 4 as its base reversal. a(3) = 4 because 8 (2) = 1, 8 (3) = 8 but 8 (4) = 2 a prime.
|
|
MATHEMATICA
|
Composite[n_] := FixedPoint[n + PrimePi[ # ] + 1 &, n]; f[n_] := Block[{b = 2}, While[b < n && !PrimeQ[ FromDigits[ Reverse[ IntegerDigits[n, b]], b]], b++ ]; If[b != n, b, 0]]; Table[ f[ Composite[n]], {n, 1, 105}]
|
|
CROSSREFS
|
Adjacent sequences: A075239 A075240 A075241 this_sequence A075243 A075244 A075245
Sequence in context: A080413 A004517 A056649 this_sequence A050975 A053446 A133903
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 09 2002
|
|
|
Search completed in 0.002 seconds
|