|
Reader's Favorites
Media Casualties Mount Administration Split On Europe Invasion Administration In Crisis Over Burgeoning Quagmire Congress Concerned About Diversion From War On Japan Pot, Kettle On Line Two... Allies Seize Paris The Natural Gore Book Sales Tank, Supporters Claim Unfair Tactics Satan Files Lack Of Defamation Suit Why This Blog Bores People With Space Stuff A New Beginning My Hit Parade
Instapundit (Glenn Reynolds) Tim Blair James Lileks Bleats Virginia Postrel Kausfiles Winds Of Change (Joe Katzman) Little Green Footballs (Charles Johnson) Samizdata Eject Eject Eject (Bill Whittle) Space Alan Boyle (MSNBC) Space Politics (Jeff Foust) Space Transport News (Clark Lindsey) NASA Watch NASA Space Flight Hobby Space A Voyage To Arcturus (Jay Manifold) Dispatches From The Final Frontier (Michael Belfiore) Personal Spaceflight (Jeff Foust) Mars Blog The Flame Trench (Florida Today) Space Cynic Rocket Forge (Michael Mealing) COTS Watch (Michael Mealing) Curmudgeon's Corner (Mark Whittington) Selenian Boondocks Tales of the Heliosphere Out Of The Cradle Space For Commerce (Brian Dunbar) True Anomaly Kevin Parkin The Speculist (Phil Bowermaster) Spacecraft (Chris Hall) Space Pragmatism (Dan Schrimpsher) Eternal Golden Braid (Fred Kiesche) Carried Away (Dan Schmelzer) Laughing Wolf (C. Blake Powers) Chair Force Engineer (Air Force Procurement) Spacearium Saturn Follies JesusPhreaks (Scott Bell) Science
Nanobot (Howard Lovy) Lagniappe (Derek Lowe) Geek Press (Paul Hsieh) Gene Expression Carl Zimmer Redwood Dragon (Dave Trowbridge) Charles Murtaugh Turned Up To Eleven (Paul Orwin) Cowlix (Wes Cowley) Quark Soup (Dave Appell) Economics/Finance
Assymetrical Information (Jane Galt and Mindles H. Dreck) Marginal Revolution (Tyler Cowen et al) Man Without Qualities (Robert Musil) Knowledge Problem (Lynne Kiesling) Journoblogs The Ombudsgod Cut On The Bias (Susanna Cornett) Joanne Jacobs The Funny Pages
Cox & Forkum Day By Day Iowahawk Happy Fun Pundit Jim Treacher IMAO The Onion Amish Tech Support (Lawrence Simon) Scrapple Face (Scott Ott) Regular Reading
Quasipundit (Adragna & Vehrs) England's Sword (Iain Murray) Daily Pundit (Bill Quick) Pejman Pundit Daimnation! (Damian Penny) Aspara Girl Flit Z+ Blog (Andrew Zolli) Matt Welch Ken Layne The Kolkata Libertarian Midwest Conservative Journal Protein Wisdom (Jeff Goldstein et al) Dean's World (Dean Esmay) Yippee-Ki-Yay (Kevin McGehee) Vodka Pundit Richard Bennett Spleenville (Andrea Harris) Random Jottings (John Weidner) Natalie Solent On the Third Hand (Kathy Kinsley, Bellicose Woman) Patrick Ruffini Inappropriate Response (Moira Breen) Jerry Pournelle Other Worthy Weblogs
Ain't No Bad Dude (Brian Linse) Airstrip One A libertarian reads the papers Andrew Olmsted Anna Franco Review Ben Kepple's Daily Rant Bjorn Staerk Bitter Girl Catallaxy Files Dawson.com Dodgeblog Dropscan (Shiloh Bucher) End the War on Freedom Fevered Rants Fredrik Norman Heretical Ideas Ideas etc Insolvent Republic of Blogistan James Reuben Haney Libertarian Rant Matthew Edgar Mind over what matters Muslimpundit Page Fault Interrupt Photodude Privacy Digest Quare Rantburg Recovering Liberal Sand In The Gears(Anthony Woodlief) Sgt. Stryker The Blogs of War The Fly Bottle The Illuminated Donkey Unqualified Offerings What she really thinks Where HipHop & Libertarianism Meet Zem : blog Space Policy Links
Space Future The Space Review The Space Show Space Frontier Foundation Space Policy Digest BBS AWOL
USS Clueless (Steven Den Beste) Media Minder Unremitting Verse (Will Warren) World View (Brink Lindsay) The Last Page More Than Zero (Andrew Hofer) Pathetic Earthlings (Andrew Lloyd) Spaceship Summer (Derek Lyons) The New Space Age (Rob Wilson) Rocketman (Mark Oakley) Mazoo Site designed by Powered by Movable Type |
Math Puzzle I was at a wedding on Saturday. It was a Catholic service, and as part of it, everyone was encouraged to bless their neighbor, including the grasping and waggling of hands. I idly wondered how long it would take if we were required to do it not only with our immediate pewmates, but for everyone in the church. How many handshakes and blessings would be involved? It turned out to be a simple problem, and one with a solution that wouldn't have kept us there until the wee hours, but it would certainly have added time to the service, if the logistics weren't well planned. Say there were a hundred people in attendance. That meant that the first person would have to shake ninety-nine hands. The second person would only have to shake ninety eight, having already shaken the hand of the first person. Using the same logic, the third would only have to do ninety seven, and so on. Thus, by induction, the total number of palm pressings would be the sum of 1 through (N-1) where N is the number of wedding attendees. So what is that sum for, say, N equal 101? The obvious way to solve it is to simply start adding. But a seven year old boy once came up with a much faster way, when his entire grade-school class was tasked by a teacher who wanted to give them some busy work so she could get something else done. It makes it possible to do it in your head. The answer turns out to be 5050. If you're interested in how he (and I) got it, click on the link for "More." For those who came via permalink, there is no "More" link, so scroll down below for the answer instead. ******************************************** Note that the numbers can be paired, thusly: 1, 100 and so on, up to (50, 51), yielding fifty such pairs. Note also that each pair sums to 101. So we've dramatically simplified the problem. Instead of adding a hundred numbers, we're reduced it to multiplying two numbers--50 times 101 yields the answer. There's a general formula that will solve the problem. Sum = (L + 1) * L/2, where L is the largest number. This applies only for even values of L. If it's odd, subtract one from L to make it even, do the formula on (L - 1), then add L back to it. And, as Paul Harvey would say, here's the rest of the story. For those who aren't aware, that seven-year-old boy, Karl Friedrich Gauss, was one of the most brilliant mathematicians to ever live. [Update at 3:40 PM PDT] Sol Foster points out, correctly, in the comments section that the formula is valid for both even and odd numbers. I didn't bother to check the odd case. The reason that I thought that you had to adjust it for odds was in my derivation, because in the odd-number case, one of the numbers is missing a partner in the pairing. But apparently it's not a quantum effect--just use the formula for any L. And to Sol, the reason that I had an N and an L was because in the application N was the number of wedding attendees, whereas L was the high number in the series. Posted by Rand Simberg at July 16, 2002 10:56 AMTrackBack URL for this entry:
http://www.transterrestrial.com/mt-diagnostics.cgi/41 Listed below are links to weblogs that reference this post from Transterrestrial Musings.
Comments
The possibly apocryphal story of Karl Friedrich Gauss discovering this when he was 5 is where I first heard this one. As you have no doubt surmised, I wrote that before clicking the "more" link, so my face is now as red as the (possibly apocryphal) teacher's. Posted by Paul Orwin at July 16, 2002 11:20 AMWould you like me to delete the comment? ;-) Posted by Rand Simberg at July 16, 2002 11:38 AMThis ritual has been introduced to the Church of England too. Peter Hitchens calls it an "informal and intrusive rite of handhaking", and it was focibly introduced into traditional churches by the hierarchy as a way of downplaying the individual relationship with God that was a hallmark of English protestantism. Posted by Iain Murray at July 16, 2002 01:10 PMIt strikes me that there might be an easy way for 100 people to shake hands relatively quickly. Line them up like a conga-line (without moving), then have the first person do a U-turn and shake the second person's hand, then the third, and so on, progressing down the line. The second person would do the same, having shook the first person's hand and now shaking the third person's hand, fourth person's, and so on. This continues at a quick pace until, finally, the last two people in line shake hands. From the air, it'd look like a centipede doing a tight U-turn and heading in the opposite direction. That was your Useless Tip of the Day (TM). Thank you. Posted by Just John at July 16, 2002 01:25 PM
"Hindsight is always 50/50!" Regards, Posted by Tom Maguire at July 16, 2002 01:39 PMWhat's this nonsense about the formula only applying to even values of L? It applies perfectly well to both even and odd values. If you want to avoid fractions, simply think of it as half of (L+1)*L. Also, it's a bit weird that the question is stated in terms of N, but the answer given is in terms of L, where N=L+1. I think it says something about having too much math training that instead of using the "pairing" solution, I wrote down a bunch of specific cases, dredged the formula up from memory that would fit them, and then proved it was right using induction. Note that the numbers can be paired, thusly: 1, 100 and so on, up to (50, 51), yielding fifty such pairs. Why/how do I know to stop at 50,51 if the sequence holds valid for 51,50; 52,49. I understand that it is probably something to do with unique pairs, but how would one know this? Posted by Stu Pidiam at July 17, 2002 07:13 AMBecause if you go any farther, you'd be double counting, and get the wrong answer. You only want to count unique pairs. Posted by Rand Simberg at July 17, 2002 07:47 AMPost a comment |