Answer:
At 7 hours from the visit telling the joke, everyone in town would have heard of it
Explanation:
Exponential Grow
This is a good example of exponential growth, where the speed at which a rumor is spread out depends on the actual number of persons who already know it.
The visitor told the mayor a new joke at 10:00 am.
Total people who heard the joke=1
This person tells the joke to 3 people in one hour, so at 11:00 am, 1+3=4 persons heard the joke
Total people who heard the joke=4
Those persons take one hour to tell the joke to every 3 persons each. Thus at 11:00
4 + 4*3 = 16 persons heard the joke. This succession grows very quickly. At 12:00
16 + 16*3 = 64 persons heard the joke
We can note the number of persons hearing the joke is an even power of 2, that is




We can predict the result for each hour since the exponent is double the number of hours passed since the joke started to spread. The number of persons who have heard the joke after t hours is

We can iterate until we find the value of t so that

Let's better find the limit value of t

Taking logarithms


Thus


So at 7 hours from the visit telling the joke (between 16:00 and 17:00), everyone in town would know it
Note that

