Bunuel
Let N = 123456789101112...4344 be the 79-digit number that is formed by writing the integers from 1 to 44 in order, one after the other. What is the remainder when N is divided by 45?
A. 1
B. 4
C. 9
D. 18
E. 44
rdrdrd1201Fun one, but (probably) tougher than GMAC would use unless you're at 50 or 51 Quant...or unless I'm missing some trick (aside from mods other than 10 because GMAC doesn't test mods)!!!
In order to be divisible by 45, a number must be divisible by both 5 and 9. We can tell right away that our number is not divisible by 5. Let's see if it is divisible by 9.
Divisibility by 9 occurs when the sum of the digits is divisible by 9.
Let's look at the units digits in 1 through 44 first. The units digits from any ten consecutive numbers is divisible by 9 (each ten consecutive integers includes the following units digits: 0+9, 1+8, 2+7, 3+6, 4+5). So that takes care of the units digits from 1 through 40. Then we have 1+2+3+4 =
10 as the units digits from 41-44.
How about the tens digits? We have ten 1s, ten 2s, ten 3s, and five 4s. 10(1) + 10(2) + 10(3) + 5(4) =
80.
10 from the units digits + 80 from the tens digits = 90. That's divisible by 9, too, so our 79-digit number is divisible by 9!!
But our 79-digit number is not divisible by 5.

What if we subtract 9 from our 79-digit number? It would still be divisible by 9. And the units digit would now be 5, so that new number would be divisible by 5, too. That means that the new number is divisible by both 5 and 9, so the new number is a multiple of 45. Therefore, our 79-digit number is greater by 9 than a multiple of 45. So, the remainder of the 79-digit number when divided by 45 will be 9.
Answer choice C.