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.
%I A309883 #41 Apr 30 2023 17:18:48 %S A309883 0,1,10,35,100,152,350,377,452,539,709,1000,1299,1398,1439,1519,1520, %T A309883 1569,1591,1679,1965,2599,2838,3332,3500,3598,3770,4520,4586,4754, %U A309883 4854,5390,5501,5835,5857,6388,6595,6735,6861,6951,7090,7349,7887,8395,9795,10000,10056,10159,10389,11055,11091,12990,12999 %N A309883 Numbers k such that A003132(k^2) = A003132(k), where A003132(n) is the sum of the squares of the digits of n. %C A309883 If k is in the sequence, then so are k*10^r, r >= 1. %H A309883 Robert Israel, <a href="/A309883/b309883.txt">Table of n, a(n) for n = 1..10000</a> %e A309883 377^2 = 142129, A003132(377) = 3^2 + 7^2 + 7^2 = 107, A003132(142129) = 1^2 + 4^2 + 2^2 + 1^2 + 2^2 + 9^2 = 107. %p A309883 filter:= proc(n) local t; %p A309883 add(t^2, t = convert(n,base,10)) = add(t^2, t = convert(n^2,base,10)) %p A309883 end proc: %p A309883 select(filter, [$0..20000]); # _Robert Israel_, Apr 30 2023 %t A309883 digSum[n_] := Total[IntegerDigits[n]^2]; Select[Range[0, 13000], digSum[#] == digSum[#^2] &] (* _Amiram Eldar_, Aug 22 2019 *) %o A309883 (PARI) for(i = 0, 30000, if(norml2(digits(i^2)) == norml2(digits(i)), print1(i, ", "))) %o A309883 (Python) %o A309883 def A003132(n): %o A309883 s = 0 %o A309883 while n > 0: %o A309883 s, n = s+(n%10)**2, n//10 %o A309883 return s %o A309883 n, a = 0, 0 %o A309883 while n < 50: %o A309883 if A003132(a) == A003132(a*a): %o A309883 n = n+1 %o A309883 print(n,a) %o A309883 a = a+1 # _A.H.M. Smeets_, Aug 23 2019 %o A309883 (Magma) [0] cat [k:k in [1..13000]| &+[c^2: c in Intseq(k)] eq &+[c^2: c in Intseq(k^2)]]; // _Marius A. Burtea_, Aug 24 2019 %Y A309883 Cf. A003132, A058369, A070276, A174460, A176670, A178213, A307735, A309884. %K A309883 nonn,base %O A309883 1,3 %A A309883 _Antonio Roldán_, Aug 21 2019