There are 16 more girls than boys playing with marbles. They each start holding at least 1 marble.
Each of the boys equally distributes his marbles between himself and all of the girls.
Similarly, each of the girls equally distributes her original marbles between herself and all of the boys.
They all end up with the same number of marbles.
.
Fred is one of the boys playing, what is the smallest amount of marbles for Fred to end up with?
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.
Differentiation doesn't guarantee an integer solution, but only a real solution. Use of AM-GM inequality gives the integer solution rather. Converting the numerator into a 2nd. degree polynomial in N-1 we can reduce the expression for F as : F=k[(N-1) + 16/(N-1) + 18]>=26k, minimum of F is attained when N-1=16/(N-1) or N=5.
I like the AM-GM, but disagree, both solutions do exactly the same: Let's assume there are a more girls than boys. k F = ( N − 1 ) + ( a + 2 ) + N − 1 a .
Differentiating (by ( N − 1 ) : 1 − ( N − 1 ) 2 a = 0 ⟹ ( N − 1 ) = a , k F ≥ a + a + 2 .
AM-GM: k F ≥ a + a + 2 , which occurs when ( N − 1 ) = N − 1 a , so ( N − 1 ) = a . Both give integral solutions because a = 1 6 = 4 2 .
If both gave non-integer minimum at N = X , we would have to look at both ⌊ X ⌋ and ⌈ X ⌉ . Then, if these have k = 1 , we would look below and above respectively until we find a smaller k and compare. Repeat until we reach k = 1 (which at least occurs at ( N − 1 ) = 1 , a .
Example, a = 2 1 : k F = ( N − 1 ) + 2 3 + N − 1 2 1 ≥ 2 1 + 2 3 at ( N − 1 ) = 2 1 = 4 . 5 8 .
Try ( N − 1 ) = 4 , 5 : k = 4 , 5 respectively. N B + G = 7 9 , 1 0 9 . Look up and down for a smaller k . Reach, [ ( N − 1 ) , k , N B + G ] = [ 3 , 1 , 1 7 ] , [ 6 , 2 , 4 7 ] , [ 7 , 1 , 2 5 ] . Minimum is 1 7 .
Problem Loading...
Note Loading...
Set Loading...
Let there be N boys and let boys 1 , 2 , . . . N and girls 1 , 2 . . . N + 1 6 start with b 1 , b 2 , . . . b N , g 1 , g 2 , . . . g N + 1 6 marbles respectively. Let g t o t a l be the total number of girl marbles.
(Boy 1 gives N + 1 7 b 1 to himself and the N + 1 6 girls etc.)
Boys i and j end up with N + 1 7 b i + N + 1 g t o t a l and N + 1 7 b j + N + 1 g t o t a l . Hence, b i = b j = b , ∀ i , j and some b . Similarly for the girls all starting with g each.
We can also note that ( N + 1 7 ) ∣ b and ( N + 1 ) ∣ g . So we can let b = ( N + 1 7 ) B and g = ( N + 1 ) G . ( B is the number of marbles giving from a boy to a girl etc.)
.
Equating the final amounts of the boys and girls, we get:
Fred's final amount, F = B + ( N + 1 6 ) G = N B + G , so ( N − 1 ) B = ( ( N − 1 ) + 1 6 ) G .
k B = k ( 1 + N − 1 1 6 ) G , where k is the greatest divisor of N that doesn't divide 1 6 (so \frac{16k}{N - 1} is an integer coprime to k ).
To minimise F we must minimise B and G , which have minimum values k ( 1 + N − 1 1 6 ) and k respectively. ( F = k [ N ( 1 + N − 1 1 6 ) + 1 ] ).
Assuming constant k , we can minimise F w.r.t. N by differentiation: d N d F = k [ 1 + N − 1 1 6 − ( N − 1 ) 2 1 6 N ] = 0 ⟹ ( N − 1 ) 2 + 1 6 ( N − 1 ) − 1 6 N = ( N − 1 ) 2 − 1 6 = 0 ⟹ N = 5 .
(We can note that N = 5 ⟹ k = 1 , thus minimising it, hence this is a true minimum. If k = 1 , there may be another N nearby with a smaller k and a smaller F ).
For N = 5 , B = 5 , G = 1 , and F = 2 6 .
Note, in this case, the 5 boys start with 1 1 0 marbles and the 21 girls start with 6 . Totalling 6 7 6 = 2 6 2 .