All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Handshakes (Posted on 2004-06-14) Difficulty: 2 of 5
The Smiths, the Andrings and the Cliffords all hold a big party. Everyone shakes hands with every member of the other two families (no one shakes hands with members of their own family), 142 handshakes in all.

Assuming that there at least as many Andrings as Smiths, and at least as many Cliffords as Andrings, how many of each family are present?

See The Solution Submitted by Brian Smith    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution No brute force applied | Comment 6 of 14 |
(In reply to re(2): Solution - no brute force? by fwaff)

We are looking for three numbers M, N and P such that MN+NP+PM=142. If two or three of them were odd, the sum would be odd, so those cases are out. If they were all even, the sum would have to be a multiple of four, so that's out too. To sum it up, we have two even numbers and an odd one.

Let's say M=2M', N=2N', P=2P'+1. Calculating and simplifying we get to 2M'N'+2N'P'+2M'P'+M'+N'=71. Thus, M' must be even and N' must be odd, so M'=2M" and N'=2N"+1.

Calculating again we get to 4M"N"+2M"P'+2N"P'+3M"+N"+P'=35. Thus, M"N"<9, and we have few cases to analyze. (Also, remember M\">0 since M>0.) Given M" and N", P'=(35-4M"N"-3M"-N")/(1+2M"+2N"), which must be an integer. M"=3 and N"=2 produces the only integer solution (P'=0), which works out to M=12, N=10, P=1.
  Posted by Federico Kereki on 2004-06-14 09:58:16

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2017 by Animus Pactum Consulting. All rights reserved. Privacy Information