How many seven-digit numbers are there that are divisible by 11?
In other words, I want to find the number of seven digit numbers that are divisible by 11.
How many seven-digit numbers are there that are divisible by 11?
In other words, I want to find the number of seven digit numbers that are divisible by 11.
Well, the last number divisible by 11 before 7 digits is 999999, so the answer is $$\left\lfloor \frac{9999999-999999}{11}\right\rfloor = 818181.$$ More generally, if $a$ is divisible by 11 and $b>a$, then the number of integers in the half open interval $(a, b]$ divisible by $11$ is given by $\left\lfloor \frac{b-a}{11} \right\rfloor$, as you can verify by trying a few small cases, and then an induction argument should follow pretty easily.
90909 * 11 is the smallest number 7 digit number divisible by 11 909090 * 11 is the largest 7 digit number divibsle by 11
So there are precisely 818181 such numbers