pith. machine review for the scientific record. sign in

arxiv: 1404.2510 · v1 · submitted 2014-04-08 · 🧮 math.HO

Recognition: unknown

Calculating the day of the week: null-days algorithm

Xiang-Sheng Wang

Authors on Pith no claims yet
classification 🧮 math.HO
keywords null-daysalgorithmcalculatingmonthyearcenturygivenintegers
0
0 comments X
read the original abstract

In this paper, we propose a new algorithm of calculating the day of the week for any given century, year, month and day in Gregorian calendar. We provide two simple formulas to convert the century and the year into two integers. Then we introduce a list of null-days to transform the month and the day into another integer. Adding these three integers together and calculating the sum's residue modulo $7$ gives a number between $0$ and $6$, which corresponds to Sunday until Saturday. Slight modification is needed if we have a leap year and the given month is either January or February. Our null-days algorithm is simple enough to be done by mental calculation, and the list of null-days has memorable patterns.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Table-Based Encodings for Conway's Doomsday Algorithm: Vectorized Doomsdays and Doomyears

    math.HO 2026-05 unverdicted novelty 6.0

    New table encodings eliminate arithmetic from Conway's Doomsday Algorithm by turning year and month offsets into structured lookups.