OFFSET
1,2
EXAMPLE
212 belongs to this sequence because 212 sorted is 122 and the sum of the squares of the digits of 122 = 1^2 + 2^2 + 2^2= 9 and 122 + 9 = 131, a palindrome.
MATHEMATICA
Select[Range[2*10^6], PalindromeQ[#]&&With[{d=Sort[IntegerDigits[#]]}, PalindromeQ[Total[d^2]+FromDigits[d]]]&] (* Harvey P. Dale, Jan 26 2025 *)
CROSSREFS
KEYWORD
base,easy,nonn,changed
AUTHOR
Jason Earls and Amarnath Murthy, Jul 14 2003
STATUS
approved