Skip to main content

Command Palette

Search for a command to run...

정수론 Chapter 6.3 - Euler's Theorem

Updated
3 min read

이 글의 내용은 성균관대학교 권순학 교수님의 2019년 4월 18일 수업 내용을 재구성한 것입니다.

Reduced residue system (RRS) {#rrs}

$$ n: \\textrm{자연수} $$

$$ S_n = \\{0 \\le a \\le n\\ \\mid \\gcd(a, n) = 1 \\} $$

집합 $T$가 \(T \\equiv S_n \; (\\textrm{mod} \; n)\)을 만족할 때, $T$를 Reduced residue system modulo n이리고 부른다

예시 {#rrs-example}

$$ n = 4 \\\\ \\Rightarrow T = \\{1, 3\\}, \\{-1, 1\\}, \\{5, 8\\} $$

$$ n = 5 \\\\ \\Rightarrow T = \\{1, 2, 3, 4\\}, \\{-2, -1, 1, 2\\} $$

Remark: \(\\gcd(a, n) = 1\)이면 $aT$도 RRS이다

증명

1. 모두 다르다 \((\\textrm{mod} \; n)\)

$$ ar_i \\equiv ar_j (\\textrm{mod} \; n) \\\\ \\Leftrightarrow n \\mid (ar_i - ar_j) \\\\ \\Leftrightarrow n \\mid a(r_i - r_j) \\\\ \\Leftrightarrow n \\mid (r_i - r_j) \;\;\; (\\because \\gcd(a, n) = 1) \\\\ \\Leftrightarrow r_i \\equiv r_j \;\; (\\textrm{mod} \; n) \\\\ \\Leftrightarrow i = j \;\;\; (\\because r_j, r_i \\in S_n) $$

2. \(\\gcd(ar_i, n) = 1\)

$$ \\gcd(a, n) = 1 $$

$$ \\gcd(r_i, n) = 1 \;\;\; (\\because r_i \\in S_n) $$

예시: \(n = 8\)

$$ T = \\{1, 3, 5, 7\\} $$

a = 2

$$ aT = \\{2, 4, 6, 8\\} \\equiv \\{0, 2, 4, 6\\} \; (\\textrm{mod} \; 8) $$

$$ \\therefore aT \; \\textrm{is not a RRS modulo} \; 8 $$

a = 3

$$ aT = \\{3, 9, 15, 21\\} \\equiv \\{1, 3, 5, 7\\} \; (\\textrm{mod} \; 8) $$

$$ \\therefore aT \; \\textrm{is a RRS modulo} \; 8 $$

The Euler \(\\phi\) function {#euler-phi-function}

$$ \\phi(n) = |S_n| \;\; \\textrm{where} \; S_n \;\\textrm{is a RRS modulo n} $$

예시 {#euler-phi-function-examples}

$$ \\phi(1) = |\\{0\\}| = 1 $$

$$ \\phi(2) = |\\{1\\}| = 1 $$

$$ \\phi(3) = |\\{1, 2\\}| = 2 $$

$$ \\phi(7) = |\\{1, 2, 3, 4, 5, 6\\}| = 6 $$

$$ \\phi(8) = |\\{1, 3, 5, 7\\}| = 4 $$

The Euler's Theorem

\(\\gcd(a, n) = 1\)인 자연수 $a$에 대하여,

$$ a^{\\phi(n)} \\equiv 1 \; (\\textrm{mod} \; n) \\\\ \\textrm{where }\\phi(n) \\textrm{ is number of elements in RRS} $$

증명 {#proof-of-eulers-theorem}

$$ T: \\textrm{a RRS} \; (\\textrm{mod} \; n) $$

$$ T \\equiv aT \; (\\textrm{mod} \; n) $$

$$ \\Rightarrow r_1 r_2 \\cdots r_k \\equiv a^{k} r_1 r_2 \\cdots r_k \;\;\; where \; k = \phi(n) $$

$$ \\Rightarrow n \\mid (a^k - 1) r_1 r_2 \\cdots r_k $$

$$ \\Rightarrow n \\mid (a^{\\phi(n)} - 1) \;\;\;(\\because r_i \\in T) $$

$$ \\Rightarrow a^{\\phi(n)} \\equiv 1 \; (\\textrm{mod} \; n) $$

Collorary: The Fermat's Little Theorem

$n$이 소수인 경우, \(a^{\\phi(n)} \\equiv a^{p-1} \\equiv 1 \; (\\textrm{mod} \; n) \)

More from this blog

한국의 학벌에 대한 생각

내 블로그의 제목이 kdy1: The way I think 인만큼 앞으로는 내 생각을 더 자주 올리려고 한다. 한국 기준으로, 학벌은 사람을 볼 때 꽤나 유용한 지표이지만, 절대적이지는 않다. 경험적인 얘기일 뿐이지만, 성균관대학교 자퇴생으로서 느낀 것들이 몇 가지 있다. 대학까지 간 사람의 학벌은 학습 능력 x 성실함 에 대체로 비례한다. 그래서 의미가

Apr 3, 20261 min read

인간 지능에 대한 메모장

최종 업데이트: 2026/03/15 지능의 유전 현재 인류 기준으로, 고지능자는 고지능 유전자가 많이 겹친 사람이다. 지능의 유전엔 X 염색체가 매우 중요한 역할을 한다. 그리고 이게 남자와 여자의 지능 분포 차이를 만든다. 극상위권에 여자가 거의 없는 이유가 이것이다. 고지능 X 염색체가 여자한테서 발현되려면 2개가 있어야 한다. 이는 인간의 생

Mar 15, 20262 min read

Ai 코딩 팁 2 (한국어)

발표 자료: https://gamma.app/docs/AI--2a52e7tk3eb1ch1 AI 활용법 관련해서 간단하게 발표를 했다. 발표 자료 앞쪽은 전에 블로그에 올린 글이랑 같은 내용이다. 이 글에서는 기존 글에서 다루지 않은 내용들을 다루겠다. 에러 메시지 및 로깅 구체적 타입 및 스키마 활용 any 타입은 사람에게도 위험하지만, AI에게는 더 위험하다. 마찬가지로, JSON.parse처럼 아무 제약 없는 파싱 느슨한 인터페이스 ...

Jan 30, 20265 min read

kdy1: The way I think

233 posts