Leap year has nothing to do with it.
Use the floor function
.
Hello!
The following one is really bothering me:
Suppose you live in a country with 9 000 000 inhabitants. At least how many people have their birthday on the same day?
---------------------------------------
First I ignored the existence of the leap year, so I just simply computed 9 000 000/365 and got approx. 24657. But the answer is 24656 so I ralized that the leap year mattered. Then I assumed that 25% of the people in my country were born on a leap year and realized that at least 6147 were born on Feb. 29th by computing 9 000 000/(4*365). Then I computed (9000000-6147)/365 and got the wrong answer again. What am I doing wrong?
Leap year has nothing to do with it.
Use the floor function
.