wu :: forums
« wu :: forums - hand shakes »

Welcome, Guest. Please Login or Register.
Mar 24th, 2025, 4:39pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   easy
(Moderators: Eigenray, Grimbal, Icarus, william wu, SMQ, ThudnBlunder, towr)
   hand shakes
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: hand shakes  (Read 778 times)
black_death
Newbie
*





   


Gender: male
Posts: 40
hand shakes  
« on: May 5th, 2008, 6:27am »
Quote Quote Modify Modify

N students are seated at desks in an m x n array, where m, n >= 3. Each student shakes hands with the students who are adjacent horizontally, vertically or diagonally. If there are 81 handshakes, what are the values of N,m,n .... can a generic solution be found for a given number of handshakes?
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: hand shakes  
« Reply #1 on: May 5th, 2008, 6:54am »
Quote Quote Modify Modify

For a given n x m array, you have  
4 * 3 +
2 * (m-2) * 5 +
2 * (n-2) * 5 +
(m-2)(n-2) * 8  
=
4 - 6m - 6n + 8mn half-handshakes
So, 2 - 3m - 3n + 4mn handshakes (since a handshake takes two people)
I'm not sure if there's a nice way to find the inverse for this (to go from X handshakes to m and n). But in any case {n,m}={4,7} works to get 81 handshakes.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Hippo
Uberpuzzler
*****





   


Gender: male
Posts: 919
Re: hand shakes  
« Reply #2 on: May 5th, 2008, 7:15am »
Quote Quote Modify Modify

It seems to me not all desks must be occupied ... otherwise only two parameters ... m,n are sufficient.
« Last Edit: May 5th, 2008, 7:15am by Hippo » IP Logged
black_death
Newbie
*





   


Gender: male
Posts: 40
Re: hand shakes  
« Reply #3 on: May 5th, 2008, 7:22am »
Quote Quote Modify Modify

on May 5th, 2008, 7:15am, Hippo wrote:
It seems to me not all desks must be occupied ... otherwise only two parameters ... m,n are sufficient.

 
ya actually the question in the original form was a MCQ so that you can work backwords .... but when my friend asked me he didn't give me choices so was wondering is there a way to find the values with only one equation ...
 
btw towr's answer is perfect  Smiley
IP Logged
Eigenray
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 1948
Re: hand shakes  
« Reply #4 on: May 6th, 2008, 1:44pm »
Quote Quote Modify Modify

We can rewrite the formula as (4m-3)(4n-3) = 4X+1.  There is only a solution when 4X+1 has a divisor d=1 mod 4 with 5<d<(4X+1)/5, so for X = 20, 29, 38, 42, 47, 55, 56, 65, 68, 72, 74, 81, 83, 89, 92, 94, ...
 
The set of such X has density 1 in the natural numbers.
« Last Edit: May 6th, 2008, 1:58pm by Eigenray » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board