cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A225065 Numbers of the form n^2 plus the sum of squared digits of n^2.

Original entry on oeis.org

2, 20, 53, 54, 81, 90, 101, 116, 127, 146, 177, 258, 287, 314, 321, 353, 407, 416, 438, 474, 580, 639, 686, 690, 797, 863, 913, 922, 981, 1045, 1079, 1219, 1235, 1259, 1418, 1493, 1496, 1552, 1637, 1783, 1866, 2011, 2058, 2063, 2158, 2298, 2333, 2422, 2529
Offset: 1

Views

Author

Keywords

Comments

Note that consecutive terms are not necessarily generated by consecutive values of n.
It appears that 146 is the only term that can be generated by two values of n (7 and 9). There are no other duplicates in the first 10000 terms.

Examples

			For n=11: 11^2=121; 121 + 1^2 + 2^2 + 1^2 = 127.
		

Crossrefs

Programs

  • R
    sort(unique((1:101)^2+sapply((1:101)^2,function(x) sum(as.numeric(unlist(strsplit(as.character(x),split="")))^2))))