cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 11-20 of 23 results. Next

A231011 Number of months after which a date can fall on the same day of the week, and the two months can have the same number of days, in the Julian calendar.

Original entry on oeis.org

0, 3, 6, 8, 9, 14, 15, 17, 18, 20, 22, 23, 26, 29, 31, 32, 34, 35, 37, 38, 40, 43, 46, 52, 54, 55, 57, 60, 63, 64, 68, 69, 72, 75, 77, 78, 80, 81, 86, 89, 92, 94, 95, 98, 101, 103, 106, 109, 110, 112, 114, 115, 117, 118, 123, 124, 126, 127, 129, 132, 135, 140, 141, 147, 149, 150
Offset: 0

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

Comments

In the Julian calendar, a year is a leap year if and only if it is a multiple of 4 and all century years are leap years.
Assuming this fact, this sequence is periodic with a period of 336.
This is a subsequence of A231010.

Crossrefs

Cf. A231006 (Gregorian calendar).

Programs

  • PARI
    m=[0,3,3,6,1,4,6,2,5,0,3,5];n=[31,28,31,30,31,30,31,31,30,31,30,31];y=vector(336,i,(m[((i-1)%12)+1]+((5*((i-1)\48)+(((i-1)\12)%4)-!((i-1)%48)-!((i-2)%48))))%7);x=vector(336,i,n[((i-1)%12)+1]+!((i-2)%48));for(p=0,336,for(q=0,336,if(y[(q%336)+1]==y[((q+p)%336)+1]&&x[(q%336)+1]==x[((q+p)%336)+1],print1(p", ");break)))

A230997 Number of years after which it is possible to have a date falling on same day of the week, but the entire year does not have the same calendar, in the Gregorian calendar.

Original entry on oeis.org

5, 7, 33, 35, 61, 63, 89, 91, 117, 131, 145, 159, 173, 187, 213, 227, 241, 255, 269, 283, 309, 311, 337, 339, 365, 367, 393, 395, 405, 407, 433, 435, 461, 463, 489, 491, 517, 531, 545, 559, 573, 587, 613, 627, 641, 655, 669, 683, 709, 711, 737, 739, 765, 767, 793, 795
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

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.
These are the terms of A230995 not in A230996.

Examples

			5 belongs to this sequence because January 1, 2012 falls on same day as January 1, 2017 but the calendar is not completely the same for both the years. In fact, a difference of 5 years can never produce the same calendar for the entire year.
7 belongs to this sequence because January 1, 2097 falls on same day as January 1, 2104 but the calendar is not completely the same for both the years. In fact, a difference of 7 years can never produce the same calendar for the entire year.
		

Crossrefs

Cf. A231002 (Julian calendar).

Programs

  • PARI
    for(i=0,400,j=0;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),j=1;break));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)&&((5*(y\4)+(y%4)-(y\100)+(y\400)-!(y%4)+!(y%100)-!(y%400))%7)==((5*((y+i)\4)+((y+i)%4)-((y+i)\100)+((y+i)\400)-!((y+i)%4)+!((y+i)%100)-!((y+i)%400))%7),j=2;break));if(j==1,print1(i", ")))

A231007 Number of months after which a date can fall on the same day of the week, but it is not possible that the two months have the same number of days, in the Gregorian calendar.

Original entry on oeis.org

1, 11, 19, 27, 28, 44, 45, 53, 61, 70, 71, 73, 74, 83, 91, 99, 100, 116, 125, 131, 133, 143, 145, 146, 160, 171, 177, 185, 193, 202, 203, 205, 206, 215, 217, 223, 231, 232, 248, 249, 257, 263, 265, 274, 275, 277, 278, 287, 295, 303, 309, 320, 334, 335, 337, 347, 349, 355, 364
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

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 4800.
These are the terms of A231005 not in A231006.

Examples

			1 belongs to this sequence because February 1, 2013 falls on the same day as March 1, 2013, but both February and March do not have the same number of days. In fact, a difference of 1 month can never produce the same calendar for the entire month, with the same number of days.
11 belongs to this sequence because December 1, 2011 falls on the same day as November 1, 2012 but both December and November do not have the same number of days. In fact, a difference of 11 months can never produce the same calendar for the entire month, with the same number of days.
		

Crossrefs

Cf. A231012 (Julian calendar).

Programs

  • PARI
    m=[0,3,3,6,1,4,6,2,5,0,3,5];n=[31,28,31,30,31,30,31,31,30,31,30,31];y=vector(4800,i,(m[((i-1)%12)+1]+((5*((i-1)\48)+(((i-1)\12)%4)-((i-1)\1200)+((i-1)\4800)-!((i-1)%48)+!((i-1)%1200)-!((i-1)%4800)-!((i-2)%48)+!((i-2)%1200)-!((i-2)%4800))))%7);x=vector(4800,i,n[((i-1)%12)+1]+!((i-2)%48)-!((i-2)%1200)+!((i-2)%4800));for(p=0,4800,j=0;for(q=0,4800,if(y[(q%4800)+1]==y[((q+p)%4800)+1],j=1;break));for(q=0,4800,if(y[(q%4800)+1]==y[((q+p)%4800)+1]&&x[(q%4800)+1]==x[((q+p)%4800)+1],j=2;break));if(j==1,print1(p", ")))

A231012 Number of months after which a date can fall on the same day of the week, but it is not possible that the two months have the same number of days, in the Julian calendar.

Original entry on oeis.org

1, 11, 19, 27, 28, 41, 45, 49, 58, 61, 66, 71, 73, 74, 83, 87, 91, 100, 104, 113, 121, 130, 131, 133, 138, 143, 146, 159, 160, 176, 177, 190, 193, 198, 203, 205, 206, 215, 223, 232, 236, 245, 249, 253, 262, 263, 265, 270, 275, 278, 287, 291, 295, 308, 309, 317, 325, 335
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

Comments

In the Julian calendar, a year is a leap year if and only if it is a multiple of 4 and all century years are leap years.
Assuming this fact, this sequence is periodic with a period of 336.
These are the terms of A231010 not in A231011.

Crossrefs

Cf. A231007 (Gregorian calendar).

Programs

  • PARI
    m=[0,3,3,6,1,4,6,2,5,0,3,5];n=[31,28,31,30,31,30,31,31,30,31,30,31];y=vector(336,i,(m[((i-1)%12)+1]+((5*((i-1)\48)+(((i-1)\12)%4)-!((i-1)%48)-!((i-2)%48))))%7);x=vector(336,i,n[((i-1)%12)+1]+!((i-2)%48));for(p=0,336,j=0;for(q=0,336,if(y[(q%336)+1]==y[((q+p)%336)+1],j=1;break));for(q=0,336,if(y[(q%336)+1]==y[((q+p)%336)+1]&&x[(q%336)+1]==x[((q+p)%336)+1],j=2;break));if(j==1,print1(p", ")))

A231013 Number of months after which it is not possible to have a date falling on the same day of the week, in the Julian calendar.

Original entry on oeis.org

2, 4, 5, 7, 10, 12, 13, 16, 21, 24, 25, 30, 33, 36, 39, 42, 44, 47, 48, 50, 51, 53, 56, 59, 62, 65, 67, 70, 76, 79, 82, 84, 85, 88, 90, 93, 96, 97, 99, 102, 105, 107, 108, 111, 116, 119, 120, 122, 125, 128, 134, 136, 137, 139, 142, 144, 145, 148, 151, 153, 154, 156, 157, 162
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

Comments

In the Julian calendar, a year is a leap year if and only if it is a multiple of 4 and all century years are leap years.
Assuming this fact, this sequence is periodic with a period of 336.
This is the complement of A231010.

Crossrefs

Cf. A231008 (Gregorian calendar).

Programs

  • PARI
    m=[0,3,3,6,1,4,6,2,5,0,3,5];n=[31,28,31,30,31,30,31,31,30,31,30,31];y=vector(336,i,(m[((i-1)%12)+1]+((5*((i-1)\48)+(((i-1)\12)%4)-!((i-1)%48)-!((i-2)%48))))%7);x=vector(336,i,n[((i-1)%12)+1]+!((i-2)%48));for(p=0,336,j=0;for(q=0,336,if(y[(q%336)+1]==y[((q+p)%336)+1],j=1;break));if(j==0,print1(p", ")))

A230998 Number of years after which it is not possible to have a date falling on the same day of the week, in the Gregorian calendar.

Original entry on oeis.org

1, 2, 3, 4, 8, 9, 10, 13, 14, 15, 16, 19, 20, 21, 24, 25, 26, 27, 30, 31, 32, 36, 37, 38, 41, 42, 43, 44, 47, 48, 49, 52, 53, 54, 55, 58, 59, 60, 64, 65, 66, 69, 70, 71, 72, 75, 76, 77, 80, 81, 82, 83, 86, 87, 88, 92, 93, 94, 97, 98, 99, 100, 103, 104, 105, 109, 110, 111
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

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.
This is the complement of A230995.

Crossrefs

Cf. A231003 (Julian calendar).

Programs

  • PARI
    for(i=0,400,j=0;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),j=1));if(j==0,print1(i", ")))

A230999 Number of years after which it is not possible to have the same calendar for the entire year, in the Gregorian calendar.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 8, 9, 10, 13, 14, 15, 16, 19, 20, 21, 24, 25, 26, 27, 30, 31, 32, 33, 35, 36, 37, 38, 41, 42, 43, 44, 47, 48, 49, 52, 53, 54, 55, 58, 59, 60, 61, 63, 64, 65, 66, 69, 70, 71, 72, 75, 76, 77, 80, 81, 82, 83, 86, 87, 88, 89, 91, 92, 93, 94, 97, 98, 99, 100
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

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.
This is the complement of A230996.

Crossrefs

Cf. A231004 (Julian calendar).

Programs

  • PARI
    for(i=0,400,j=0;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)&&((5*(y\4)+(y%4)-(y\100)+(y\400)-!(y%4)+!(y%100)-!(y%400))%7)==((5*((y+i)\4)+((y+i)%4)-((y+i)\100)+((y+i)\400)-!((y+i)%4)+!((y+i)%100)-!((y+i)%400))%7),j=1));if(j==0,print1(i", ")))

A231003 Number of years after which it is not possible to have a date falling on the same day of the week, in the Julian calendar.

Original entry on oeis.org

1, 2, 3, 4, 7, 8, 9, 10, 12, 13, 14, 15, 16, 18, 19, 20, 21, 24, 25, 26, 27, 29, 30, 31, 32, 35, 36, 37, 38, 40, 41, 42, 43, 44, 46, 47, 48, 49, 52, 53, 54, 55, 57, 58, 59, 60, 63, 64, 65, 66, 68, 69, 70, 71, 72, 74, 75, 76, 77, 80, 81, 82, 83, 85, 86, 87, 88, 91, 92, 93, 94, 96, 97
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

Comments

In the Julian calendar, a year is a leap year if and only if it is a multiple of 4 and all century years are leap years.
Assuming this fact, this sequence is periodic with a period of 28.
This is the complement of A231000.

Crossrefs

Cf. A230998 (Gregorian calendar).

Programs

  • PARI
    for(i=0,420,j=0;for(y=0,420,if(((5*(y\4)+(y%4))%7)==((5*((y+i)\4)+((y+i)%4))%7),j=1));if(j==0,print1(i", ")))

Formula

From Chai Wah Wu, Jun 04 2024: (Start)
a(n) = a(n-1) + a(n-21) - a(n-22) for n > 22.
G.f.: x*(x^21 + x^20 + x^19 + x^18 + 3*x^17 + x^16 + x^15 + x^14 + 2*x^13 + x^12 + x^11 + x^10 + x^9 + 2*x^8 + x^7 + x^6 + x^5 + 3*x^4 + x^3 + x^2 + x + 1)/(x^22 - x^21 - x + 1). (End)

A231004 Number of years after which it is not possible to have the same calendar for the entire year, in the Julian calendar.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 15, 16, 18, 19, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 40, 41, 42, 43, 44, 46, 47, 48, 49, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 63, 64, 65, 66, 68, 69, 70, 71, 72, 74, 75, 76, 77, 79, 80, 81, 82, 83, 85, 86, 87
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

Comments

In the Julian calendar, a year is a leap year if and only if it is a multiple of 4 and all century years are leap years.
Assuming this fact, this sequence is periodic with a period of 28.
This is the complement of A231001.

Crossrefs

Cf. A230999 (Gregorian calendar).

Programs

  • PARI
    for(i=0,420,j=0;for(y=0,420,if(((5*(y\4)+(y%4))%7)==((5*((y+i)\4)+((y+i)%4))%7)&&((5*(y\4)+(y%4)-!(y%4))%7)==((5*((y+i)\4)+((y+i)%4)-!((y+i)%4))%7),j=1));if(j==0,print1(i", ")))

Formula

From Chai Wah Wu, Jun 04 2024: (Start)
a(n) = a(n-1) + a(n-23) - a(n-24) for n > 24.
G.f.: x*(x^23 + x^22 + x^21 + x^20 + x^19 + 2*x^18 + x^17 + x^16 + x^15 + 2*x^14 + x^13 + x^12 + x^11 + x^10 + 2*x^9 + x^8 + x^7 + x^6 + 2*x^5 + x^4 + x^3 + x^2 + x + 1)/(x^24 - x^23 - x + 1). (End)

A231008 Number of months after which it is not possible to have a date falling on the same day of the week, in the Gregorian calendar.

Original entry on oeis.org

2, 4, 5, 7, 10, 12, 13, 16, 21, 24, 25, 30, 33, 36, 39, 42, 47, 48, 51, 56, 59, 62, 65, 79, 82, 85, 88, 93, 96, 97, 102, 105, 108, 111, 119, 120, 128, 134, 137, 139, 142, 148, 151, 154, 156, 157, 165, 168, 174, 180, 183, 188, 191, 192, 194, 197, 200, 211, 214, 220, 228, 229
Offset: 1

Views

Author

Aswini Vaidyanathan, Nov 02 2013

Keywords

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 4800.
This is the complement of A231005.

Crossrefs

Cf. A231013 (Julian calendar).

Programs

  • PARI
    m=[0,3,3,6,1,4,6,2,5,0,3,5];n=[31,28,31,30,31,30,31,31,30,31,30,31];y=vector(4800,i,(m[((i-1)%12)+1]+((5*((i-1)\48)+(((i-1)\12)%4)-((i-1)\1200)+((i-1)\4800)-!((i-1)%48)+!((i-1)%1200)-!((i-1)%4800)-!((i-2)%48)+!((i-2)%1200)-!((i-2)%4800))))%7);x=vector(4800,i,n[((i-1)%12)+1]+!((i-2)%48)-!((i-2)%1200)+!((i-2)%4800));for(p=0,4800,j=0;for(q=0,4800,if(y[(q%4800)+1]==y[((q+p)%4800)+1],j=1;break));if(j==0,print1(p", ")))
Previous Showing 11-20 of 23 results. Next