Don't forget that every year divisible by 4 is a leap year, except that century years are only leap years if divisible by 400 (e.g., 2000 was a leap year, but 1900 was not).
Another question in my homework.. not really sure how to go about solving it... It there some sort of method to solve this using modular arithmetic?