A164771 Numbers k such that the average digit of k^2 is 1.
1, 1049, 1490, 10002, 10005, 10011, 10020, 10050, 10101, 10110, 10149, 10200, 10500, 11001, 11010, 11100, 11490, 12000, 14499, 15000, 17610, 18000, 20001, 20010, 20100, 21000, 24900, 30000, 33200, 35000, 36100, 44900, 44990, 45100
Offset: 1
Examples
1049 is a term because 1049^2 = 1100401 and (1 + 1 + 0 + 0 + 4 + 0 + 1)/7 = 1.
Crossrefs
Programs
-
Mathematica
Select[Range[50000],Mean[IntegerDigits[#^2]]==1&] (* Harvey P. Dale, Dec 15 2014 *)
-
PARI
{for(d=1,9, for(n=sqrtint(10^(d-1)-1)+1, sqrtint(10^d-1), my(n2=divrem(n^2,10)); sum( k=2,d, (n2=divrem(n2[1],10))[2],n2[2])/d==1 & print1(n",")))} \\ M. F. Hasler, Dec 05 2010
Formula
Extensions
Terms up to a(117) checked with given PARI code by M. F. Hasler, Dec 05 2010
Comments