Skip to content

Commit ebad779

Browse files
committed
Finish part 1
1 parent 84ad33a commit ebad779

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

_posts/2025-02-12-Number_Theory_-_Part_1.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,39 @@ Here are some theorems on divisibility
6060
>3. if $a\vert b$ and $b\vert c$ then $a\vert c$ .
6161
{: .prompt-info}
6262

63+
Prove of theorem 1:
64+
65+
By the definition of divisibility, $b = a\times q, q\in \mathbb{Z}$ and $c = a \times k, k \in \mathbb{Z}$
66+
67+
$b+c=a\times q+a\times k$
68+
69+
$b+c=a(q+k)$
70+
71+
since $q,k \in \mathbb{Z}, (q+k)\in \mathbb{Z}$.
72+
73+
Meaning that we could rewrite as $b+c = a*j, j\in \mathbb{Z}$.
74+
75+
Hence, $a\vert(b+c)$.
76+
77+
Prove of theorem 2 and 3 are left as an exercise to the reader. You could prove it with similar method.
78+
79+
80+
## Modulo
81+
Recall the division theorem, $a=dq+r$ . When we calculate a mod d, we are calculating `r`.
82+
83+
For example, what is 3 mod 5?
84+
85+
$3 = 0\times 5 +3$, meaning that 3 mod 5 equals 3.
86+
87+
So what are the applications of modulo? A really common example used to demonstrate the applications of modulo is something i like to call the "what day is it " problem. Here is how it goes.
88+
89+
The first day is Monday. What day is the 123rd day?
90+
91+
We can solve this using modulo. We know that 1 week has 7 days, so we'll use that fact to solve the question. First we calculate $(123-1)$ mod 7. We subtract by 1 because Monday is the first day, if Monday is the, let's say 23rd day, then we subtract by 23.
92+
93+
$122$ mod 7 = 3, and 3 days after Monday is Thursday, meaning that the 123rd day is in Thursday!
94+
95+
96+
## Thank you
97+
Alright that marks the end of this post. Remember, you have to practice often to get good and quick with any number theory topics. Don't get discouraged if you find it difficult and keep on practicing. See you on part 2, where I'll discuss modular exponentiation, greatest common divisor, and lowest common multiple! Stay safe and have a nice day 😊
98+

0 commit comments

Comments
 (0)