OFFSET
1,1
COMMENTS
Sequence is infinite because it contains (2*10^k + 3)^3, for k>1 and k not of the form 6*h + 2. - Giovanni Resta, Mar 13 2014
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A239219(n)^3. - Michel Marcus, Mar 19 2014
EXAMPLE
50653 is in the sequence because 37^3 = 50653 is not divisible by 3, 5 or 6.
MATHEMATICA
ndnzdQ[n_]:=NoneTrue[n/Select[IntegerDigits[n], #!=0&], IntegerQ]; Select[ Range[ 400]^3, ndnzdQ] (* Harvey P. Dale, Jan 16 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^3))); s
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Mar 12 2014
STATUS
approved