n is a number and n=(p1^c) * (p2^d).Here p1 and p2 are prime. Let a=p1^c and b=p2^d.
gcd(i,n)= gcd(i,a) * gcd(i,b)
How to prove this? Any explanation? Thanks in advance.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | djm03178 | 152 |
n is a number and n=(p1^c) * (p2^d).Here p1 and p2 are prime. Let a=p1^c and b=p2^d.
gcd(i,n)= gcd(i,a) * gcd(i,b)
How to prove this? Any explanation? Thanks in advance.
Название |
---|
Each divisor of n looks like p1i × p2j. The sum on the right is
(φ(p1a) + p1 + p12 + p13 + ... + p1a) × (φ(p2b) + p2 + p22 + p23 + ... + p2b)
Using CRT you can make a bijection between terms on the right and and i on the left. For example, there are φ(n) values for which gcd(i, n) = 1, and there is φ(p1a)φ(p2b) = φ(n) on the right. Also, you can take φ(p1a) values which are coprime to p and then you can take only one of p2, p22, ... to make i for which gcd(i, n) = p2, or p22, etc.
Please explain briefy. I am too weak in math.