login
A043004
Base-4 palindromes that start with 2.
1
2, 10, 34, 38, 42, 46, 130, 150, 170, 190, 514, 530, 546, 562, 582, 598, 614, 630, 650, 666, 682, 698, 718, 734, 750, 766, 2050, 2130, 2210, 2290, 2310, 2390, 2470, 2550, 2570, 2650, 2730, 2810, 2830, 2910, 2990, 3070, 8194, 8258, 8322, 8386, 8466, 8530, 8594
OFFSET
1,1
LINKS
MATHEMATICA
a[base_Integer, leading_Integer] := With[{k = 2}, Map[FromDigits[#, base] &, {{leading}, {leading, leading}}]~Join~Union@Flatten@Join[{ParallelMap[FromDigits[#, base] &@Join[#, Reverse@#] &@Join[{leading}, IntegerDigits[#, base]] &, Range[0, base^k - 1]], ParallelMap[FromDigits[#, base] &@Join[#, Reverse@Most[#]] &@Join[{leading}, IntegerDigits[#, base]] &, Range[0, base^k - 1]]}]];
a[4, 2] (* Robert P. P. McKone, Aug 26 2021 *)
CROSSREFS
KEYWORD
nonn,base
EXTENSIONS
More terms from Robert P. P. McKone, Aug 22 2021
STATUS
approved