Current location - Training Enrollment Network - Mathematics courses - Logic topic: How many drunkards are there?
Logic topic: How many drunkards are there?
Logical problem

Title: How many drunkards are there in a * *?

A group of drunks are drinking in a beer shop. When the first bottle came, the drunks shared the bottle equally, and they poured several bottles. So when the second bottle of wine came, the remaining drunkards shared it equally, so there were several more bottles. The rest of the drunks decided to compete, so they ordered another bottle of wine, and the rest of them shared it again and fell down. The last person who arrived said, "I just drank a bottle."

There are always x drunks, the first time is A, and the second time is B. Then everyone drank 1/x for the first time, 1/x-a for the second time and 1/x-a-b for the third time. The third time will definitely not be 1 person, otherwise there is no need to compare the third time; No more than three people, because ta said she has been drinking a bottle. If there are three-? If everyone is left behind, everyone always drinks one bottle, so everyone drinks more than three bottles of wine. So the third time, it was two people drinking. The number of drinks consumed by the people who compared wine for the last time:1/x+1/x-a+1/2 =1Therefore,1/x+1x-a =/kloc. Expand the above formula to get: x 2-(a+4) x+2a = 0. Directly use a to represent the two roots of x: x = {-[-(a+4). If only a=3, then the formula obtained by the root sign is an integer of 5. Substituting into the root formula of x, we get x=6, 1. A. so x can only be 6.x=6, a=3 and b= 1. To sum up, there are six alcoholics.