你的生日是星期几

  • 时间:2020-06-19 15:24:28
  • 分类:数学世界
  • 阅读:134 次

你的生日是星期几?你知道你出生那天是星期几吗?现在教你把这个问题算出来的有趣的方法。例如,算一算 1979 年5 月5 日是星期几。 事先必须知道下面四个数:

①公元年数的末两位数。如1979年,就是79。

②年数的末两位数除以4所得的商。如1979年,就是 79÷4=19……余3,但是,如果恰能整除,那么所求的是1月和2月时,要从得数上减去1。

③月系数。查下面的表,5月的系数是1。

一年中各月的系数:1月是0,2月是3,3月是3,4月是6,5月是1,6月是4,7月是6,8月是5,9月是5,10月是0,11月是3,12月是5。

④日数。如5日就是5。

知道了这4个数,把它们相加,得数再除以 7,求出余数。

若余数是1 ,那么那天就是星期一,余数是 2 ,那天是星期二……余数是 6 ,那天就是星期六,恰能整除,那天就是星期日。这样,1979 年5 月5 日是 79+19+1+5 =104,104÷7=14……余6,所以这一天是星期六。(彭景廉)

如有不明白之处,还可参考以前发布的《怎样算一年中任意一天是星期几》一文。

推荐阅读:
How to Use Hash Map to Count the Frequencies of Values and Itera  Ordered Three 2TB WD HDD to prolong the life expectancy of HPZ80  HPZ800 Server Does Not Support Hard Drives Larger Than 2TB  Fresno Blogger Changing The Vegan Blogging Scene  Russian ‘Pokemon Go’ Blogger Goes On Trial  Starting a Blog? 5 Topics People Care About in 2017  6 Strategies To Grow Your Facebook Page  5 Sure Shot Content Marketing Trends to Follow  7 Ways for Your Underdog Blog to Beat the Competition  Darkstore Aims to be Less Invasive Alternative to Tech Giants ac 
评论列表
添加评论