Archive for July 28, 2012

Golf Is a Good Walk Ruined

The title of this post is a quote attributed to Mark Twain. I would amend it as follows:

Golf may be a good walk ruined — but it’s a good time to think about math.

Golf Flag 55Not too long ago, I attended a conference at the Asilomar Conference Center on the Monterey Bay Peninsula in California. The property is adjacent to beautiful 17-Mile Drive and historic Pebble Beach. With some free time on the last afternoon, I decided to treat myself to a round of golf.

“Hello, this is Edie. Thanks for calling Pebble Beach Golf Club. How can I help you?”

“Hi, Edie. I’m wondering if I can get on the course to play 9 holes today.”

“You sure can,” she said, “but the price is the same for 9 or 18 holes.”

“Oh, okay. And what’s the price?”

“$495,” Edie said matter-of-factly.

I did a quick mental calculation, and I realized that the price would be $55 per hole.

What I said: “On second thought, Edie, I’m not sure I’ll have enough time today. Let me call back if my schedule opens up.”

What I thought: “Are you f**kin’ kiddin’ me?”

So instead of playing Pebble Beach, I found an executive course in Cupertino where I played 9 holes, rented clubs, and bought six golf balls, a bag of tees, and a new golf glove — all for less than $50.

Not only does this incident represent an exercise in fiscal responsibility, it also brought to mind divisibility rules. For instance, I realized that 495 was divisible by 9 because 4 + 9 + 5 = 18.

The rule for divisibility by 9 is rather easy to implement: just add the digits. If the result is divisible by 9, then the original number is divisible by 9, too.

A couple of weeks ago, a colleague told me that she and some friends had discovered an elegant rule for divisibility by 7. However, she was unwilling to share the method with me — she said I’d have more fun if I discovered it on my own. (I simultaneously loved and loathed her for that.)

I knew a rule for divisibility by 7, I discovered an inelegant method, and I discovered another method that was less inelegant. I’ll share my three methods below, but if you know (or discover) a different method, please share.

The Method I Already Knew

The rule for divisibility by 7 that I had heard before, and that can be found easily via Google, works as follows:

  1. Remove the units digit, and double it. (If the original number was 10m + n, where m and n are positive integers, you’d calculate 2n.)
  2. Subtract the result of Step 1 from the remaining number. (That is, you’d find m ‑ 2n.)
  3. Repeat Steps 1 and 2 until you can determine if the result is a multiple of 7. If it is, then the original number is a multiple of 7, too.

This is best shown with an example. Let’s say you want to know if 8,603 is divisible by 7. Then first find 860 ‑ 2(3) = 854. Since it may not be obvious that 854 is a multiple of 7, repeat the procedure: 85 ‑ 2(4) = 77. Because 77 is a multiple of 7, then 8,603 must be a multiple of 7, too.

The problem with this procedure is that it takes too long for big numbers.

 The Highly Inelegant Method That I Devised

Take the number, and continually subtract known multiples of 7. For instance, again using 8,603, first remove 7,000 to leave 1,603. Then remove 1,400 to leave 203. Then remove 210 to leave ‑7, which is a negative multiple of 7. So that means 8,603 must be a multiple of 7, too.

Since any number of the form 7 × 10k is a multiple of 7, a time-saving step in this process is to reduce every digit in the original number by 7. For 8,603, that means reduce 8 to 1 to leave 1,603. That’s the same as subtracting 7,000. But for a bigger number like 973,865, that shortcut could be implemented three times to leave 203,165, which might help a little. Taking this even further, remove other multiples of 7; for instance, since 16 ‑ 14 = 2, you could further reduce the number to 203,025.

I rather like this method for its simplicity, but it also takes too long.

The Less Inelegant Method That I Found

The reason that the rule for divisibility by 9 works is that every power of 10 is 1 more than a multiple of 9. Consequently, when a number of the form m × 10k is divided by 9, the remainder will be m. For instance, when 7,000 is divided by 9, the remainder is 7; when 300 is divided by 9, the remainder is 3; and, when 80 is divided by 9, the remainder is 8. So if you subtract a lot of 9’s from 7,380, you would be left with 7 + 3 + 8 = 18 as the remainder, and since that result is a multiple of 9, then 7,380 is a multiple of 9, too.

This same idea can be applied for divisibility by 7.

  • When you divide a number of the form m × 106k by 7, the remainder will be m.
  • When you divide a number of the form m × 106k + 1 by 7, the remainder will be 3m.
  • When you divide a number of the form m × 106k + 2 by 7, the remainder will be 2m.
  • When you divide a number of the form m × 106k + 3 by 7, the remainder will be 6m.
  • When you divide a number of the form m × 106k + 4 by 7, the remainder will be 4m.
  • When you divide a number of the form m × 106k + 5 by 7, the remainder will be 5m.

You can then determine if a number is divisible by 7 by multiplying the units digit by 1, the tens digit by 3, the hundreds digit by 2, and so on, following the sequence 1, 3, 2, 6, 4, 5, as given above. If the result is a multiple of 7, the original number is, too.

As an example, again consider 8,603. Then calculate

 1(3) + 3(0) + 2(6) + 6(8) = 63.

Since the result is a multiple of 7, then 8,603 is a multiple of 7, too.

What You Got?

Those are my three methods. As I said above, the third is less inelegant that the first two, but I still wouldn’t call it elegant.

Have you got a rule for divisibility by 7 that’s better than any of these? Do tell!

July 28, 2012 at 10:08 pm 5 comments

About MJ4MF

The Math Jokes 4 Mathy Folks blog is an online extension to the book Math Jokes 4 Mathy Folks. The blog contains jokes submitted by readers, new jokes discovered by the author, details about speaking appearances and workshops, and other random bits of information that might be interesting to the strange folks who like math jokes.

MJ4MF (offline version)

Math Jokes 4 Mathy Folks is available from Amazon, Borders, Barnes & Noble, NCTM, Robert D. Reed Publishers, and other purveyors of exceptional literature.

Past Posts

July 2012

Enter your email address to subscribe to the MJ4MF blog and receive new posts via email.

Join 469 other followers

Visitor Locations

free counters