Is 1100 a valid state for this machine?

A room starts out empty. Every hour, either 2 people enter or 4 people leave. In exactly a year, can there be exactly 1100 people in the room?

I think there can be because 1100 is even, but how do I prove/disprove it?


Solution 1:

A general advice: Whenever you have to distill a simple answer from a confusing medley of cases, look out for the invariant!

The remainder mod 6 increases by $2$ per hour; therefore it is periodic with period 3 hours. As 24 is divisible by $3$, after exactly one year the remainder mod $6$ will be $0$, whether we have a leap year or not. It follows that an occupancy of $1100$ is impossible then.

Solution 2:

Exactly a year is $24*365=8760$ hours (or $8784$ for a leap year-maybe you need to try both). If there are $x$ times that two people enter and $y$ times that four people leave, you want $x+y=8760,\ 2x-4y=1100$. Two equations in two unknowns, and if the solution is integral you are there.

Solution 3:

Here's a slightly different take on Christian's approach. There's almost nothing in it that isn't at least implicit in one or another of the other answers, but it may be of some use in showing one way in which one might approach the problem.

First, I notice that we can divide everything in the problem by $2$: each day either one person enters or two leave, and we want to know whether we can have $550$ people in the room after exactly one year. This makes no essential change in the problem, but sometimes it's easier to spot things when working with smaller numbers.

Then I ask myself after how many hours the room can be empty. Clearly if there were $n$ hours in which two people left, there must have been $2n$ hours in which one person entered, so $3n$ hours must have passed. In other words, the room can be empty only after a multiple of $3$ hours. This naturally makes me wonder what can happen after $3n+1$ or $3n+2$ hours. That in turn gets me to thinking mod $3$, and I realize that subtracting $2$ is the same as adding $1$ mod $3$. In other words, no matter what happens, every hour the population of the room increases by $1$ mod $3$. One regular year has $8760$ hours, so (mod $3$) at the end of a year the room must contain $8760\bmod 3=0$ people. Unfortunately, $550\bmod 3=1$, so we can't end up with $550$ people in the room at the end of a regular year. And since the extra day in a leap year adds another $24\bmod 3=0$ people, we can't end up with $550$ sardines people in the room at the end of a leap year, either.