OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Erich Friedman, What's Special About This Number?
MAPLE
A158304 := proc(n) option remember; if n= 1 then 0; else for a from procname(n-1)+1 do d := convert(convert(a^2, base, 10), set) ; if max(op(d)) <= 4 then return a; end if; end do; end if; end proc:
seq(A158304(n), n=1..100) ; # R. J. Mathar, May 23 2010
MATHEMATICA
Select[Range[0, 1100], Max[IntegerDigits[#^2]]<5&] (* Harvey P. Dale, Nov 06 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, May 23 2010
EXTENSIONS
Extended by several correspondents, May 24 2010
STATUS
approved