My two cents (How I solved this). This is a super-fun question!
N = 1234....4344 (number formed by writing integers from 1 to 44 in order).
To find: Remainder when N is divided by 45.
For a number to be divisible by 45, it should be divisible by both 5 and 9.
Point: If we can find the closest number to N which is divisible by 5 (ends with 5 or 0) and also divisible by 9 (sum of all digits = 9), from there, we can easily find the remainder when N is divided by 45.
(1) Let's check if N is divisible by 9.
Sum of digits =
sum of unit digits +
sum of tens digitsSum of units digits = Sum of units digits from 1 to 9 + sum of units digits from 10 to 19 + sum of units digits from 20 to 29 +.... sum of units digits from 40 to 44.
= [1+..9] + [0+1+...9] + [0+1+...9] + [0+1+...9] + [0+1+2+3+4]
Sum of digits from 0 to 9 = 45.
Sum of unit digits = 4x45 + 10 = 180+10 = 190.
Sum of tens digits = sum of tens digits of 10 to 19 + sum of tens digits of 20 to 29 + sum of tens digits of 30 to 39 + sum of tens digits of 40 to 44
Sum of tens digits = 10(1) + 10(2) + 10(3) + 5(4) = 80.
Therefore,
Sum of digits of N = 190 + 80 = 270 = multiple of 9.
Therefore,
N is divisible by 9. Now, close to N, if we can find a number that is divisible by 9 but also by 5 (ending with 5 or 0), then, that number is divisible by 45.
Observe:
1234....4335, 1234........4344, 1234......4353, 1234.........4362, 1234.......4371,
1234..........80.
We can use either of the two numbers highlighted above.
1234......4335 is divisible by 45 because it is divisible by both 9 and 5. Our N is 9 more than this number. Hence, the remainder when N is divided by 45 should be 9.
Alternately, 1234....4380 is divisible by 45. Our N is 36 less than this number. Hence, the remainder when N is divided by 45 should be -36 i.e., +(45-36) = 9.
Choice C.
Hope this helps!
Harsha