login
A244358
Numbers n such that n, n+1, n+2, and n+3 are not divisible by any of their nonzero digits.
1
56, 506, 556, 586, 596, 656, 667, 757, 787, 857, 866, 867, 956, 976, 977, 5056, 5066, 5096, 5506, 5666, 5756, 5776, 5876, 5906, 5986, 5996, 6056, 6067, 6506, 6697, 6986, 7057, 7556, 7576, 7597, 7757, 7786, 7787, 7876, 7897, 7906, 7976, 7996, 8066, 8067, 8506, 8596, 8666, 8697
OFFSET
1,1
COMMENTS
This is a subsequence of A244357.
All numbers end in a 6 or 7.
EXAMPLE
56, 57, 58, and 59 are not divisible by any of their digits. Thus, 56 is a member of this sequence.
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(4)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Jun 26 2014
STATUS
approved