OFFSET
1,2
MATHEMATICA
Select[Range[642], Count[Table[DigitCount[#^2, 10, k] - DigitCount[#, 10, k], {k, Union[x = IntegerDigits[#]]}], _?Negative] == 0 && Last[x] != 0 &] (* Jayanta Basu, Jun 29 2013 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved