Math and Fun with Algorithms
finding the year’s share in
day-of-week calculations
S. Kamal Abdali
National Research Foundation, UAE
[email protected]
Abstract: The dominant part in the mental calculation of the day of the week
for any given date is to determine the year share, that is, the contribution of
the two-digit year part of the date. This paper describes a number of year share
computation methods, some well-known and some new. The “Parity Minus 3”
method, in particular, is a new alternative to the popular “Odd+11” method.
The paper categorizes the methods of year share computation, and presents
simpler proofs of their correctness than usually provided.
Keywords: day of the week, calendar algorithms, doomsday method, first
Sunday algorithm, mental arithmetic, year share.
Introduction
Finding the day of the week (dow) for any given date is by now a trivial
computational problem. While writing a program from scratch for computing
the dow is not difficult, most programming languages include libraries that provide routines for this purpose.
Moreover, all existing computer
operating systems and “office” applications have built-in facilities for this
computation. For a discussion of several dow algorithms best suited for
programming, see the Wikipedia article “Determination of the day of the week”[1].
A very comprehensive reference on dow calculations in general is the German
book Enzyklopädie der Wochentagsberechnung by Hans-Christian Solka[2].
While there is scarcely any need anymore for a new dow algorithm for
computers, the interest in mental calculation algorithms continues unabatedly.
The best known, and undoubtedly one of the best, of such methods is the
“Doomsday Rule”[3] invented in 1973 by John Conway. Another method with
much merit, and for most people the easiest to use, is the “First Sunday
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
76
finding the year’s share in day-of-week calculations
Algorithm”[4] introduced by Robert Goddard in 20091 .
Such methods
proceed by isolating and finding the contributions of the century, two-digit
year, month, and day parts of the date, and then adding or subtracting these
contributions to form a total. The total is an integer which represents the
serial of the dow being sought in some ordering of the days. (A common
convention is to assign the numbers 0, 1, 2, . . . , 6 to Sunday, Monday, Tuesday,
. . . , Saturday, respectively.) If the total happens to not be in the range 0, 1, 2,
. . . , 6, it is simply reduced modulo 7 to yield a value in that desired range. Note
that since the total is formed by adding or subtracting various terms, each of
those terms can also be individually reduced modulo 7 as soon as it is computed
or at any stage during summation.
The century and month part contributions typically amount to constants that
one memorizes, and the contribution of the day part typically consists of
counting weekdays forward or backward from a date determined by previous
steps. It is the contribution of the two-digit year part that takes most time (the
largest number of seconds!) in mental calculation. This is the case in both the
Doomsday Rule and the First Sunday Algorithm.
The dow of any fixed date within a year (i.e., a month-day combination) is
advanced one day by every common year and two days by every leap year.
For a (two-digit) year y within a century, the dow advances y days because
of common years and y4 days because of leap years, making
the total dow
advance from the century year to the year y equal to y + y4 , that is,
5y
4
(1)
We use the term year share to refer to the expression (1) that represents the
contribution of the two-digit year part of a date to its dow. Of course, any
expression congruent modulo 7 to (1) serves our purpose equally well. In some
methods the year share is subtracted while forming the total sum, so they
compute a value which equals (or is congruent modulo 7 to) the negative of the
expression (1).
When a new method of computing the year share is proposed, it has to be proven
correct by showing that its result is congruent modulo 7 to the expression (1), or
to minus this expression when that’s what the method claims to compute. While
the correctness of many methods is quite obvious and hardly requires a proof,
for some methods it is not immediate. But in the published account of these
methods, the proofs are often missing or are unnecessarily complicated. We
have tried to provide correctness proofs by very similar, simple arguments. It is
hoped that by treating the methods in a uniform way the present approach will
provide a better understanding of the methods and will be helpful in devising
new methods and better variants of old methods.
1 Hans-Christian Solka has kindly informed me that methods equivalent to First Sunday
were published by the German magician C. Willmann in 1896, by E. Rogent and W.W. Durbin
in 1927, and by some other authors later as part of Dominical letter research. The references,
to which I don’t have access, are in [2].
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
S. Kamal Abdali
77
Methods of Year Share Computation
A number of alternative methods of year share computations have appeared in
the literature. These methods work essentially by substituting some expression
for the variable y in (1) and transforming the resulting expression into one that
is easy to evaluate by mental arithmetic. The transformations try to minimize
the steps in the integer divisions by 4 and reduction modulo 7, and, of course,
to maximize the work with small integers.
We describe a selection of known methods here and also suggest a few new
ones (Methods 2, 5c, 5f, 7, and 10). We have placed the methods into three
categories of (1) “special” methods that avoid division by a divisor other than 2,
(2) division by integers larger than 2, and (3) operations on the individual digits
of the two-digit year. The category (3) is really a subcategory of (2) because its
methods involve division by 10. However, the methods in (3) require somewhat
different mental arithmetic.
Special methods
The overriding advantage of these methods is that you need to keep
manipulating only a single variable (testing it, increasing or decreasing it,
halving it). By contrast, the methods of the next sections require you to
remember and work with several numbers.
1. Odd+11 Method
This method, evolved from an idea proposed by Michael Walters in 2008, is
described more formally in a 2011 paper by Chamberlain Fong and Michael
Walters[8]. Of all the present alternatives for year share computation, this
method seems to be the quickest.
The “Odd+11” operation takes a given year y (between 0 and 99, inclusive)
as input and produces the negative of the year share as output, by proceeding
as follows:
i. Set the value of Y S to that of y. In symbols, Y S ← y.
ii. If Y S is odd, then increase it by 11, i.e., Y S ← Y S + 11, else leave it
unchanged.
iii. Halve Y S, i.e., Y S ← Y S/2.
iv. If Y S is odd, increase it by 11, i.e., Y S ← Y S + 11, else leave it
unchanged.
Fong and Walter[8] add two more steps of doing Y S ← Y S mod 7 and then
Y S ← 7 − Y S to turn the result into a positive year share. We omit these
steps since the negative year share is what the “First Sunday Algorithm”
needs anyway, and, moreover, any result in the mod 7 congruence class is
acceptable.
To show that the result of applying “Odd+11” to the input y is
congruent modulo 7 to the negative of (1), we first express y as a polynomial
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
78
finding the year’s share in day-of-week calculations
as follows: Divide y by 4; call the quotient a; divide the remainder (whose
value is between 0 and 3, inclusive) by 2; call the new quotient b and the new
remainder c. We can now write
y = 4a + 2b + c,
(2)
where 0 6 b 6 1 and 0 6 c 6 1.
Let us first apply the steps of “Odd+11” to this value of y.
i.
Y S = 4a + 2b + c.
ii. If Y S is odd, i.e., if c = 1, then increase Y S by 11, else leave Y S
unchanged. This is the same as writing
Y S = 4a + 2b + 12c.
iii. Halve Y S, i.e.,
Y S = 2a + b + 6c.
iv. If Y S is odd, i.e., if b = 1, then increase Y S by 11, else leave Y S
unchanged. This is the same as writing
Y S = 2a + 12b + 6c.
(3)
Next, let us evaluate the negative of the expression (1) for the value of y
given by (2).
20a + 10b + 5c
2b + c
5y
=−
= − 5a + 2b + c +
= −5a−2b−c
−
4
4
4
(4)
As (3) and (4) differ by a multiple of 7 (viz. 7a+14b+7c), they are congruent
modulo 7.
Fong and Walters’s own proof in [8] is longer and more complicated.
2. Parity Minus 3 Method
This new method is inspired by and very similar to “Odd+11”, but
involves smaller integers. The “Parity Minus 3” operation takes a given year y
(between 0 and 99, inclusive) as input and produces the negative of the year
share as output, by proceeding as follows:
i. Set the value of Y S to that of y. In symbols, Y S ← y.
ii. Check and remember Y S’s parity (odd or even). If Y S is odd, then
decrease it by 3, i.e., Y S ← Y S − 3, else leave it unchanged.
iii. Halve Y S, i.e., Y S ← Y S/2.
iv. If Y S’s parity (odd or even) has changed, decrease Y S by 3, i.e.,
Y S ← Y S − 3, else leave it unchanged.
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
S. Kamal Abdali
79
Examples:
(a) y = 24
Step 1: Y S = 24. Step 2: Even, hence Y S = 24. Step 3: Halve, so
Y S = 12. Step 4: Even, so parity unchanged, hence answer is Y S = 12.
(b) y = 37
Step 1: Y S = 37. Step 2: Odd, hence Y S = 37 − 3 = 34. Step 3:
Halve, so Y S = 17. Step 4: Odd, so parity unchanged, hence answer is
Y S = 17.
(c) y = 58
Step 1: Y S = 58. Step 2: Even, hence Y S = 58. Step 3: Halve, so
Y S = 29. Step 4: Odd, so parity changed, hence answer is
Y S = 29 − 3 = 26.
(d) y = 79
Step 1: Y S = 79. Step 2: Odd, hence Y S = 79 − 3 = 76. Step 3:
Halve, so Y S = 38. Step 4: Even, so parity changed, hence answer is
Y S = 38 − 3 = 35.
To show that the result of applying “Parity Minus 3” to the input y is
congruent modulo 7 to the negative of (1), we first express y as a
polynomial as follows: Divide y by 4; call the quotient a; divide the
remainder (whose value is between 0 and 3, inclusive) by 2; call the new
quotient b and the new remainder c. We can now write
y = 4a + 2b + c,
(5)
where 0 6 b 6 1 and 0 6 c 6 1.
Let us first apply the steps of “Parity Minus 3” to this value of y.
i.
Y S = 4a + 2b + c.
ii. If Y S is odd, i.e., if c = 1, then decrease Y S by 3, else leave Y S
unchanged. This is the same as writing
Y S = 4a + 2b − 2c.
iii. Halve Y S, i.e.,
Y S = 2a + b − c.
iv. Since each of b and c is either 0 or 1, the new parity of Y S = 2a + b − c
is odd or even depending, respectively, on whether b 6= c or b = c. The
old parity of Y S determined in Step 2 of the method was odd or even
depending on whether c = 1 or c = 0. Thus the new parity is different
from or same as the old one depending on whether b = 1 or b = 0. Y S
is to be decreased by 3 if the parity has changed, i.e., b = 1, and is to
be left unchanged if b = 0. This is the same as writing
Y S = 2a − 2b − c.
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
(6)
80
finding the year’s share in day-of-week calculations
Next, let us evaluate the negative of the expression (1) for the value of y
given by (5).
20a + 10b + 5c
2b + c
5y
=−
= − 5a + 2b + c +
= −5a−2b−c
−
4
4
4
(7)
As (6) and (7) differ by a multiple of 7, they are congruent modulo 7.
Division by various integers
3. Division by 12
In the original version of the Doomsday Rule[3], Conway states the method
(originally due to Lewis Carroll, see Gardner[5]) to compute the year share
as follows:
“add the number of dozens [. . . in y], the remainder after [. . . the dozens are
taken out], and the number of fours in the remainder”.
That is, the year share is
jyk
y mod 12
+ y mod 12 +
.
12
4
(8)
To prove that the method computes the year share correctly, let us write
y = 12q + r, where 0 6 r < 12.
Now (8) can be rewritten as
q+r+
jrk
4
With 12q + r substituted for y in (1), year share equals
jrk
60q + 5r
5y
=
= 15q + r +
.
4
4
4
(9)
(10)
Since (9) and (10) differ by a multiple of 7, they are congruent modulo 7.
4. Division by 4
This method called Highest Multiple of Four by YingKing Yu[6] uses a very
simple, easy to remember calculation to produce the negative of the year
share. Solka[2] credits Carl Willmann with a much earlier equivalent method.
One thinks of the two-digit year as the sum of a multiple of 4 and a remainder
which is 0, 1, 2, or 3. Then the method computes “half of that multiple of
4, minus the remainder”. Incidentally, for some people “the closet multiple
of 4 not larger than the given year” is easier to remember as the current
or previous “leap year”, “Olympics year”, or the “US Presidential Election
year”.
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
81
S. Kamal Abdali
To prove that the method works correctly, let us write y = 4q + r, where
0 6 r < 4. Then the output of the method is 2q − r. That the value of the
negative of the expression (1) when 4q + r is substituted for y is congruent
modulo 7 to the expression 2q − r is shown as follows:
jrk
5y
20q + 5r
−
=−
= −(5q + r +
) = −5q − r ≡ 2q − r (mod 7)
4
4
4
5. Division by other integers
Divisions by 4 and 12 furnish nice methods, as we have seen above, because
these divisions result in formulas that require simple arithmetic. Division
by 10 also has nice properties and will be covered in the next section. The
divisors 5, 11, 16, and 17 also lead to simple formulas for the year share.
Solka[2] gives formulas for several divisors, including 8, 12, 16, 20, and 24,
grouped together into a “universal approach” section.
In general, for a divisor d, we writejy = dq +
k r, where 0 6 r < d, and evaluate
(or its negative). After reducing
the year share expression (1), i.e., 5dq+5r
4
j
k
5d modulo 28, we can expand the expression into the form aq +r + bq+r
for
4
some integers a and b. We can further play with this expression in various
ways, e.g., increase a by any integer k and compensate for that change by
decreasing b by 4k. Below we show only those divisors d between 5 and 20
for which a and b have values 0, +1, or −1, because any other value would
require extra multiplications that would complicate mental arithmetic. For
the sake of comparison, we include the formulas for divisors 4 and 12 given
in the previous sections.
(a) d = 4:
Negative year share = 2q − r.
(b) d = 5:
Negative year share = q − r −
q+r
.
4
(c) d = 11:
r−q
.
Positive year share = r +
4
can be negative.
Note that the dividend r − q in the expression r−q
4
The evaluation of integer quotients in such cases requires some extra
care. This is discussed at the beginning of Section .
(d) d = 12:
Negative year share = q + r +
jrk
Positive year share = −q + r +
jrk
(e) d = 16:
4
.
4
(f) d = 17:
q+r
Positive year share = r +
.
4
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
.
82
finding the year’s share in day-of-week calculations
Methods operating on the year’s individual digits
The advantage of these methods is that they involve arithmetic with smaller
numbers than those arising in the methods of the previous category, and
dividing these numbers by 4 or reducing them modulo 7 is quite easy to do
mentally.
The earliest such method is credited by Solka[2] to L.T. Sakharovski. This
method, published in 1957, has assigned codes to the tens and units digits
of the year, and these codes are added together to get the year share. As our
interest is mainly in year share computation, we will not reproduce Sakharovski’s
table (given in [2]), and will describe five methods that do this computation in
various ways.
Method 6 is different from the other methods in this section because it
operates on the tens and units digits not of the two-digit year but of the highest
multiple of four not exceeding the year. Method 7 seems to be the simplest, but
in Method 10 we work with only one number at a time (while keeping one sign
in memory), similarly to “Odd+11” or “Parity Minus 3”.
Some of the methods in the present category involve integer divisions with
the dividends allowed to be negative. (However, the divisor is required to be
positive.) Our needed congruences will hold only if we define the integer quotient
in such a division as follows:
j p k
if p > 0 (and q > 0)
q ,
j k
p
= − |p|
,
if p < 0 and |p| mod q = 0 (and q > 0)
q
q
j k
− |p| + 1 , if p < 0 and |p| mod q > 0 (and q > 0)
q
Methods 7 through 10 have much in common and are essentially variations on
the same theme. Suppose the tens and units digits of the two digit-year part
are, respectively, t and u. That is y = 10t + u. Let’s evaluate the negative of
the year share expression (1) in terms of t and u:
50t + 5u
5y
=−
(11)
−
4
4
Any expression derived by adding a multiple of 28 to the numerator of the
fraction in (11) is obviously congruent modulo 7 to (11), and is hence just
another expression for the negative year share. Examples are:
22t + 5u
−
(12)
4
−6t + 5u
(13)
−
4
Method 7, 8, and 9 are derived from (12) with or without the negative sign, and
Method 10 in essence evaluates (13) directly.
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
S. Kamal Abdali
83
6. Computing with Year’s Individual Digits (Eisele)
The following method by Martin Eisele (citation in [2]) is unique as it
operates on the tens and units digits not of the given year but of the largest
multiple of four not exceeding that year. Let y be the two-digit year part
of the date. Let q and r be the integer quotient and remainder when y is
divided by 4, that is,
y = 4q + r, where 0 6 r < 4.
(14)
Let t and u be the tens and units digits of 4q, that is,
4q = 10t + u, where 0 6 u < 10.
(15)
Then, according to Eisele, the year share is
2t −
u
+ r.
2
(16)
Note that u must be even since by (15) 10t + u is a multiple of 4. Thus we
have
u
2q = 5t + , where u = 0, 2, 4, 6, or 8.
(17)
2
To show the correctness of Eisele’s method, we verify that the year share
expression (1) with 4q + r substituted for y is congruent modulo 7 to (16):
20q + 5r
5y
=
, by (14)
4
4
jrk
u
= 5q + r +
= 5q + r ≡ −2q + r (mod 7) = −5t − + r, by (17)
4
2
u
≡ 2t − + r (mod 7)
2
A method by Alexander Harringer (see [2]) turns out to be a variation of
the above method. For computing the year share, Harringer proposes the
formula
2t + 3u + r.
(18)
instead of Eisele’s (16). Notice that (18) and (16) differ by the quantity
7u
2 . As u is an even number, this quantity is a multiple of 7, and hence the
formulas by Harringer and Eisele are congruent modulo 7.
7. Computing with Year’s Individual Digits (Aa)
Let the tens digit and units digit in the year part be t and u, respectively.
That is, y = 10t + u. Then the negative of the year share can be found in
this way:
.
i. Compute 2t+u
4
ii. Add u to above.
iii. Subtract the above sum from 2t.
This is the year share.
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
84
finding the year’s share in day-of-week calculations
Example. Suppose year is 59. Then:
i. From t = 5 and u = 9, we compute 2t + u = 19 and then its quarter
which is 4.
ii. Adding u = 9 to it, we get 13.
iii. Subtracting this from 2t = 10, we get 10−13 = −3. This is the negative
year share. We can reduce it modulo 7 immediately to 4 or just leave
it as −3 to be reduced modulo 7 in a later step of dow calculation.
The result of performing the steps of the method with input digits t and u is
2t + u
2t −
+u
(19)
4
To show that this is the negative year share, we evaluate the negative of
expression (1) with 10t + u substituted for y.
50t + 5u
2t + u
5y
=−
= − 12t + u + 2t +
−
4
4
4
2t + u
+u
(20)
= − 12t −
4
Since (19) and (20) differ by a multiple of 7, they are congruent modulo 7.
8. Computing with Year’s Individual Digits (Fong)
The following method by Chamberlain Fong[7] operates on the year’s
individual digits and computes the positive year share. (Fong also credits
YingKing Yu with this method, and cites Yu’s work in [7].) Let t and u be,
respectively, the tens and units digits of the year. Then the method computes
the year share as
2(t mod 2) + u
.
(21)
2t + 10(t mod 2) + u +
4
To prove that the year share so computed is correct, we proceed as follows.
Substituting t = 2t1 + t2 , where 0 6 t2 6 1, we write (21) as
2t2 + u
2t2 + u
= 4t1 + 12t2 + u +
. (22)
2(2t1 + t2 ) + 10t2 + u +
4
4
Substituting t = 2t1 + t2 , hence y = 10t + u = 20t1 + 10t2 + u, we evaluate
the expression (1) for year share as follows:
5y
100t1 + 50t2 + 5u
2t2 + u
=
= 25t1 + 12t2 + u +
(23)
4
4
4
Since (22) and (23) differ by a multiple of 7, they are congruent modulo 7.
9. Computing with Year’s Individual Digits (Wang)
This method by Xiang-Sheng Wang[9] computes the positive year share. Let
t and u be, respectively, the tens and units digits of the year. Then the
method computes the year share as
t
u
.
(24)
−
u−t+
4 2
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
S. Kamal Abdali
85
To prove that the year share so computed is correct, we evaluate the negative
of the year share expression (1) with 10t + u substituted for y.
5y
50t + 5u
4u + 52t + u − 2t
u − 2t
=
=
= u + 13t +
4
4
4
4
u
t
= u + 13t +
.
(25)
−
4 2
Since (24) and (25) differ by a multiple of 7, they are congruent modulo 7.
Note that the fraction in (24) can be negative, so its floor has to be evaluated
carefully following the procedure stated at the beginning of Section .
10. Computing with Year’s Individual Digits (Ab)
Here is another method that operates on the individual digits of a
two-digit year. Let the tens digit and units digit in the year part be t and u,
respectively; that is, y = 10t + u. Then the negative year share is found in
this way:
i. Compute 5u − 6t, and let its absolute (positive) value be a. Also
remember its sign (‘plus’ or ‘minus’).
ii. Compute b = a4 . If there was a non-zero remainder, and the sign in
the previous step was ‘minus’, increase b by 1.
iii. Affix the opposite sign to b. (That is, make it −b if the sign was ‘plus’,
and +b i.e., just b if the sign was ‘minus’. ) This result is the negative
year share.
If this value turns out to be negative or larger than 6, we can reduce it
modulo 7 immediately or just leave it as is to be reduced modulo 7 in a
later step of dow calculation.
Example. Suppose year is 87. Then:
i. From t = 8 and u = 7, we compute 5u−6t = 5×7−6×8 = 35−48 = −13.
So we have a = 13 and sign = ‘minus’.
ii. By dividing a by 4, we get b = 3. Since there was a nonzero remainder in
the division, and the remembered sign is ‘minus’, we add 1 to b, making
b = 4.
iii. Since the remembered sign is ‘minus’, we attach the opposite sign to b,
making it +4, i.e., 4. So the negative year share is 4.
The result of performing the steps of the method with input digits t and u is
5u − 6t
−
(26)
4
To show that this is the negative year share, we evaluate the negative of
expression (1) with 10t + u substituted for y.
5y
50t + 5u
5u − 6t + 56t
5u − 6t
−
=−
=−
≡−
+ 14t
4
4
4
4
(27)
Since (26) and (27) differ by a multiple of 7, they are congruent modulo 7.
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008
86
finding the year’s share in day-of-week calculations
Concluding remarks
This article is concerned only with the year share part of dow calculation, not
with any other details of the dow computation methods. The year share part
is where most of the calculation time is spent. We have tried to describe the
methods with a uniform, systematic approach, and have provided simple proofs
of their correctness.
Acknowledgment
I am thankful to Hans-Christian Solka, Robert Goddard, and Chamberlain Fong
for reading an earlier draft of this article very carefully and making valuable
suggestions.
References
[1] Wikipedia contributors, “Determination of the day of the week”, Wikipedia,
The Free Encyclopedia.
http://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week
[2] Hans-Christian
Solka.
Enzyklopädie
der
Wochentagsberechnung
(Encyclopedia of Day-of-Week Calculation), 2nd German ed.,
version 2.19, 2013.
[3] Elwyn R. Berlekamp, John H. Conway, Richard K. Guy. Winning Ways
for Your Mathematical Plays, Vol. 4, 2nd ed., A. K. Peters, Wellesley, MA,
903–906, 2004.
[4] Robert Goddard. “First Sunday Doomsday Algorithm”.
http://firstsundaydoomsday.blogspot.ca/2009/12/quick- start- guide.htm
[5] Martin Gardner. The Universe in a Handkerchief: Lewis Carroll’s
Mathematical Recreations, Games, Puzzles, and Word Plays, Copernicus,
New York, 24–26, 1996.
[6] YingKing Yu, “A Perpetual Calendar in Your Head”.
http://improvedddabyykyu.blogspot.com/2010/09/perpetual- calendar- in- your- head- by- dr.html
[7] Chamberlain
Fong.
“Methods
Doomsday Algorithm (Part 1)”.
for
Accelerating
Conway’s
http://arxiv.org/abs/1006.3913v8
[8] Chamberlain Fong, Michael K. Walters. “Methods for Accelerating
Conway’s Doomsday Algorithm (Part 2)”, 7th International Congress on
Industrial and Applied Mathematics, 2011.
http://arxiv.org/abs/1010.0765
[9] Xiang-Sheng Wang. “Calculating the Day of the Week: Null-Days
Algorithm”, Recreational Mathematics Magazine, 3, 5–8, March 2015.
http://rmm.ludus- opuscula.org/PDF_Files/Wang_Day_5_8(3_2015)_low.pdf
Recreational Mathematics Magazine, Number 6, pp. 75–86
DOI 10.1515/rmm–2016–0008