OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..3001
FORMULA
a(n) = sqrt(A029775(n)). - Sean A. Irvine, Mar 04 2020
EXAMPLE
235^2 = 55225, whose digits are a subset of {2,3,5}.
MATHEMATICA
dn2Q[n_]:=And@@(MemberQ[Union[IntegerDigits[n]], #]&/@Union[ IntegerDigits[ n^2]]); Select[Range[0, 25000], dn2Q] (* Harvey P. Dale, Apr 10 2013 *)
Select[Range[0, 25000], SubsetQ[IntegerDigits[#], IntegerDigits[#^2]]&] (* using SubsetQ function from Mathematica 10 *) (* Harvey P. Dale, Jul 13 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved