Problem:
A factory uses 10 types of a box to package its product. They are numbered from 1 to 10. In box 10, 6 boxes of type 9 can be placed. In box 9, 6 boxes of type 8 can be placed, ... in box 2, 6 boxes of type 1 can be placed and finally in box 1, 6 products are placed. If we use boxes with a capacity of 215 products to package the products that are packaged in the box 10, how many products will be left over?
My attempt:
I figured out the hierarchy like a tree of degree 6. So, the box 10 can hold $6^{10}$ products. This is a huge number, how can I find its reminder to 215?
Chinese Remainder Theorem
$215 = 5*43$
$6\equiv 1 \mod 5$ so $6^{10}\equiv 1 \mod 5$. Which means $6^{10} \equiv 1 + 5M \mod 215$ for some $0 \le M < 43$.
$6^2 =36\equiv -7 \mod 43$ so $6^{4} \equiv 49 \equiv 6$ and, hey, that must mean $6^3 = -7*6 = -42 \equiv 1 \mod 43$.
So $6^{10} = (6^3)^3*6 \equiv 6 \mod 43$. So $6^{10} \equiv 6 + 43K \mod 215$ for some $0 \le K < 5$.
So we need $x \equiv 1\mod 5$ and $x \equiv 6\equiv \mod 43$. So $x = 1 + 5M = 6+43K$. And $0 \le x < 215$ so ($0 \le M < 43$ and $0\le K < 5$). CRT says there will be exactly one such solution.
Clearly $x = 1 + 5(1) = 6 + 43(0) = 6$ is one solution. CRT says it is the only solution.
Indeed the solutions have to be one of: $\{1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76,81,86,91,96,101,106,111,116,121,126,131,136,141,146,151,156,161,166,171,176,181,186,191,196,201,206,211\}$ and also one of $\{6,49,92,135,178\}$. The only number on both lists is $6$.