OFFSET
1,3
EXAMPLE
a(8) = 146 because 146^3 = 3112136 includes all digits of 146^2 = 21316.
PROG
(Python)
from itertools import count, islice
from collections import Counter
def A045620_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda k:Counter(str(m:=k**2))<=Counter(str(k*m)), count(max(startvalue, 0)))
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane, Nov 01 2007, at the suggestion of Alexander R. Povolotsky
STATUS
approved