OFFSET
1,1
COMMENTS
EXAMPLE
866, 867, 868, 869 and 870 are not divisible by any of their nonzero digits. Thus 866 is a member of this sequence.
MATHEMATICA
div[n_]:=Module[{nzd=Select[IntegerDigits[n], #!=0&]}, NoneTrue[n/nzd, IntegerQ]]; SequencePosition[Table[If[div[n], 1, 0], {n, 900000}], {1, 1, 1, 1, 1}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 11 2018 *)
PROG
(Python)
def a(n):
..for i in range(10**4):
....tot = 0
....for k in range(i, i+n):
......c = 0
......for b in str(k):
........if b != '0':
..........if k%int(b)!=0:
............c += 1
......if c == len(str(k))-str(k).count('0'):
........tot += 1
....if tot == n:
......print(i, end=', ')
a(5)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Jun 26 2014
STATUS
approved