Day 8: Eight Numbers in a Hat

Algebra Level 4

A teacher organises a game to improve her students' arithmetic.

She puts the numbers 0 , 1 , 2 , , 7 0,1,2,\dots, 7 into a hat.

Every turn one student takes out two numbers from the hat and replaces them with the sum of their sum and their product (so the number of numbers in the hat decreases by one).

The game ends when there is one number left in the hat. Incredibly, it turns out that this number is always the same. What is this number?


This problem is part of the Advent Calendar 2015 .


The answer is 40319.

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

Michael Ng
Dec 7, 2015

You can do this once and simply type in your final answer, but why is it always the same answer?

At each step you replace a a and b b with a + b + a b = ( a + 1 ) ( b + 1 ) 1 a+b+ab=(a+1)(b+1)-1 .

Now note that if we have some c c that we use with this number at any step , then we will get the number ( ( a + 1 ) ( b + 1 ) 1 + 1 ) ( c + 1 ) 1 = ( a + 1 ) ( b + 1 ) ( c + 1 ) 1 ((a+1)(b+1)-1+1)(c+1)-1=(a+1)(b+1)(c+1)-1 by applying the factorisation above. Continuing this idea we find that no matter what, we will end with the number ( a + 1 ) ( b + 1 ) ( g + 1 ) 1 (a+1)(b+1)\dots (g+1)-1 Substituting in our numbers gives 8 ! 1 = 40319 8!-1=\boxed{40319} as required.

8 ! 1 = 40319 8! - 1= 40319

Pi Han Goh - 5 years, 6 months ago

Log in to reply

Hmm thank you! I must have been very tired... Is there any way to credit those who got it right and change the answer?

Michael Ng - 5 years, 6 months ago

Log in to reply

@Brilliant Mathematics , pls fix this thanks

Pi Han Goh - 5 years, 6 months ago

Log in to reply

@Pi Han Goh Yes I have edited my solution; sorry and thank you again!

Michael Ng - 5 years, 6 months ago

Yes Same Way.

Kushagra Sahni - 5 years, 6 months ago

Log in to reply

Nice, well done!

Michael Ng - 5 years, 6 months ago

Your solution is not inclusive of cases where we apply the sum-product function on pairs such as, say, something like ( a + 1 ) ( b + 1 ) 1 (a+1)(b+1)-1 and ( c + 1 ) ( d + 1 ) 1 (c+1)(d+1)-1

Jared Low - 5 years, 6 months ago

Log in to reply

Ah I did think of that; I have included that by saying at any step (in bold). So at any step we will add one to the expression and multiply, then take away one. Sorry for it not being very clear; I wasn't very sure how to phrase it in the best way.

Michael Ng - 5 years, 6 months ago

Log in to reply

Ah noted, the phrasing seems to be sufficient

Jared Low - 5 years, 6 months ago

Alternatively, you could note that a b : = a + b + a b a*b:=a+b+ab is both commutative and associative, just like addition and multiplication.

Yours is much cleverer, though.

Whitney Clark - 5 years, 6 months ago

Log in to reply

Ah yes you are very correct; nice observation! In fact, that was my initial idea for a solution but then I wanted to make it more explicit; I think all I have done is (informally) show why the operation is associative (and commutative). Thank you :)

Michael Ng - 5 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...