08 Mar '15 00:43>2 edits
Consider when x people know 1 distinct set of info each, and 1 person outside (Mr K) knows the union of those two sets. The group x has two possible strategies of spreading the gossip, they can call each other, or they can each call Mr K
for x = 2 it is cheaper for the two x's to call each other (1 call) than it is for each of them to call Mr K (2 calls)
for x = 4 it is the same calls for them to call each other (4 calls) as it is for them to call Mr K
for x = 8 they will need 12 calls, but it would only take 8 calls to call Mr K
So, if N is a power of 2:
We need n-1 calls to get to the state where 2 people know all the info, 2 people know discrete halves, 4 people know discrete quarters, 8 people who know eights etc.
another call (between the two who know half each) gives us:
4 people who know all, 4 people who know discrete quarters, 8 people who know eights etc.
At this point, we have proved that the 4 people (and anyone who knows less then them) should "Call Mr K"
so we need n-4 more calls to finish
So, if N is a power of 2 we can always do it in 2n - 4 calls, except for n=1 which is 0 calls, and n = 2 which is 1 call
for x = 2 it is cheaper for the two x's to call each other (1 call) than it is for each of them to call Mr K (2 calls)
for x = 4 it is the same calls for them to call each other (4 calls) as it is for them to call Mr K
for x = 8 they will need 12 calls, but it would only take 8 calls to call Mr K
So, if N is a power of 2:
We need n-1 calls to get to the state where 2 people know all the info, 2 people know discrete halves, 4 people know discrete quarters, 8 people who know eights etc.
another call (between the two who know half each) gives us:
4 people who know all, 4 people who know discrete quarters, 8 people who know eights etc.
At this point, we have proved that the 4 people (and anyone who knows less then them) should "Call Mr K"
so we need n-4 more calls to finish
So, if N is a power of 2 we can always do it in 2n - 4 calls, except for n=1 which is 0 calls, and n = 2 which is 1 call