A099145 Numbers in base 10 that are palindromic in bases 7 and 8.
0, 1, 2, 3, 4, 5, 6, 121, 178, 235, 292, 300, 2997, 6953, 7801, 10658, 13459, 16708, 428585, 431721, 444713, 447849, 450985, 502457, 626778, 786435, 10453500, 27924649
Offset: 1
Examples
178 is in the sequence because 178_10 = 343_7 = 262_8.
Links
- Giovanni Resta, Table of n, a(n) for n = 1..48 (first 37 terms from Robert G. Wilson v)
Crossrefs
Programs
-
Mathematica
palQ[n_Integer, base_Integer] := Block[{idn = IntegerDigits[n, base]}, idn == Reverse[ idn]]; Select[ Range[ 150000000], palQ[ #, 7] && palQ[ #, 8] &]
Comments