OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
EXAMPLE
198 is in the sequence because 198^2 = 39204 which is divisible by 3, 9, 2 and 4.
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))); s
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Mar 12 2014
STATUS
approved