OFFSET
0,2
COMMENTS
In the Gregorian calendar, a non-century year is a leap year if and only if it is a multiple of 4 and a century year is a leap year if and only if it is a multiple of 400.
Assuming this fact, this sequence is periodic with a period of 400.
LINKS
EXAMPLE
5 belongs to this sequence because January 1, 2008 falls on same day as January 1, 2013.
6 belongs to this sequence because January 1, 2009 falls on same day as January 1, 2015.
7 belongs to this sequence because January 1, 2097 falls on same day as January 1, 2104.
PROG
(PARI) for(i=0, 400, for(y=0, 400, if(((5*(y\4)+(y%4)-(y\100)+(y\400))%7)==((5*((y+i)\4)+((y+i)%4)-((y+i)\100)+((y+i)\400))%7), print1(i", "); break)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Aswini Vaidyanathan, Nov 02 2013
STATUS
approved