OFFSET
1,1
COMMENTS
Note that early terms are not always produced in order. For example, 162 is produced by x=9, but is the 12th term in the sequence. The last out-of-order term is a(30)=926, produced when x=29.
LINKS
Christian N. K. Anderson, Table of n, a(n) for n = 1..10000
Christian N. K. Anderson, Ulam Spiral of terms 1 to 500.
EXAMPLE
251 is in the sequence, because 15^2 + (1^2 + 5^2) = 251.
MATHEMATICA
Table[n^2+Total[IntegerDigits[n]^2], {n, 100}]//Union (* Harvey P. Dale, Jan 25 2021 *)
PROG
(R) sort((1:10000)^2+vapply(1:10000, sum(as.numeric(unlist(strsplit(as.character(as.bigz(x)), split="")))^2), 1))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Christian N. K. Anderson, Apr 22 2013
STATUS
approved