A112025 Duplicate of A060512.
60, 60, 24, 7, 52
Offset: 1
Keywords
References
- Joshua Zucker, Posting to Seq Fan mailing list, Nov 24 2005
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.
a(6) = 1 because Jan 01 2006 was a Sunday.
(* first do *) Needs["Miscellaneous`Calendar`"] (* then *) Table[DayOfWeek[{2000 + n, 1, 1}], {n, 0, 104}] /. {Sunday -> 1, Monday -> 2, Tuesday -> 3, Wednesday -> 4, Thursday -> 5, Friday -> 6, Saturday -> 7} (* Robert G. Wilson v, Apr 04 2006 *)
from datetime import date def a(n): return (date(2000+n, 1, 1).isoweekday())%7 + 1 print([a(n) for n in range(105)]) # Michael S. Branicky, Jan 05 2021
The third term is 24 because there are 24 hours in one day.
E.g. a(0)=54 because the year 2000 had 54 calendar weeks (since Jan 01 2000 was a Saturday and Dec 31 2000 was a Sunday)
Comments