login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A085936 Numbers k such that the number resulting from sorting the digits of k in ascending order + the sum of the squares of the digits of k is a palindrome. Or, sortdigits(k) + digitsumsquare(k) is a palindrome. 2
1, 2, 10, 19, 20, 24, 26, 38, 42, 57, 62, 75, 78, 83, 87, 91, 100, 109, 119, 122, 127, 138, 157, 172, 175, 178, 183, 187, 190, 191, 200, 204, 206, 212, 217, 221, 239, 240, 260, 271, 293, 308, 318, 329, 337, 355, 359, 373, 377, 380, 381, 388, 392, 395, 402, 420 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
91 is a term because 91 sorted is 19 and the sum of the squares of the digits of 19 = 1^2 + 9^2 = 82 and 19 + 82 = 101, a palindrome.
MATHEMATICA
dsQ[n_]:=Module[{sd=FromDigits[Sort[IntegerDigits[n]]], ds=Total[ IntegerDigits[n]^2], idc}, idc=IntegerDigits[sd+ds]; idc==Reverse[idc]]; Select[Range[500], dsQ] (* Harvey P. Dale, Nov 06 2013 *)
CROSSREFS
Cf. A085937.
Sequence in context: A322951 A156446 A032685 * A226179 A030570 A039560
KEYWORD
base,easy,nonn,changed
AUTHOR
Jason Earls and Amarnath Murthy, Jul 14 2003
EXTENSIONS
Corrected by T. D. Noe, Oct 25 2006
Name clarified by Jon E. Schoenfield, Apr 14 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 06:45 EDT 2024. Contains 371906 sequences. (Running on oeis4.)