OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
EXAMPLE
39204 is in the sequence because 39204 is divisible by 3, 9, 2 and 4.
MATHEMATICA
dnzQ[n_]:=And@@Divisible[n, Select[IntegerDigits[n], #!=0&]]; Select[ Range[ 500]^2, dnzQ] (* Harvey P. Dale, Dec 04 2014 *)
PROG
(PARI) isOK(n) = my(v=vecsort(digits(n^2), , 8)); for(i=1+(v[1]==0), #v, if(n^2%v[i], return(0))); 1
s=[]; for(n=1, 1000, if(isOK(n), s=concat(s, n^2))); s
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Mar 12 2014
STATUS
approved