« Curiosités mathématiques/Trouver le jour de la semaine avec une date donnée » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 48 :
:<math>wd = 2 + 18 + 4 + 1953 + 488 - 19 + 4 \pmod7</math>
:<math>wd = 0</math>
:Le 18 janvier 1953 était un Dimanchedimanche.
 
 
Ligne 58 :
:<math>wd = 20 + 2 + 2 + 1953 + 488 - 19 + 4 \pmod7</math>
:<math>wd = 0</math>
:Le 2 août 1953 était un Dimanchedimanche.
 
 
Ligne 68 :
:<math>wd = 7 + 13 + 2 + 1998 + 499 - 19 + 4 \pmod7</math>
:<math>wd = 5</math>
:Le 13 mars 1998 était un Vendredivendredi 13 !
 
 
Quel jour de la semaine tombait le 1er janvier 2020 ?
 
(3eme cas : m < 3)
:<math>d = 1, m = 1, y = 2020</math>
:<math>wd = \left\lfloor \frac{23 \times 1}{9} \right\rfloor + 1 + 4 + 2020+ \left\lfloor \frac{2019}{4} \right\rfloor - \left\lfloor \frac{2019}{100} \right\rfloor + \left\lfloor \frac{2019}{400} \right\rfloor \pmod7</math>
:<math>wd = 2 + 1 + 4 + 2020+ 504 - 20 + 5 \pmod7</math>
:<math>wd = 3</math>
:Le 1er janvier 2020 était un mercredi.
 
== Méthode 2 ==