Inclusion-exclusion positive integers

  • Thread starter Thread starter changeofplans
  • Start date Start date
  • Tags Tags
    Integers Positive
changeofplans
Messages
5
Reaction score
0

Homework Statement



Suppose that p and q are prime numbers and that n = pq. Use the principle of inclusion-exclusion to find the number of positive integers not exceeding n that are relatively prime to n.

Homework Equations



Inclusion-Exclusion


The Attempt at a Solution



The way I see it, n = pq is contained in a set of all the prime numbers from 1 to pq, plus the multiples that are not prime. So:

n = pq - |pi U qi|

I'm not exactly sure where to go from here, though. Any help is appreciated.
 
Physics news on Phys.org
changeofplans said:

Homework Statement



Suppose that p and q are prime numbers and that n = pq. Use the principle of inclusion-exclusion to find the number of positive integers not exceeding n that are relatively prime to n.

Homework Equations



Inclusion-Exclusion


The Attempt at a Solution



The way I see it, n = pq is contained in a set of all the prime numbers from 1 to pq, plus the multiples that are not prime. So:

n = pq - |pi U qi|

I'm not exactly sure where to go from here, though. Any help is appreciated.
How many multiples of p are less than n ? ...
 
Would it be the floor of \frac{pq}{p}? And then the number of multiples of q less than n would be the floor of \frac{pq}{q}.

If that's the case, I think I see what I'm supposed to do; add up the primes in p, and add up the primes in q. Because they're not mutually exclusive, we then need to take out the primes shared by both p and q.

Any ideas on how to do that? Am I missing something?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top