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.

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 *)