Add up the eggs

Algebra Level 3

On my farm, there are several hens that have laid eggs. No hen has laid more than 20 eggs.

Suppose that a 1 a_1 hens have laid at least 1 egg, that a 2 a_2 hens have laid at least 2 eggs, and so on.

What could be the total number of eggs laid? Three farm consultants, Alice, Bob and Chandler have three answers:

Alice says: a 1 + a 2 + + a 20 a_1 + a_2 + \cdots +a_{20}

Bob says: 20 a 20 + 19 ( a 19 a 20 ) + 18 ( a 18 a 19 ) + + 2 ( a 2 a 3 ) + ( a 1 a 2 ) 20 a_{20} + 19 (a_{19} - a_{20}) + 18 ( a_{18} - a_{19}) + \cdots + 2 (a_2 - a_3) + (a_1 - a_2)

Chandler says: a 1 + 2 a 2 + + 19 a 19 + 20 a 20 a_1 + 2 a_2 + \cdots +19 a_{19} + 20 a_{20}

Who among them must be right?

Select one or more

Alice Bob Chandler

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.

1 solution

Eric Schneider
Jan 22, 2019

We start by considering a simple example: One chicken that lays 20 eggs. This means that all values, from a 1 a_1 to a 20 a_{20} , are equal to one.

We consider Chandler's guess first, and immediately discover that it is wrong. His formula gives a solution of 210 eggs. Chandler's formula would only be correct if a n a_n gave the number of chickens that laid exactly n n eggs.

Alice and Bob's solutions are both correct here, so we consider them both.

First, Bob's solution. Specifically, Bob's solution is of the form n ( a n a n + 1 ) n(a_n-a_{n+1}) . Let's consider a single chicken. If the chicken has laid less than n n eggs, then obviously they do not contribute to a n a_n and a n + 1 a_{n+1} , so they will not affect the total difference. If the chicken has laid more than n n eggs, a n a_n and a n + 1 a_{n+1} will both be incremented, so the difference will not be affected. Only if the chicken lays n n eggs will the difference a n a n + 1 a_n-a_{n+1} be incremented , so the term a n a n + 1 a_n-a_{n+1} describes the number of chickens who have laid exactly n n eggs. If we define b n b_n to be the number of chickens that lay exactly n n eggs (noticing here that since no chickens lay more than 20 eggs, a 20 = b 20 a_{20}=b_{20} ), we see Bob's expression simplify to 20 b 20 + 19 b 19 + 18 b 18 + + 2 b 2 + b 1 20b_{20}+19b_{19}+18b_{18}+\dots+2b_{2}+b_{1} It is trivial to verify that this will be the total number of eggs laid.

Last, we have Alice's solution. We notice that a chicken that lays n n eggs will increment exactly n n values, from a 1 a_1 to a n a_n . Because of this, we see that this sum will count each egg that each chicken lays. As well as this, we can see that this expression is equivalent to Bob's by replacing each a n a_n term with ( n + 1 ) a n n a n (n+1)a_n-na_n and factoring.

Nicely explained.

Agnishom Chattopadhyay - 2 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...