1

This problems feels like it should have a name. Hopefully someone can recognize it.

There is a 32 member club. Every week the members have dinner together, dividing themselves into 8 tables of 4 members each. Each week they arrange themselves such that they are always sitting with different people.

Is it possible to have every person be seated with every other person exactly once?

I've tried programming a greedy approach, but it didn't work for these numbers (it did work for a 16 member club with 4 tables of 4 each, but not 36 members with 6 tables of 6 people)

Though this sounds like a homework problem, this is actually from my friend's mom, who is trying to organize these dinners.

3

2 Answers 2

4

There are 32 people in the group, so you need to have dinner with the other 31 people.

Therefore, no you cannot have dinner with every other person exactly once.

31 is a prime number. You have to have dinner with 3 people at a time, as there are 4 to a table. It's not possible to have dinner with 31 people, 3 people at a time, without repeating or skipping anyone. (31 is not divisible by 3).

QED

Sign up to request clarification or add additional context in comments.

2 Comments

It was possible for 16 people with 4 tables of 4: because 15 is divisible by 3 :)
@Joel Yes, same for 36 people (35 divisible by 5); but you'd need a more rigourous proof than that ;) There is probably more to it - this divisibility pattern is necessary but not be sufficient
0

Then go for backtracking this will give you all the possible combinations.

1 Comment

I assume this would lead to an unfeasibly large compute time given n=32. If Kirk hadn't proved the problem impossible I would have tried though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.