OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..2000
EXAMPLE
204 is divisible by 2 and 4 but 204 is not divisible by 2*4 = 8, hence 204 is a term.
248 is divisible by 2, by 4 and by 8 but 248 is not divisible by 2*4*8 = 64, hence 248 is a term.
MATHEMATICA
q[n_] := AllTrue[(d = Select[IntegerDigits[n], # > 0 &]), Divisible[n, #] &] && ! Divisible[n, Times @@ d]; Select[Range[840], q] (* Amiram Eldar, Mar 21 2021 *)
dnzQ[n_]:=With[{c=DeleteCases[IntegerDigits[n], 0]}, Union[Boole[Divisible[n, c]]]=={1}&&!Divisible[n, Times@@c]]; Select[ Range[ 1000], dnzQ] (* Harvey P. Dale, Jan 16 2025 *)
PROG
(PARI) isok(m) = my(d=select(x->(x != 0), digits(m))); (m % vecprod(d)) && (sum(k=1, #d, m % d[k]) == 0); \\ Michel Marcus, Mar 22 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Mar 20 2021
STATUS
approved