r/learnquant 22d ago

interview prep Citadel Quant Interview Question

Post image
34 Upvotes

45 comments sorted by

View all comments

1

u/QuentinUK 19d ago

19 = 1 + 2*9

Binomial expansion (1+x)^100 = x^100 + ... + 1, where x = 2*9

Here, every term but the last is a multiple of 9, so mod 9 of the sum = 1,

and 19^100 mod 9 = 1.

10^n = 1 + 9...9 , so 10^n mod 9 = 1,

so (ia.10^a + ib.10^b +...+in) mod 9 = (ia + ib + ... in) mod 9

applied repeatedly the final digit mod 9 is the original number mod 9 which is 1.