July 28th, 2011, 2:38 pm
Consider all the integers generated by reordering the 9 digit number 123456789. Let's denote this set by S. Clearly, |S| = 9!.So, there must exist k in {0, 1, 2, 3, 4, 5, 6} such that S_k = { x in S such that x mod 7 = k } has more than 9!/7 elements. In other words, |S_k| = 9!/7 > 50000.All the 9!/7 numbers in the set 10*S_k mod 7 = 10*k. All numbers in 10*S_k has 10 digits.Find the number a in {0, 1, 2, 3, 4, 5, 6} such that a + 10*k mod 7 = 0.Now, all numbers in 10*S_k + a are divisible by 7 and are of 10 digits and are generated by reordering 123456789a.