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.

Showing 1-3 of 3 results.

A073305 Remaining days in leap year at end of n-th month.

Original entry on oeis.org

366, 335, 306, 275, 245, 214, 184, 153, 122, 92, 61, 31, 0
Offset: 0

Views

Author

Rick L. Shepherd, Jul 23 2002

Keywords

Comments

a(0)=A073304(0)+1 and a(1)=A073304(1)+1; these sequences otherwise are identical since there is only one leap day and it is in the second month.

Examples

			a(1)=335 because there are 335 days left in a leap year at the end of January, the first month.
		

Crossrefs

Cf. A073304 (remaining days in non-leap year), A061251 (elapsed days at end of n-th month beginning with non-leap year).

Programs

  • Mathematica
    Join[{366},(DateDifference[#,{2016,12,31}]&/@Table[Select[Table[ DatePlus[ {2016,m,1},{d,"Day"}],{d,30}],#[[2]]==m&][[-1]],{m,12}])[[All,1]]] (* Harvey P. Dale, Nov 29 2020 *)

A327846 Full days remaining in the month on the Gregorian calendar starting at n-th day of a non-leap year.

Original entry on oeis.org

30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6
Offset: 1

Views

Author

Andrew Pham, Sep 27 2019

Keywords

Examples

			On March 27th, the 86th day of the year where n=86, there are 4 full days left in the month of March, a(86)=4.
		

Crossrefs

Programs

  • Mathematica
    Array[Range[# - 1, 0, -1] &@ Which[MemberQ[{4, 6, 9, 11}, #], 30, # == 2, 28, True, 31] &, 12] // Flatten (* Michael De Vlieger, Sep 30 2019 *)

A130447 Numbering the days of a 365-day year from 1 (Jan 01) to 365 (Dec 31), these are the days that start months.

Original entry on oeis.org

1, 32, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335
Offset: 1

Views

Author

J. Lowell, Aug 07 2007

Keywords

Comments

a(n) = 366 - A073304(n+1), for i=0 to 11. - Michel Marcus, Jun 14 2013

Examples

			213 is in the sequence because the 213th day is August 1.
		
Showing 1-3 of 3 results.