OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
Select[Range[0, 1000], Min[DigitCount[#^2, 10, IntegerDigits[#]]]>0 && Min[ DigitCount[ #^3, 10, IntegerDigits[#]]]>0&] (* Harvey P. Dale, Aug 12 2016 *)
PROG
(Python)
from itertools import count, islice
def A029780_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda n:set(str(n)) <= set(str(m:=n**2)) & set(str(n*m)), count(max(startvalue, 0)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved