Article 3Z6MZ Footnote on fifth root trick

Footnote on fifth root trick

by
John
from John D. Cook on (#3Z6MZ)

Numberphile has a nice video on the fifth root trick: someone raises a two-digit number to the 5th power, reads the number aloud, and you tell them immediately what the number was.

Here's the trick in a nutshell. For any number n, n5 ends in the same last digit as n. You could prove that by brute force or by Euler's theorem. So when someone tells you n5, you immediately know the last digit. Now you need to find the first digit, and you can do that by learning, approximately, the powers (10k)5 for i = 1, 2, 3, ", 9. Then you can determine the first digit by the range.

Here's where the video is a little vague. It says that you don't need to know the powers of 10k very accurately. This is true, but just how accurately do you need to know the ranges?

If the two-digit number is a multiple of 10, you'll recognize the zeros at the end, and the last non-zero digit is the first digit of n. For example, if n5 = 777,600,000 then you know n is a multiple of 10, and since the last non-zero digit is 6, n = 60.

So you need to know the fifth powers of multiples of 10 well enough to distinguish (10k - 1)5 from (10k + 1)5. The following table shows what these numbers are.

|---+---------------+---------------|| k | (10k - 1)^5 | (10k + 1)^5 ||---+---------------+---------------|| 1 | 59,049 | 161,051 || 2 | 2,476,099 | 4,084,101 || 3 | 20,511,149 | 28,629,151 || 4 | 90,224,199 | 115,856,201 || 5 | 282,475,249 | 345,025,251 || 6 | 714,924,299 | 844,596,301 || 7 | 1,564,031,349 | 1,804,229,351 || 8 | 3,077,056,399 | 3,486,784,401 || 9 | 5,584,059,449 | 6,240,321,451 ||---+---------------+---------------|

So any number less than a million has first digit 1. Any number between 1 million and 3 million has first digit 2. Etc.

You could choose the following boundaries, if you like.

|---+----------------|| k | upper boundary ||---+----------------|| 1 | 1,000,000 || 2 | 3,000,000 || 3 | 25,000,000 || 4 | 100,000,000 || 5 | 300,000,000 || 6 | 800,000,000 || 7 | 1,700,000,000 || 8 | 3,200,000,000 || 9 | 6,000,000,000 ||---+----------------|

The Numberphile video says you should have someone say the number aloud, in words. So as soon as you hear "six billion "", you know the first digit of n is 9. If you hear "five billion" or "four billion" you know the first digit is 8. If you hear "three billion" then you know to pay attention to the next number, to decide whether the first digit is 7 or 8. Once you hear the first few syllables of the number, you can stop pay attention until you hear the last syllable or two.

JRVdpOXgf60
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments