Magic gopher

Magic gopher

The magic gopher[1] is an interactive Adobe Flash game published online by the British Council.

Contents

Overview

The game involves the 'magic gopher' asking the player to pick a random two-digit number. The player is then asked to sum the digits of the number and subtract them from the original number. The gopher then presents a list of symbols, of which the player finds the one corresponding to this new number. The gopher then proceeds to correctly guess the player's symbol, supposedly after reading his or her mind.

The trick

The trick to the game is that the gopher uses the same symbol for every multiple of 9, from 0 through 81 (it is impossible to get a higher number using only two digits). The gopher assigns the same symbol to the multiples of 9 as to other non-multiples of 9 in order to cover up the trick; the symbol picked for each game is randomized. No matter which two-digit integer the player chooses, when the subtraction is done, the resulting number will always be a multiple of 9. In fact, no matter which (nonnegative) integer the player chooses, the result will always be a multiple of 9. The former can be proven using elementary algebra. Be aware that the proofs for n digits rely on that the digits of the number n\, are indexed with the rightmost digit being assigned position 0, with the adjacent digits (to the left) having an index increasing by one each time. For example, for the number '261', the digit '1' is in position 0, '6' is in position 1, and '2' is in position 2.

Proof for 2 digits

Let n be a 2-digit integer. Additionally, let a be the first digit of n and b be the second digit of n. Finally, let c equal the sum of the digits of n, so c = a + b..

An equivalent form for n, by virtue of using a decimal numeral system, is n = 10a + b.

The resulting number, z, is given by z = n − c = (10a + b) − (a + b) = 9a. Hence, z is always a multiple of 9. Q.E.D.

Proof for n digits

Proving that no matter how large n\, is (and how many digits n\, has), it is always a multiple of 9 is slightly trickier. The following proof makes use of modular arithmetic:

Let n\, be an integer with m\, digits and let n_m\, represent the m^{th}\, digit of n\,.
Thus, n\ = 10^m \cdot n_m + 10^{m-1} \cdot n_{m-1} + \cdots + 10^0 \cdot n_0.
Let c\, be the sum of the digits of n\,. So, c\ = n_m + n_{m-1} + \cdots + n_0.
Since 10^m \equiv 1 \mod 9, n = n_m + n_{m-1} + \cdots + n_0 = c \mod 9.
Hence n - c \equiv 0 \mod 9 so the resulting number z = n - c\, is a multiple of 9.
Q.E.D.

Alternative proof for n digits

This alternative proof is less mathematically rigorous, relying on some common sense and intuition, but it is still sufficient to demonstrate the same as the above.

Again, let n be an integer with m digits and let nm represent the mth digit of n.

Thus,

n = 10^m \cdot n_m + 10^{m-1} \cdot n_{m-1} + \cdots + 10^0 \cdot n_0.\,

Let c be the sum of the digits of n. So

c\ = n_m + n_{m-1} + \cdots + n_0.

Now, let

z = n - c = (10^m \cdot n_m + 10^{m-1} \cdot n_{m-1} + .. + 10^0 \cdot n_0) - (n_m + n_{m-1} + \cdots + n_0).

This can be written as

z = (10^m \cdot n_m - n_m) + (10^{m-1} \cdot n_{m-1} - n_{m-1}) + \cdots + (10^0 \cdot n_0 - n_0).

By factoring, we obtain

z = n_m(10^m - 1) + n_{m-1}(10^{m-1} - 1) + \cdots  + n_0(10^0 - 1).\,

Now, 10^m - 1\, will give a number with m - 1\, nines, hence, each individual digit of n is being multiplied by a multiple of 9 as the numbers given by 10^m - 1\, are implicitly multiples of 9. Since the sum of any number of multiples of 9 is always divisible by 9, we conclude that whichever number is picked for n, it will always be a multiple of 9.

If we use the resulting formula for z assuming that n will only be 2 digits in length, we obtain the same formula as with the proof for a 2 digit n:

z = n_1(10^1 - 1) + n_0(10^0 - 1) = n_1 \cdot 9 + n_0 \cdot 0 = 9n_1 where n_1 = a.\,

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Alex Gopher — Alex Gopher, de son vrai nom Alexis Latrobe, est DJ et producteur français de musique électronique. Son nom de scène est dû à son premier EP sorti en 1994, le Gopher EP, titre donné à cause d un morceau intitulé La croisière s amuse, en référence …   Wikipédia en Français

  • The Books of Magic — Infobox comic book title title = The Books of Magic caption = Cover of the first issue of the ongoing series. schedule = format = (vol 1.) Mini series (vol 2.) ongoing limited =Y ongoing =Y publisher = DC Comics (Vertigo for volume 2 and the… …   Wikipedia

  • List of mathematics articles (M) — NOTOC M M estimator M group M matrix M separation M set M. C. Escher s legacy M. Riesz extension theorem M/M/1 model Maass wave form Mac Lane s planarity criterion Macaulay brackets Macbeath surface MacCormack method Macdonald polynomial Machin… …   Wikipedia

  • List of Soul Eater characters — The main characters of Soul Eater (from left to right): Top row: Black Star, Tsubaki Nakatsukasa, Soul Eater Evans, and Maka Albarn. Bottom row: Liz and Patty Thompson, Death the Kid, Blair, and Spirit Albarn (Death Scythe). This is a list of… …   Wikipedia

  • The Many Adventures of Winnie the Pooh — Original theatrical poster …   Wikipedia

  • List of Advanced Dungeons & Dragons 2nd edition monsters — See also: Lists of Dungeons Dragons monsters This is the list of Advanced Dungeons Dragons 2nd edition monsters, an important element of that role playing game.[1] This list only includes monsters from official Advanced Dungeons Dragons 2nd… …   Wikipedia

  • Characters of Kingdom Hearts — A piece of promotional artwork for Kingdom Hearts II Final Mix+ that showcases the main characters of the series; Sora appears twice in the center in two different outfit …   Wikipedia

  • Yma Sumac — Imma Sumack « Jolie Fleur » ou « Jolie Fille » en quechua Yma Sumac signant un autographe après un concert en 1953. Nom de naissance …   Wikipédia en Français

  • Chillout Sessions — refers to the high selling series of compilations released by Ministry of Sound. It started in the UK but a similar series has also started in Australia, where the series changed its name from The Chillout Session to The Chillout Sessions and… …   Wikipedia

  • 1. Golfkrieg — Erster Golfkrieg Datum 22. September 1980–20. August …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”