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.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3831 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | gamegame | 3386 |
10 | ksun48 | 3373 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
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.
Name |
---|
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.