|
|
A246808
|
|
Palindromic terms of the sequence A245317.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
For each n, A100414(n).reversal(A100414(n)) is in the sequence, where dot denotes concatenation. What is the first term of the sequence which is not of the above form?
a(9) <= 253385633342243336583352 and a(10) <= 661494322636636223494166.
a(9) = A245317(997140501) = 1050417996997140501 is the smallest term of the sequence which is not of the form A100414(n).reversal(A100414(n)). 253385633342243336583352 and 661494322636636223494166 are two consecutive terms of the sequence. - Farideh Firoozbakht, Sep 23 2014
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
h[n_]:=If[!PrimeQ[n], FromDigits[Flatten[{IntegerDigits[n], IntegerDigits[n-PrimePi[n]-1]}]]]; Do[a=h[n]; If[!PrimeQ[n]&&FromDigits[Reverse[IntegerDigits[a]]]==a, Print[a]], {n, 100000000}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|