K candies

Say I have 'k' candies that I distribute among 'n' people. They all sit in a circle, and those people with two or more candies give one each to their two neighbours. Now there is a new distribution of candies. They go on like this until nobody has two or more candies. Is there a maximum value of k for a given n, such that this cycle will always terminate?

Yes No

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Megha Bhat
Feb 19, 2018

The game stops whenever k<n. For k=n, the game may or may not terminate and for k>n, it is always non-terminating. The latter two cases are easy to see (with specific non-terminating examples for k=n). However, I couldn't figure out how to prove it for the k<n case. I'll be glad if you guys can help out!

Just give one candle to one of them and nothing to the other people

Juan Eduardo Ynsil Alfaro - 3 years, 3 months ago

Log in to reply

Yes, I realised the flaw in the question. It now reads "maximum value of k". Thank you for pointing it out.

Megha Bhat - 3 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...