Browse · MathNet
PrintHong Kong Preliminary Selection Contest
Hong Kong number theory
Problem
Let denote the greatest integer not exceeding . Find the last two digits of
Solution
Note that the remainder when is divided by is when is even, and when is odd. Hence when is even, and when is odd. It follows that The last two digits of powers of are listed as follows: 02, 04, 08, 16, 32, 64, 28, 56, 12, 24, 48, 96, 92, 84, 68, 36, 72, 44, 88, 76, 52, 04, 08, ... The pattern repeats when the exponent is increased by . So the last two digits of are the same as those of , i.e. . Now write . Since is an integer, is a multiple of , and so we write . Thus the last two digits of are the same as those of , i.e. .
Final answer
15
Techniques
Fermat / Euler / Wilson theoremsSums and products