A308311 Numbers n which are palindromic in base b, where b = sum of digits of n in base 10.
16, 39, 41, 55, 96, 104, 123, 130, 141, 142, 155, 170, 181, 187, 214, 239, 250, 251, 260, 262, 274, 341, 343, 365, 385, 418, 422, 424, 435, 443, 464, 471, 494, 503, 505, 507, 543, 562, 599, 632, 665, 685, 706, 708, 753, 754, 818, 823, 835, 838, 843, 850, 859
Offset: 1
Examples
41 is a term because 41 = 131 in base 5 = 1 + 4.
Links
- Metin Sariyar, Table of n, a(n) for n = 1..10000
- Caldwell and Honaker, Prime Curio for 41.
Crossrefs
Cf. A007632.
Programs
-
Mathematica
Select[Range[10^5],#==IntegerReverse[#, Total[IntegerDigits[#]]]&]
-
PARI
isok(n) = my(s=sumdigits(n)); if (s> 1, my(d = digits(n, s)); d == Vecrev(d)); \\ Michel Marcus, Sep 26 2019