login
A085932
Numbers k such that (digits of k sorted in ascending order) + (digital sum of k) is a palindrome.
4
1, 2, 3, 4, 10, 20, 30, 40, 100, 124, 129, 142, 148, 167, 176, 184, 192, 200, 214, 219, 224, 229, 241, 242, 248, 267, 276, 284, 291, 292, 300, 348, 367, 376, 384, 400, 412, 418, 421, 422, 428, 438, 448, 467, 476, 481, 482, 483, 484, 567, 576, 617, 627, 637
OFFSET
1,2
COMMENTS
Essentially all terms can be generated by going over A009994. By permuting digits and including any number of 0's in any term that is in A009994 any term in this sequence can be found. For example, from 124 we find that 412, 1402, 200004001 are terms. - David A. Corneth, Apr 20 2024
LINKS
EXAMPLE
142 is a term because the digits of 142 in ascending order are 124, the digital sum of 124 is 7, and 124 + 7 = 131, a palindrome.
MATHEMATICA
dspQ[n_]:=Module[{sidn=Sort[IntegerDigits[n]], pidn}, pidn= IntegerDigits[ FromDigits[ sidn]+ Total[ sidn]]; pidn==Reverse[pidn]]; Select[Range[ 700], dspQ] (* Harvey P. Dale, Jul 19 2011 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Jason Earls and Amarnath Murthy, Jul 14 2003
STATUS
approved