Once upon a time...
16 nerds got to live in a mansion together. They hacked some banks, and earned some money, and saved all of it in a group account of an online bank. (???) It was only when they looked at the clock that they realized it was 3:30AM. So they agreed to get some shut-eye for a few hours, and to split the money equally after they wake up. After some minutes, everyone was asleep except one. He decides to split the money himself. So he donates $1 from the money to the charity, and then sends exactly of the leftover to his private account. After that, he goes to sleep. As soon as he goes asleep, another nerd wakes up, and does the same. The rest of the nerds do the exact same thing, one by one. They all wake up at the same time when the clock rings, and each of them sends of the money to their respective private accounts as if nothing happened during the night.
Given that every online bank only allows transactions of an integer amount of money, the minimum amount of the money the nerds earned in the first place is
is an odd natural number and is a natural number. Find the value of
Details and assumptions:
This problem is a part of <Christmas Streak 2017> series .
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.
Let's say there're n nerds doing this.
And let's assume that the last nerd took $ k .
Then before that nerd took it, there was $ ( n k + 1 ) .
Then before the second last nerd took it, there was $ ( n − 1 n ( n k + 1 ) + 1 ) = $ ( n − 1 n 2 k + n − 1 n + 1 ) .
Before the third last nerd took it, there was $ ( n − 1 n ( n − 1 n 2 k + n − 1 n + 1 ) + 1 ) = $ ( ( n − 1 ) 2 n 3 k + ( n − 1 n ) 2 + n − 1 n + 1 ) .
So, before the first nerd took it, there was $ ( ( n − 1 ) n − 1 n n k + ( n − 1 n ) n − 1 + ⋯ + n − 1 n + 1 ) = $ ( n − 1 ) n − 1 n n k + n n − ( n − 1 ) n .
Since the numerator must be divisible by the denominator, n n k + n n − ( n − 1 ) n ≡ 0 ( m o d ( n − 1 ) n − 1 ) .
Then n n ( k + 1 ) ≡ 0 ( m o d ( n − 1 ) n − 1 ) ⇔ k ≡ − 1 ( m o d ( n − 1 ) n − 1 ) ⇔ k = ( n − 1 ) n − 1 t − 1 . ( t ∈ N )
But since the leftover money after the last nerd, ( n − 1 ) k , should be divisible by n , we get k ≡ 0 ( m o d n ) .
k = ( n − 1 ) n − 1 t − 1 ≡ ( − 1 ) n − 1 t − 1 ≡ 0 ( m o d n ) ⇔ ⎩ ⎪ ⎨ ⎪ ⎧ k = ( n − 1 ) n − 1 − 1 k = ( n − 1 ) n − 1 ( n is odd ) ( n is even )
Therefore, the minimum amount of money the nerds earned in the first place is
⎩ ⎪ ⎨ ⎪ ⎧ n n − n + 1 n n ( n − 1 ) − n + 1 ( n is odd ) ( n is even )
Since n = 1 6 in this problem, we obtain $ ( 1 5 ⋅ 1 6 1 6 − 1 5 ) = $ ( 1 5 ⋅ 2 6 4 − 1 5 ) .
∴ a + b = 1 5 + 6 4 = 7 9 .