OFFSET
1,1
COMMENTS
The sequence is infinite since it contains all the terms (5*10^k+3)^2, k>0. - Giovanni Resta, Mar 12 2014
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
EXAMPLE
2809 is in the sequence because 2809 is not divisible by 2, 8 or 9.
MATHEMATICA
Select[Range[350]^2, NoneTrue[#/(IntegerDigits[#]/.(0->Nothing)), IntegerQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 08 2017 *)
PROG
(PARI) isOK(n) = my(v=vecsort(digits(n^2), , 8)); for(i=1+(v[1]==0), #v, if(n^2%v[i]==0, 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