login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A230995
Number of years after which a date can fall on the same day of the week, in the Gregorian calendar.
24
0, 5, 6, 7, 11, 12, 17, 18, 22, 23, 28, 29, 33, 34, 35, 39, 40, 45, 46, 50, 51, 56, 57, 61, 62, 63, 67, 68, 73, 74, 78, 79, 84, 85, 89, 90, 91, 95, 96, 101, 102, 106, 107, 108, 112, 113, 114, 117, 118, 119, 123, 124, 125, 129, 130, 131, 134, 135, 136, 140, 141, 142
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.
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
Cf. A231000 (Julian calendar).
Sequence in context: A026309 A073936 A184811 * A362929 A064615 A300957
KEYWORD
nonn,easy
AUTHOR
Aswini Vaidyanathan, Nov 02 2013
STATUS
approved