OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(n) local L;
L:= convert(n^2, base, 10);
type(convert(L, `+`)/nops(L), integer)
end proc:
select(filter, [$1..1000]); # Robert Israel, Feb 24 2016
MATHEMATICA
Select[Range[500], IntegerQ[Mean[IntegerDigits[#^2]]]&] (* Harvey P. Dale, May 25 2011 *)
PROG
(PARI) isok(n) = my(d=digits(n^2)); (vecsum(d) % #d) == 0; \\ Michel Marcus, Feb 24 2016
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Aug 27 2009
STATUS
approved