# 2017 Divides String of 1s

Let $$O_n = \underbrace{111111\ldots1}_{\text{ number of 1's }=\, n}.$$

Find the smallest positive integer $$n$$ such that $$2017 \mid O_n$$.

If there is no such $$n$$, enter 0.

×