# Mathematics of the Jewish Calendar/Gauss' Formula for the Date of Pesach

Gauss
Gauss' Formula for the Date of Pesach

In 1802, the mathematician Carl Friedrich Gauss published a formula to calculate the date of the first day of Pesach in any year. Albert Einstein is said to have remarked of the formula that not only could nobody but Gauss have produced it, but it would never have occurred to anyone but Gauss that such a formula was possible.

Let ${\displaystyle \left[{\frac {m}{n}}\right]_{r}}$ be the remainder when integer ${\displaystyle m}$ is divided by integer ${\displaystyle n}$.

Define:

${\displaystyle A}$ ${\displaystyle =}$ Jewish year
${\displaystyle a=\left[{\frac {12A+17}{19}}\right]_{r}}$
${\displaystyle b=\left[{\frac {A}{4}}\right]_{r}}$
${\displaystyle M+m=32+{\frac {4343}{98496}}+\left(1+{\frac {272953}{492480}}\right)a+{\frac {b}{4}}-\left({\frac {313}{98496}}\right)A}$

where ${\displaystyle M}$ is the integer part and ${\displaystyle m}$ the fractional part of the calculated number.

Then 15 Nisan is Mth March in the Julian calendar unless it is postponed for one of the three following reasons:

Define:

${\displaystyle c=\left[{\frac {3A+5b+M+5}{7}}\right]_{r}}$
If ${\displaystyle c}$ = 2 or 4 or 6, then 15 Nisan is (${\displaystyle M}$+1)th March.
If ${\displaystyle c}$ = 1, ${\displaystyle a}$ > 6 and ${\displaystyle m}$ ≥ 1367/2160, then 15 Nisan is (${\displaystyle M}$+2)th March.
If ${\displaystyle c}$ = 0, ${\displaystyle a}$ > 11 and ${\displaystyle m}$ ≥ 23269/25920, then 15 Nisan is (${\displaystyle M}$+1)th March.

It is trivial to adapt the formula to find the dates of the other main festivals; for example, Purim is always 30 days before Pesach and Rosh Hashana is 163 days after Pesach.

Note that the formula gives the date in the Julian calendar, so an adjustment to the Gregorian calendar is necessary. To find the difference, take the year and discard the last two digits; call the result ${\displaystyle C}$. Calculate

${\displaystyle C-2-\left[{\frac {C}{4}}\right]}$

where, in the division, just take the integer part and discard the remainder. Thus the adjustment is to add 11 days for 1700-99, 12 days for 1800-99, 13 days for 1900-2099 and 14 days for 2100-99.

Note that in the very long term, due to calendar drift, it may be hard to know which year of the Julian calendar this Nisan 15th is in. (See Mathematics of the Jewish Calendar/The long-term accuracy of the calendar.)

## References

• "Berechnung des jüdischen Osterfestes", Monatliche Correspondenz zur Beförderung der Erd- und Himmels-Kunde, 5 (1802), 435-437; reprinted in: Carl Friedrich Gauss Werke (Königlichen Gesellschaft der Wissenschaften, Göttingen, 1874), vol. 6, pp. 80-81.
• Hamburger, M. (1896) Crelle's Journal, 116, p.90 gave the first rigorous proof.
• Paper by Zvi Har'El, Technion, Haifa, Israel