How did you get the offsets for the leap years? How did you conjure up this pattern? Please explain. This helped me out tremendously.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.