KGS math club/solution repunit

Let x be an integer ending in 7, then 9x is a multiple of 9 which has no common factor with 10, so 10^k = 1 (mod 9x) for k = Euler's totient function of 9x. then 10^k - 1 is a multiple of 9x, so (10^k - 1)/9 is a multiple of x. (10^k - 1)/9 = 111...111 with k copies of 1.