Exponential Growth: Solving for n in 500 000 Citizens

  • Thread starter Thread starter Bassalisk
  • Start date Start date
  • Tags Tags
    Exponential Growth
Click For Summary

Homework Help Overview

The problem involves a scenario of exponential growth in the context of gossip spreading among a population of 500,000 citizens. The original poster is trying to determine how many iterations it takes for the entire city to be informed, based on a pattern of communication where each informed citizen tells two others.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the mathematical representation of the problem, particularly focusing on the sum of a geometric series and its relation to binary representation. Questions arise about the implications of binary numbers and how they relate to the iterations needed for full communication.

Discussion Status

The discussion is ongoing, with participants exploring the relationship between binary representation and the number of iterations required. There is an acknowledgment of the complexity introduced by non-binary-friendly numbers, and some participants are attempting to clarify their understanding of the implications of zeros in binary representation.

Contextual Notes

Participants note that the number 500,000 does not have a straightforward binary representation, which raises questions about how this affects the iterations needed for the gossip to spread completely.

Bassalisk
Messages
946
Reaction score
2

Homework Statement



City has 500 000 citizens. One citizen knows a gossip. After 10 minutes, he tells that gossip to another 2 citizens. Those 2 citizens tell that gossip to another 2 citizens(both of them tell 2 citizens). After what time whole city will know the gossip?

Homework Equations



The Attempt at a Solution



Problem here is after how much iterations, whole city will know the gossip.

\sum 2^{i}= 500 000 where sum goes from i=0 to n. n are number of iterations i am looking for.

1+2+4+8+...=500 000

Problem is, I don't know how to find them, without using c++ :)
 
Physics news on Phys.org
Do you know how to represent 500,000 in binary?
 
daveb said:
Do you know how to represent 500,000 in binary?

Yes but I don't know where are you going with this. Its 1111010000100100000.
 
Say there are 10 people. Then 1 + 2 + 4 + 8 people covers everyone. So the binary representation 1111 means 4 iterations. The binary number 111 (7 people) means 3 iterations. Can you see now?
 
I see but. What do I do if I have zeroes in the middle? Does this still hold? 500 000 is not a "nice" number in binary.
 
True, but using my analogy, if you need to tell only 10 people, three iterations (binary 111) only gets you 7 people. So you must have another iteration, and it means some of the people in the last iteration will either tell someone that already knows, or not tell anyone at all. That's why you have zeros in the binary representation, because 10 isn't a "nice" binary number.
 
daveb said:
True, but using my analogy, if you need to tell only 10 people, three iterations (binary 111) only gets you 7 people. So you must have another iteration, and it means some of the people in the last iteration will either tell someone that already knows, or not tell anyone at all. That's why you have zeros in the binary representation, because 10 isn't a "nice" binary number.

I get it. I will try to figure the answer out.

Thank you.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
14
Views
2K