Jack said:"I'm 37 and my wife is 32; we have got 3 sons: Luisa who is 11, Carl, who is 7 and Alex who is......... If you would like to know Alex's age, it's enough to elevate my age to the exponent 'age of my mother-in-law', divide the result by Luisa's age and see the remainder. But that's not all: you can also elevate my wife's age to the 'age of the waitress',divide the result by Carl's age and see the remainder. In both cases the result is the same: Alex's age. However, while you solve the problem, i will go to supermarket to buy a candle for Alex's cake. I'll add it to the candles of last year".
So, which is Alex's age??
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
3 7 X m o d 1 1 4 0 ≡ 1 4 1 ≡ 4 4 2 ≡ 5 4 3 ≡ 9 4 4 ≡ 3
3 2 Y m o d 7 4 0 ≡ 1 4 1 ≡ 4 4 2 ≡ 2
The two equations can be derived from the information given, as can the cycle lengths that follow. Because 4 is the only common remainder between the two equations, and, "In both cases the result [remainder] is the same: Pierino's age," Pierino's age must be 4 .
If you wish to learn more, check out one of Brilliant's notes or Wiki pages on mods, specifically exponential modular arithmetic in the case of this problem.