OFFSET
1,1
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
37 is in the sequence because 37^3 = 50653 which is not divisible by 3, 5 or 6.
MATHEMATICA
n3ndQ[n_]:=Module[{nzd=DeleteCases[IntegerDigits[n^3], 0]}, NoneTrue[ n^3/nzd, IntegerQ]]; Select[Range[700], n3ndQ] (* Harvey P. Dale, Aug 20 2022 *)
PROG
(PARI) isOK(n) = my(v=vecsort(digits(n^3), , 8)); for(i=1+(v[1]==0), #v, if(n^3%v[i]==0, 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