A178054 Numbers representing the index of the day of week for the first day of the month in the Gregorian calendar.
6, 2, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5, 1, 4, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6, 2, 5, 5, 1, 3, 6, 1, 4, 0, 2, 5, 0, 3, 6, 6, 2, 4, 0, 2, 5, 1, 3, 6, 1, 4, 0, 1, 4, 6, 2, 4, 0, 3, 5, 1, 3, 6, 2, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4, 0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5, 1, 4, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6, 2, 5, 6, 2, 4, 0, 2, 5, 1
Offset: 1
Examples
a(1) = 6, so day of week for January 1, 2000 is Saturday; a(2) = 2, so day of week for February 1, 2000 is Tuesday; a(3) = 3, so day of week for March 1, 2000 is Wednesday.
References
- Arthur Benjamin and Michael Shermer, Secrets of Mental Math, First Edition, Three Rivers Press, 2006, p. 215.
Links
Crossrefs
Cf. A178055.
Formula
a(n+1) = (a(n) + A178055(n)) (mod 7).
Comments