No. of numbers relatively prime to a number

In summary: Yes, chisigma's formula is for distinct primes. Your formula is also correct, but it is for a different definition of the totient function. The formula you mentioned is usually used to calculate the totient function for a specific number, while chisigma's formula is a general formula for calculating the totient function for any number. The two formulas are equivalent when the number given is a product of distinct primes.
  • #1
mathmaniac1
158
0
Let E(x) denote the number of numbers relatively prime to x.
Please help me prove that the function E(x) is multiplicative,i.e.,
E(xy)=E(x).E(y)
 
Mathematics news on Phys.org
  • #2
Assuming you want to prove it using only basic facts of numbers and not from the alternate definitions of the totient or using the CRT...



Let's prove it for the case of two distinct primes first. Let $\varphi(p) = p - 1$ and $\varphi(q) = q - 1$. Now, choose any integer between $1$ and $pq - 1$. It can be either of four things:

1. a multiple of both $p$ and $q$
2. a multiple of $p$ but not of $q$
3. a multiple of $q$ but not of $p$
4. a multiple of neither

Now how many integers satisfy property $(1)$? Clearly there aren't any. The first one is $pq$ and it is too large.

How many satisfy property $(2)$? That is easy, the answer is $\frac{pq}{p} = q$ integers. (try doing it manually with small numbers to see why it works, this needs some justification but I am sure you can show that this is true)

How many satisfy property $(3)$? In the same way, $p$ integers.

Finally, what about $(4)$? It suffices to observe that every integer between $1$ and $pq - 1$ needs to fall into either one of those categories, so we must have $(1) + (2) + (3) + (4) = pq - 1$, that is, $(4) = (pq - 1) - (0 + p + q) = pq - (p + q) + 1 = (p - 1)(q - 1) = \varphi(p) \varphi(q)$. And $(4)$ contains $\varphi(pq)$ integers by definition.

Therefore, $\varphi(pq) = \varphi(p) \varphi(q)$ for distinct primes $p$, $q$.



Then extend this proof to distinct coprime integers (not just primes) using a similar reasoning, and finally prime powers. Can you follow?​
 
Last edited:
  • #3
mathmaniac said:
Let E(x) denote the number of numbers relatively prime to x.
Please help me prove that the function E(x) is multiplicative,i.e.,
E(xy)=E(x).E(y)

The phi function is multiplicative, i.e. given two distict numers a and b, is...

$$\varphi(a\ b) = \varphi(a)\ \varphi(b)\ (1)$$

... only if a and b are relatively prime or, in other words, is MCD (a,b)=1. The prove of that is easily derivable by the explicit expression...

$$ \varphi(n)= n\ \prod_{p|n} (1-\frac{1}{p})\ (2)$$

Kind regards

$\chi$ $\sigma$
 
  • #4
Bacterius said:
Then extend this proof to distinct coprime integers (not just primes) using a similar reasoning, and finally prime powers. Can you follow?

Yeah,I understand.
I also thought about that approach,but I was rather thinking of p^a and q^a or q^b and got lost somewhere.
Now I think I shouldn't have asked this...

chisigma said:
$$ \varphi(n)= n\ \prod_{p|n} (1-\frac{1}{p})\ (2)$$

What does that mean?
 
Last edited:
  • #5
mathmaniac said:
... what does that mean?...

Because is...

$$ \varphi(n) = n\ \prod_{p|n} (1-\frac{1}{p})\ (1)$$

... it will be...

$$\varphi(a)\ \varphi(b) = a\ \prod_{p|a} (1-\frac{1}{p})\ b\ \prod_{p|b} (1-\frac{1}{p})\ (2)$$

... and You have $\varphi(a)\ \varphi(b) = \varphi(a\ b)$ only if the all prime factors of a are not prime factors of b...

Kind regards

$\chi$ $\sigma$
 
  • #6
chisigma said:
$$ \varphi(n) = n\ \prod_{p|n} (1-\frac{1}{p})\ (1)$$

.

I mean what does the "pi-like" symbol means.I have seen it before,but I don't understand what it is.

Thanks
 
Last edited:
  • #7
mathmaniac said:
I mean what does the symbol "pi-like" symbol means.I have seen it before,but I don't understand what it is.

Thanks

It's like $\displaystyle \sum$ but a product instead. So for example:
$$\sum_{k = 1}^4 k^2 = 1^2 + 2^2 + 3^2 + 4^2$$
$$\prod_{k = 1}^4 k^2 = 1^2 \cdot 2^2 \cdot 3^2 \cdot 4^2$$
LaTeX code is \prod.

In chisigma's post the subscript $p \mid n$ under the product means "over all distinct primes $p$ which divide $n$". (the same notation can be used for sums)
 
  • #8
What is it called?
 
  • #9
  • #10
So what does this...
chisigma said:
$$ \varphi(n) = n\ \prod_{p|n} (1-\frac{1}{p})\ (1)$$

...mean?

...and this...

$$\varphi(a)\ \varphi(b) = a\ \prod_{p|a} (1-\frac{1}{p})\ b\ \prod_{p|b} (1-\frac{1}{p})\ (2)$$
 
  • #11
The first one means that if $n = p_1 p_2 \cdots p_k$ with $p_i$ a distinct prime, then:
$$\varphi(n) = n \left [ \left ( 1 - \frac{1}{p_1} \right ) \left ( 1 - \frac{1}{p_2} \right ) \cdots \left ( 1 - \frac{1}{p_k} \right ) \right ]$$
 
  • #12
Bacterius said:
The first one means that if $n = p_1 p_2 \cdots p_k$ with $p_i$ a distinct prime, then:
$$\varphi(n) = n \left [ \left ( 1 - \frac{1}{p_1} \right ) \left ( 1 - \frac{1}{p_2} \right ) \cdots \left ( 1 - \frac{1}{p_k} \right ) \right ]$$

hmm..,Thanks.

I asked because the formula I had in mind for $$\varphi(n)$$ was $${p_1}^{{a_1}-1}({p_1}-1).{p_2}^{{a_2}-1}({p_2}-1)...{p_k}^{{a_k}-1}({p_k}-1)$$
for $$n={p_1}^{a_1}.{p_2}^{a_2}...{p_k}^{a_k}$$
But chisigma's formula is about distinct primes,right?I think it cannot be modified for non-distinct primes too...because of the common factor.
 
Last edited:
  • #13
Yes, that is kind of the idea. The totient formula is only multiplicative for coprime integers (which do not have common factors). When you multiply two integers which have a common factor, the totient of the product isn't the product of the totients, so the question doesn't apply in this case. You want to (and can only) show the totient is multiplicative only for numbers which share no common prime factors (in general) ;)​
 

FAQ: No. of numbers relatively prime to a number

What does it mean for a number to be relatively prime to another number?

Two numbers are relatively prime if they do not have any common factors other than 1. In other words, their greatest common divisor (GCD) is 1.

How do you find the number of numbers relatively prime to a given number?

To find the number of numbers relatively prime to a given number, we use Euler's totient function (phi function). This function calculates the count of numbers less than a given number that are relatively prime to it.

What is the value of the phi function for prime numbers?

If the given number is a prime number, then the value of the phi function is equal to the given number minus 1. For example, phi(7) = 7-1 = 6.

Can the phi function be used to find the number of prime numbers less than a given number?

No, the phi function only calculates the count of numbers less than a given number that are relatively prime to it. It cannot be used to determine the number of prime numbers less than a given number.

What is the relationship between the phi function and the Euler's totient theorem?

The Euler's totient theorem states that for any positive integer n, the sum of the phi function values for all positive integers that are relatively prime to n is equal to n. In other words, phi(n) + phi(n-1) + ... + phi(1) = n. This relationship can be used to simplify the calculation of the phi function for large numbers.

Similar threads

Replies
5
Views
2K
Replies
3
Views
1K
Replies
3
Views
810
Replies
24
Views
2K
Replies
5
Views
1K
Replies
1
Views
761
Back
Top