login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A230995 Number of years after which a date can fall on the same day of the week, in the Gregorian calendar. 24

%I #5 Nov 02 2013 23:37:39

%S 0,5,6,7,11,12,17,18,22,23,28,29,33,34,35,39,40,45,46,50,51,56,57,61,

%T 62,63,67,68,73,74,78,79,84,85,89,90,91,95,96,101,102,106,107,108,112,

%U 113,114,117,118,119,123,124,125,129,130,131,134,135,136,140,141,142

%N Number of years after which a date can fall on the same day of the week, in the Gregorian calendar.

%C 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.

%C Assuming this fact, this sequence is periodic with a period of 400.

%H Time And Date, <a href="http://www.timeanddate.com/calendar/repeating.html">Repeating Calendar</a>

%H Time And Date, <a href="http://www.timeanddate.com/calendar/gregorian-calendar.html">Gregorian Calendar</a>

%e 5 belongs to this sequence because January 1, 2008 falls on same day as January 1, 2013.

%e 6 belongs to this sequence because January 1, 2009 falls on same day as January 1, 2015.

%e 7 belongs to this sequence because January 1, 2097 falls on same day as January 1, 2104.

%o (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)))

%Y Cf. A230995-A231014.

%Y Cf. A231000 (Julian calendar).

%K nonn,easy

%O 0,2

%A _Aswini Vaidyanathan_, Nov 02 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 22:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)