create account

[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?! by mathsolver

View this thread on: hive.blogpeakd.comecency.com
· @mathsolver ·
$2.02
[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!
![calendar-660670_1920.jpg](https://cdn.steemitimages.com/DQmWat4HDWn6bWDDrKP4zsRm6KUQnFsyBNt1YGSC1hMJHh3/calendar-660670_1920.jpg)
([이미지 출처](https://pixabay.com/en/calendar-date-time-month-week-660670/), CC0 license)

# 날짜와 요일의 관계

## 율리우스력에서 그레고리력으로의 전환

[율리우스 카이사르](https://ko.wikipedia.org/wiki/%EC%9C%A8%EB%A6%AC%EC%9A%B0%EC%8A%A4_%EC%B9%B4%EC%9D%B4%EC%82%AC%EB%A5%B4)가 도입한 율리우스력은 다음과 같은 규칙으로 날짜를 계산하였다. 

1. 평년은 <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;365.25=365\frac{1}{4}" title="365.25=365\frac{1}{4}" align = "center"/> 일 이고, 4년마다 윤년 (366일)을 배치한다. 

이는 굉장히 부정확한 날짜 계산법이었는데, 그 이유는 지구가 태양을 한 바퀴 돌아 제자리로 올 때까지 걸리는 시간이 약 <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;365.2422" title="365.2422" align = "center"/> 일 이기 때문이다. 얼핏 보기에는 굉장히 작은 오차 같지만, 계산해보면 약 128년 마다 하루가 뒤쳐지게 된다. 

카이사르는 기원전 1세기 사람이므로, 16세기 (약 1600년 뒤)에 들어서는 10일 정도가 원래의 날짜보다 뒤쳐지게 된다. 계속된 오차 누적을 감당할 수 없었던 교황청은 새로운 날짜 계산법을 고안해냈고, 교황 [그레고리오 13세](https://ko.wikipedia.org/wiki/%EA%B5%90%ED%99%A9_%EA%B7%B8%EB%A0%88%EA%B3%A0%EB%A6%AC%EC%98%A4_13%EC%84%B8)는 그 유명한 [그레고리력](https://ko.wikipedia.org/wiki/%EA%B7%B8%EB%A0%88%EA%B3%A0%EB%A6%AC%EB%A0%A5)을 제정하고 공포한다.  이는 다음과 같이 요약된다.

- 1582년 10월 4일 목요일 다음날을 1582년 10월 15일 금요일로 하여 오차를 한 번에 제거한다. 

- 4의 배수인 해(년)를 윤년으로 한다. 단, 100의 배수 중 400으로 나누어 떨어지지 않는 해는 평년으로 한다. 

즉 윤년을 정하는 조건을 2개 더 집어 넣어 강제로 오차를 제거한 것이다. 예를 들어서, 1700년은 100의 배수이지만 400으로 나누어 떨어지지 않기에 윤년이 아니라 평년이 된다. 마찬가지로 1800, 1900년 도 평년이지만, 2000년은 윤년이 된다. 

## 날짜와 요일의 관계

율리우스력에서 날짜와 요일의 관계는 어떻게 될 까? 이는 다시말하면, 특정한 날짜가 주어지면 그 날짜의 요일을 대답해주는 관계식이 있냐고 묻는 것과 같다. 없을 이유가 없다...ㅋㅋ. 일단 이러한 관계식을 찾기 위해서는 요일을 문자그대로가 아닌 숫자로 인식해야 한다. 요일은 7일마다 반복되므로, 다음과 같이 인식하면 충분하다. 

<center> <b> 일요일 = 0, 월요일 = 1, 화요일 = 2, ..., 토요일 = 6 </b> </center>

이렇게 인식하는 이유는, 0부터 6까지의 정수는 7로 나눈 나머지를 이루기 때문이다. 따라서 날짜 

<center> YYYY / MM / DD </center>

가 주어지면, 요일수

<center> 0부터 6까지의 정수 중 하나인 </center>

<img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;w" title="w" /> 를 출력하는 공식을 만들면 된다. 

## 평년과 요일의 관계
먼저 YYYY 꼴의 년도를 앞 두자리와, 뒤 두자리로 나눈다. 예를 들어서, 2010년이면, 

<center> 앞 두자리 20과 뒤 두자리 10 으로, </center>

1908년이면 

<center> 앞 두자리 19와 뒤 두자리 08(=8) 로 나누는 것이다. </center>

이제 앞 두자리 수를 <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;c" title="c" /> , 뒤 두자리수를 <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;d" title="d" /> 로 놓자. 평년은 365일 이고, <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;365&space;=&space;7&space;\times&space;52&space;&plus;&space;1" title="365 = 7 \times 52 + 1" align = "center"/> 이므로, 년도가 하나 넘어갈때마다, 요일은 전년도 동일 날짜보다 하루 (나머지가 1)만큼 앞서간다. 따라서 일단 <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;d" title="d" /> 를 더하자. 

<center> <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;w&space;=&space;d&space;\mod&space;7" title="w = d \mod 7" /></center>

## 윤년과 요일의 관계

4의 배수인 해는 __원칙적으로__ 윤년이므로, 위 공식은 수정되야 한다. 어떤 수가 4의 배수일 조건은 뒤 두자리가 4의 배수일 조건과 동치이므로, 우리는 관계식에 

<center> <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;\lfloor&space;d/4&space;\rfloor" title="\lfloor d/4 \rfloor" /> </center>

을 더해주어야한다. 수정한 공식은 다음과 같다. 

<center> <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor \mod 7" /> </center>

다음으로, 그레고리력에 추가된 100의 배수 조건을 살펴봐야 한다. 100의 배수인 해는 뒤의 두 자리가 00으로 끝나는 년도만 해당된다. 00으로 끝나는 해는 100년마다 돌아오고, 100년이 지날 때 마다 요일은 24번의 윤년 때문에

<center><img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;100&space;&plus;&space;24&space;=&space;124" title="100 + 24 = 124" align = "center"/> </center>

만큼 앞서간다. (100년전 동일 날짜에 비해) 요일이 124 만큼 앞서간다는 것은 

<center> <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;124&space;=&space;7&space;\times&space;18&space;-&space;2" title="124 = 7 \times 18 - 2" /> </center>

2일 뒤쳐진다는 것과 동치이다 (-2에 주목). 100년을 앞서갔을때, 뒤의 두자리는 변하지 않으므로, 앞의 두 자리에 -2를 곱한 값을 더해

<center> <img src="http://latex.codecogs.com/gif.latex?\inline&space;\dpi{120}&space;w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;-&space;2c&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor - 2c \mod 7" /> </center>

로 수정할 수 있다. 이제 400의 배수들을 생각해주자. 400의 배수인 해는 뒤 두자리는 00으로 고정되고, 앞 두자리가 4의 배수이어야 한다. 이들은 윤년이므로, <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;c/4&space;\rfloor" title="\lfloor c/4 \rfloor" align = "center"/> 을 더해서 

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;-&space;2c&space;&plus;&space;\lfloor&space;\frac{c}{4}&space;\rfloor&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor - 2c + \lfloor \frac{c}{4} \rfloor \mod 7" /> </center> 

로 수정할 수 있다. 

## 달과 요일의 관계
년도와 요일의 관계를 살펴봤으니, 달과 요일의 관계도 알아봐야 한다.  윤년은 2월달에 하루를 더하므로 편의상 3월을 년도의 시작으로 보고, 2월을 그 해의 마지막으로 보아, 달을 나타내는 숫자 <img src="http://latex.codecogs.com/gif.latex?m" title="m" /> 을 다음과 같이 약속한다. 

<center> <b> 3월 = 1, 4월 = 2, 5월  = 3, ..., 12월 = 10, 1월 = 11, 2월 = 12 </b> </center>

모든 달은 28일보다 크거나 같고, 28은 7의 배수여서 요일에 변화를 주지 않으므로, 28일보다 얼만큼 더 가지고 있는지 살펴보면 다음과 같다. 

|     m     |  1  |  2  |     3    |     4    |  5  |
|:---------:|:---:|:---:|:--------:|:--------:|:---:|
|    달     | 3월 | 4월 |    5월   |    6월   | 7월 | 
| 일 수 |  31 |  30 |    31    |    30    |  31 |
|  더 가진 일 수    |  3  |  2  |     3    |     2    |  3  |
|    누적     |  0  |  3  | 5 | 8  |  10 | 

 |  6  |  7  |  8  |  9  |  10 |  11 |  12 |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| 8월 | 9월 | 10월 | 11월 | 12월 | 1월 |2월 |
|  31 |  30 |  31 |  30 |  31 |  31 |  28 |
|  3  |  2  |  3  |  2  |  3  |  3  |  0  |
|  13 |  16 |  18 |  21 |  23 |  26 |  29 |

누적 0, 3, 5, 8, 10, 13, 16, 18, 21, 23, 26, 29 를 각 달의 숫작 1,2,3,..., 12와 연관지어야 한다. 5달 마다 누적 13 만큼 늘어나므로, 이들을 연관짓는 관계식은 

<center> <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;\frac{13m}{5}&space;&plus;&space;a&space;\rfloor" title="\lfloor \frac{13m}{5} + a \rfloor" /> </center>

꼴일 것이다. 이제 상수 <img src="http://latex.codecogs.com/gif.latex?a" title="a" />를 구해보자. 

1. <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;\frac{13}{5&space;}&plus;&space;a&space;\rfloor&space;=&space;0&space;\implies&space;-\frac{13}{5}&space;\leq&space;a&space;<&space;-\frac{6}{5}" title="\lfloor \frac{13}{5 }+ a \rfloor = 0 \implies -\frac{13}{5} \leq a < -\frac{6}{5}" align = "center" />

2. <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;\frac{26}{5&space;}&plus;&space;a&space;\rfloor&space;=&space;3&space;\implies&space;-\frac{11}{5}&space;\leq&space;a&space;<&space;-\frac{6}{5}" title="\lfloor \frac{26}{5 }+ a \rfloor = 3 \implies -\frac{11}{5} \leq a < -\frac{6}{5}" align = "center"/>

3. <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;\frac{39}{5&space;}&plus;&space;a&space;\rfloor&space;=&space;5&space;\implies&space;-\frac{14}{5}&space;\leq&space;a&space;<&space;-\frac{9}{5}" title="\lfloor \frac{39}{5 }+ a \rfloor = 5 \implies -\frac{14}{5} \leq a < -\frac{9}{5}" align = "center"/>

4. <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;\frac{52}{5&space;}&plus;&space;a&space;\rfloor&space;=&space;8&space;\implies&space;-\frac{12}{5}&space;\leq&space;a&space;<&space;-\frac{7}{5}" title="\lfloor \frac{52}{5 }+ a \rfloor = 8 \implies -\frac{12}{5} \leq a < -\frac{7}{5}" align = "center"/>

5. <img src="http://latex.codecogs.com/gif.latex?\lfloor&space;13&plus;&space;a&space;\rfloor&space;=&space;10&space;\implies&space;-3&space;\leq&space;a&space;<&space;-2" title="\lfloor 13+ a \rfloor = 10 \implies -3 \leq a < -2" />

5개의 부등식을 모두 만족하는 <img src="http://latex.codecogs.com/gif.latex?a" title="a" /> 의 범위는 <img src="http://latex.codecogs.com/gif.latex?[-11/5,&space;-2)" title="[-11/5, -2)" align = "center"/> 로 좁혀진다. 편의상  <img src="http://latex.codecogs.com/gif.latex?a&space;=&space;-11/5" title="a = -11/5" align ="center"/> 로 놓자. 따라서 수정된 관계식은 

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;-2c&space;&plus;&space;\lfloor&space;\frac{c}{4}&space;\rfloor&space;&plus;&space;\lfloor&space;\frac{13m-11}{5}&space;\rfloor&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor -2c + \lfloor \frac{c}{4} \rfloor + \lfloor \frac{13m-11}{5} \rfloor \mod 7" /> </center>

이 된다. 

## 하루와 요일의 관계

각 달 내에서, 하루하루가 지날때마다 당연히 요일도 앞당겨지므로, 일 수를 <img src="http://latex.codecogs.com/gif.latex?k" title="k" /> 로 놓는 다면, 다음과 같이 수정해야 한다. 

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;-2c&space;&plus;&space;\lfloor&space;\frac{c}{4}&space;\rfloor&space;&plus;&space;\lfloor&space;\frac{13m-11}{5}&space;\rfloor + k&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor -2c + \lfloor \frac{c}{4} \rfloor + \lfloor \frac{13m-11}{5} \rfloor +  \mod 7" /> </center>

이제 마지막으로, 특정 값을 집어넣어서 준 식이 성립하게끔 조정해주면 끝난다. 오늘인 2018년 9월 5일은 수요일 이므로, 

<center> <img src="http://latex.codecogs.com/gif.latex?d&space;=&space;18,\&space;c=20,\&space;m=7,\&space;k=5" title="d = 20,\ c=18,\ m=7,\ k=5" /> </center>

를 넣으면 

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;=&space;8&space;\equiv&space;1&space;\mod&space;7" title="w = 8 \equiv 1 \mod 7" /> </center>

이 나온다. 그런데 수요일은 숫자 3에 대응되므로, 관계식에 2를 더해야지만이 완성된다. 따라서, 

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;-&space;2c&space;&plus;&space;\lfloor&space;\frac{c}{4}&space;\rfloor&space;&plus;&space;\lfloor&space;\frac{13m-1}{5}&space;\rfloor&space;&plus;&space;k&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor - 2c + \lfloor \frac{c}{4} \rfloor + \lfloor \frac{13m-1}{5} \rfloor + k \mod 7" /> </center>

이 완전한 관계식이다. 

## 실제 계산

요약하면 YYYY / MM / DD 꼴의 년월일 정보로부터

- <img src="http://latex.codecogs.com/gif.latex?k" title="c" align = "center"/>: 일 수 

- <img src="http://latex.codecogs.com/gif.latex?m" title="c" align = "center"/>: 달 (3월 = 1, 4월 = 2, ..., 1월 = 11, 2월 = 12)

- <img src="http://latex.codecogs.com/gif.latex?c" title="c" align = "center"/>, <img src="http://latex.codecogs.com/gif.latex?d" title="c"/>: 각각 년도의 앞, 뒤 두자리 (만약 1월, 2월이라면 전년도를 대신 사용한다.)

를 계산하고, 이를 식

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;\equiv&space;d&space;&plus;&space;\lfloor&space;\frac{d}{4}&space;\rfloor&space;-&space;2c&space;&plus;&space;\lfloor&space;\frac{c}{4}&space;\rfloor&space;&plus;&space;\lfloor&space;\frac{13m-1}{5}&space;\rfloor&space;&plus;&space;k&space;\mod&space;7" title="w \equiv d + \lfloor \frac{d}{4} \rfloor - 2c + \lfloor \frac{c}{4} \rfloor + \lfloor \frac{13m-1}{5} \rfloor + k \mod 7" /> </center>

에 대입하면 요일을 알 수 있다. 

- 2020년 2월 28일: <img src="http://latex.codecogs.com/gif.latex?k=28,\&space;m=12" title="k=28,\ m=12" align = "center"/> 이고 2월이므로 전년도 <img src="http://latex.codecogs.com/gif.latex?2019" title="2019" /> 년을 이용하여 <img src="http://latex.codecogs.com/gif.latex?c=20,\&space;d&space;=&space;19" title="c=20,\ d = 19" align = "center"/> 를 계산한다. 

<center>  <img src="http://latex.codecogs.com/gif.latex?w&space;=&space;45&space;\equiv&space;4&space;\mod&space;7" title="w = 47 \equiv 5 \mod 7" /> </center>

이므로 그 날은 __금__ 요일이다. 

- 2018년 12월 25일: 올해 크리스마스는 무슨 요일일까? <img src="http://latex.codecogs.com/gif.latex?k=25,\&space;m=10,\&space;c=20,\&space;d&space;=&space;18" title="k=25,\ m=10,\ c=20,\ d = 18" align = "center"/> 이므로 

<center> <img src="http://latex.codecogs.com/gif.latex?w&space;=&space;37&space;\equiv&space;2&space;\mod&space;7" title="w = 37 \equiv 2 \mod 7" /> </center>

즉 __화__ 요일이다. 

## 질문점
만약 연도가 5자리 이상 넘어가면 어떻게 되나요? 걱정할 필요가 없다. 그때에는 년도의 앞 3자리를 <img src="http://latex.codecogs.com/gif.latex?c" title="c" /> 로 정의하면 충분하다. 그런데, 그레고리력도 3300년 마다 1일의 오차가 존재하므로, 연도가 5자리가 되기 전 어느 시점에서는 날짜 계산의 조정이 있어야 한다. 따라서, 날짜계산의 조정이 이루어지는 시점부터 다시 위의 계산을 반복하면 된다. 

## 출처 / 인용

[1] Burton's Elementary Number Theory 6장 

---

마지막으로 위의 식을 파이썬 코드로 짜보면 다음과 같다.
```
def date_of_week(Y, M, D):
    # Find m ,c, d
    if int(M) < 3:
        m = int(M) + 10
        d = int(str(int(Y) - 1)[-2:])
        c = int(str(int(Y) - 1)[0:2])
    else:
        m = int(M) -2
        d = int(Y[-2:])
        c = int(Y[0:2])
    # Find k
    k = int(D)
    L = ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
         'Thursday', 'Friday', 'Saturday']
    w = (d + (d//4) + (c//4) + (13*m-1)//5 -2*c + k) % 7
    return 'The date of the week is ' + L[w] + '!'

#---------------------
Y, M, D = input('Enter the date in YYYY/MM/DD form: ').split('/')
print (date_of_week(Y,M,D))
```
👍  , , , , , , , , , , , , , , , , , , ,
properties (23)
authormathsolver
permlink22
categorykr
json_metadata"{"tags":["kr","kr-math","kr-science","jjangjjangman","kr-series"],"image":["https://cdn.steemitimages.com/DQmWat4HDWn6bWDDrKP4zsRm6KUQnFsyBNt1YGSC1hMJHh3/calendar-660670_1920.jpg","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;365.25=365\\frac{1}{4}","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;365.2422","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;w","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;c","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;d","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;365&space;=&space;7&space;\\times&space;52&space;&plus;&space;1","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;w&space;=&space;d&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;\\lfloor&space;d/4&space;\\rfloor","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;w&space;\\equiv&space;d&space;&plus;&space;\\lfloor&space;\\frac{d}{4}&space;\\rfloor&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;100&space;&plus;&space;24&space;=&space;124","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;124&space;=&space;7&space;\\times&space;18&space;-&space;2","http://latex.codecogs.com/gif.latex?\\inline&space;\\dpi{120}&space;w&space;\\equiv&space;d&space;&plus;&space;\\lfloor&space;\\frac{d}{4}&space;\\rfloor&space;-&space;2c&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?\\lfloor&space;c/4&space;\\rfloor","http://latex.codecogs.com/gif.latex?w&space;\\equiv&space;d&space;&plus;&space;\\lfloor&space;\\frac{d}{4}&space;\\rfloor&space;-&space;2c&space;&plus;&space;\\lfloor&space;\\frac{c}{4}&space;\\rfloor&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?m","http://latex.codecogs.com/gif.latex?\\lfloor&space;\\frac{13m}{5}&space;&plus;&space;a&space;\\rfloor","http://latex.codecogs.com/gif.latex?a","http://latex.codecogs.com/gif.latex?\\lfloor&space;\\frac{13}{5&space;}&plus;&space;a&space;\\rfloor&space;=&space;0&space;\\implies&space;-\\frac{13}{5}&space;\\leq&space;a&space;<&space;-\\frac{6}{5}","http://latex.codecogs.com/gif.latex?\\lfloor&space;\\frac{26}{5&space;}&plus;&space;a&space;\\rfloor&space;=&space;3&space;\\implies&space;-\\frac{11}{5}&space;\\leq&space;a&space;<&space;-\\frac{6}{5}","http://latex.codecogs.com/gif.latex?\\lfloor&space;\\frac{39}{5&space;}&plus;&space;a&space;\\rfloor&space;=&space;5&space;\\implies&space;-\\frac{14}{5}&space;\\leq&space;a&space;<&space;-\\frac{9}{5}","http://latex.codecogs.com/gif.latex?\\lfloor&space;\\frac{52}{5&space;}&plus;&space;a&space;\\rfloor&space;=&space;8&space;\\implies&space;-\\frac{12}{5}&space;\\leq&space;a&space;<&space;-\\frac{7}{5}","http://latex.codecogs.com/gif.latex?\\lfloor&space;13&plus;&space;a&space;\\rfloor&space;=&space;10&space;\\implies&space;-3&space;\\leq&space;a&space;<&space;-2","http://latex.codecogs.com/gif.latex?[-11/5,&space;-2)","http://latex.codecogs.com/gif.latex?a&space;=&space;-11/5","http://latex.codecogs.com/gif.latex?w&space;\\equiv&space;d&space;&plus;&space;\\lfloor&space;\\frac{d}{4}&space;\\rfloor&space;-2c&space;&plus;&space;\\lfloor&space;\\frac{c}{4}&space;\\rfloor&space;&plus;&space;\\lfloor&space;\\frac{13m-11}{5}&space;\\rfloor&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?k","http://latex.codecogs.com/gif.latex?w&space;\\equiv&space;d&space;&plus;&space;\\lfloor&space;\\frac{d}{4}&space;\\rfloor&space;-2c&space;&plus;&space;\\lfloor&space;\\frac{c}{4}&space;\\rfloor&space;&plus;&space;\\lfloor&space;\\frac{13m-11}{5}&space;\\rfloor + k&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?d&space;=&space;18,\\&space;c=20,\\&space;m=7,\\&space;k=5","http://latex.codecogs.com/gif.latex?w&space;=&space;8&space;\\equiv&space;1&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?w&space;\\equiv&space;d&space;&plus;&space;\\lfloor&space;\\frac{d}{4}&space;\\rfloor&space;-&space;2c&space;&plus;&space;\\lfloor&space;\\frac{c}{4}&space;\\rfloor&space;&plus;&space;\\lfloor&space;\\frac{13m-1}{5}&space;\\rfloor&space;&plus;&space;k&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?c","http://latex.codecogs.com/gif.latex?d","http://latex.codecogs.com/gif.latex?k=28,\\&space;m=12","http://latex.codecogs.com/gif.latex?2019","http://latex.codecogs.com/gif.latex?c=20,\\&space;d&space;=&space;19","http://latex.codecogs.com/gif.latex?w&space;=&space;45&space;\\equiv&space;4&space;\\mod&space;7","http://latex.codecogs.com/gif.latex?k=25,\\&space;m=10,\\&space;c=20,\\&space;d&space;=&space;18","http://latex.codecogs.com/gif.latex?w&space;=&space;37&space;\\equiv&space;2&space;\\mod&space;7"],"links":["https://pixabay.com/en/calendar-date-time-month-week-660670/","https://ko.wikipedia.org/wiki/%EC%9C%A8%EB%A6%AC%EC%9A%B0%EC%8A%A4_%EC%B9%B4%EC%9D%B4%EC%82%AC%EB%A5%B4","https://ko.wikipedia.org/wiki/%EA%B5%90%ED%99%A9_%EA%B7%B8%EB%A0%88%EA%B3%A0%EB%A6%AC%EC%98%A4_13%EC%84%B8","https://ko.wikipedia.org/wiki/%EA%B7%B8%EB%A0%88%EA%B3%A0%EB%A6%AC%EB%A0%A5"],"app":"steemit/0.1","format":"markdown"}"
created2018-09-05 11:55:30
last_update2018-09-05 11:55:30
depth0
children9
last_payout2018-09-12 11:55:30
cashout_time1969-12-31 23:59:59
total_payout_value1.582 HBD
curator_payout_value0.436 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12,876
author_reputation1,337,981,311,807
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,392,781
net_rshares1,799,793,008,092
author_curate_reward""
vote details (20)
@beoped ·
ㅋㅋㅋ 제목 보고 딱 저책이 바로 떠올랐네요 ㅎㅎ
properties (22)
authorbeoped
permlinkre-mathsolver-22-20180905t140824716z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-05 14:08:36
last_update2018-09-05 14:08:36
depth1
children1
last_payout2018-09-12 14:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation81,739,334,164,932
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,404,090
net_rshares0
@mathsolver · (edited)
ㅋㅋㅋㅋ 예리하십니다
properties (22)
authormathsolver
permlinkre-beoped-re-mathsolver-22-20180905t143207917z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-05 14:32:06
last_update2018-09-05 14:32:30
depth2
children0
last_payout2018-09-12 14:32:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11
author_reputation1,337,981,311,807
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,406,274
net_rshares0
@ldsklee ·
짱짱맨 출석부 호출로 왔습니다.
즐거운 하루 되세요..
properties (22)
authorldsklee
permlinkre-mathsolver-22-20180906t132425381z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-06 13:24:27
last_update2018-09-06 13:24:27
depth1
children1
last_payout2018-09-13 13:24:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length30
author_reputation59,821,570,870,832
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,503,429
net_rshares0
@mathsolver ·
감사합니다!
properties (22)
authormathsolver
permlinkre-ldsklee-re-mathsolver-22-20180906t132541876z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-06 13:25:42
last_update2018-09-06 13:25:42
depth2
children0
last_payout2018-09-13 13:25:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6
author_reputation1,337,981,311,807
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id70,503,530
net_rshares0
@sleeprince ·
마지막 파이썬 코드까지... 크 공대 감성
properties (22)
authorsleeprince
permlinkre-mathsolver-22-20180905t125933182z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-05 12:59:30
last_update2018-09-05 12:59:30
depth1
children1
last_payout2018-09-12 12:59:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length23
author_reputation6,516,822,892,945
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,397,833
net_rshares0
@mathsolver ·
읽어주셔서 감사합니다 ㅜㅜ
properties (22)
authormathsolver
permlinkre-sleeprince-re-mathsolver-22-20180905t131941822z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-05 13:19:39
last_update2018-09-05 13:19:39
depth2
children0
last_payout2018-09-12 13:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length14
author_reputation1,337,981,311,807
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,399,572
net_rshares0
@virus707 ·
이오스 계정이 없다면 마나마인에서 만든 계정생성툴을 사용해보는건 어떨까요?
https://steemit.com/kr/@virus707/2uepul
properties (22)
authorvirus707
permlinkre-mathsolver-22-1536339984994t5b85a578-92ad-4ce0-8a7e-9645ebf1aa4buid
categorykr
json_metadata{"tags":["support"],"users":["virus707"],"links":["https://steemit.com/kr/@virus707/2uepul"],"app":"null/null","format":"markdown"}
created2018-09-07 17:06:27
last_update2018-09-07 17:06:27
depth1
children0
last_payout2018-09-14 17:06:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation557,563,606,581,756
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries
0.
accountsteemj
weight250
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,625,730
net_rshares0
@yongsam ·
음 저런 복잡한 공식도 있지만
암산으로 계산하려면
100년단위로 특정 날짜를 외우고
그 날짜 앞뒤로 차이만큼 나눗셈과 나머지로 구할 수 있다고 합니다.
properties (22)
authoryongsam
permlinkre-mathsolver-22-20180905t141422894z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-05 14:14:21
last_update2018-09-05 14:14:21
depth1
children1
last_payout2018-09-12 14:14:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length84
author_reputation4,768,717,921,259
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,404,632
net_rshares0
@mathsolver ·
그렇게도 구할 수 있겠네요. 읽어주셔서 감사합니다!
properties (22)
authormathsolver
permlinkre-yongsam-re-mathsolver-22-20180905t153811170z
categorykr
json_metadata{"tags":["kr"],"app":"steemit/0.1"}
created2018-09-05 15:38:09
last_update2018-09-05 15:38:09
depth2
children0
last_payout2018-09-12 15:38:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation1,337,981,311,807
root_title"[수학 이야기 #22] 날짜를 알면 요일을 알 수 있다?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,412,693
net_rshares0