login
A182233
Numbers that are palindromic in bases 2 and 6.
17
0, 1, 3, 5, 7, 21, 129, 427, 693, 819, 3999, 4257, 4593, 28539, 66433, 85093, 148617, 151497, 153513, 180213, 425971, 1040319, 1093281, 1508381, 1632995, 1974031, 1986127, 30522135, 30643095, 208080483, 1894216583, 6662648163, 8632935681
OFFSET
1,3
COMMENTS
Intersection of A006995 and A029953. - Michel Marcus, Oct 09 2014
LINKS
Ray Chandler, Table of n, a(n) for n = 1..70 (terms < 10^18)
EXAMPLE
85093 base 2 = 10100110001100101 and 85093 base 6 = 1453541.
MATHEMATICA
b1 = 2; b2 = 6; lst = {}; Do[d1 = IntegerDigits[n, b1]; d2 = IntegerDigits[n, b2]; If[d1 == Reverse[d1] && d2 == Reverse[d2], AppendTo[lst, n]], {n, 2000000}]; lst (* T. D. Noe, Apr 19 2012 *)
PROG
(PARI) isok(n) = (d2=digits(n, 2)) && (d2==Vecrev(d2)) && (d6=digits(n, 6)) && (d6==Vecrev(d6)); \\ Michel Marcus, Oct 27 2014
CROSSREFS
Cf. A006995 (base 2), A029953 (base 6).
Cf. A060792 (base 2 and 3), A097856 (base 2 and 4).
Sequence in context: A336985 A360929 A228068 * A370204 A239282 A171015
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Apr 19 2012
EXTENSIONS
a(28)-a(33) and b-file from Ray Chandler, Oct 27 2014
STATUS
approved