SlideShare a Scribd company logo
Solution
Week 44 (7/14/03)
Relatively prime numbers
The probability that two random numbers both have a given prime p as a factor is
1/p2. The probability that they do not have p as a common factor is thus 1 − 1/p2.
Therefore, the probability that two numbers have no common prime factors is
P = (1 − 1/22
)(1 − 1/32
)(1 − 1/52
)(1 − 1/72
)(1 − 1/112
) · · · . (1)
Using
1
1 − x
= 1 + x + x2
+ x3
+ · · · , (2)
this can be rewritten as
P = (1 + 1/22
+ 1/24
+ · · ·)(1 + 1/32
+ 1/34
+ · · ·) · · ·
−1
. (3)
By the Unique Factorization Theorem (every positive integer is expressible as the
product of primes in exactly one way), we see that the previous expression is equiv-
alent to
P = (1 + 1/22
+ 1/32
+ 1/42
+ 1/52
+ 1/62
+ · · ·)−1
. (4)
And since the sum of the squares of the reciprocals of all of the positive integers is
known to be π2/6, the desired probability is P = 6/π2 ≈ 61%.
Remarks:
1. The probability that n random numbers all have a given prime p as a factor is 1/pn
.
So the probability that they do not all have p as a common factor is 1 − 1/pn
. In
exactly the same manner as above, we find that the probability, Pn, that n numbers
have no common factor among all of them is
Pn = (1 + 1/2n
+ 1/3n
+ 1/4n
+ 1/5n
+ 1/6n
+ · · ·)−1
. (5)
This is, by definition, the Riemann zeta function, ζ(n). It can be calculated exactly
for even values of n, but only numerically for odd values. For the case of n = 4, we
can use the known value ζ(4) = π4
/90 to see that the probability that four random
numbers do not all have a common factor is P4 = 90/π4
≈ 92%.
2. We can also perform the somewhat silly exercise of applying this result to the case
of n = 1. The question then becomes: What is the probability, P1, that a randomly
chosen positive integer does not have a factor? Well, 1 is the only positive integer
without any factors, so the probability is 1/∞ = 0. And indeed,
P1 = (1 − 1/2)(1 − 1/3)(1 − 1/5)(1 − 1/7) . . .
= (1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6 · · ·)−1
= 1/∞, (6)
because the sum of the reciprocals of all of the positive integers diverges.
1
3. Let φ(n) equal the number of integers less than n that are relatively prime to n. Then
φ(n)/n equals the probability that a randomly chosen integer is relatively prime to n.
(This is true because any integer is relatively prime to n if and only if its remainder,
when divided by n, is relatively prime to n.) The result of our original problem
therefore tells us that the average value of φ(n)/n is 6/π2
.
4. To be precise about what we mean by probabilities in this problem, we really should
word the question as: Let N be a very large integer. Pick two random integers less
than or equal to N. What is the probability that these numbers are relatively prime,
in the limit where N goes to infinity?
The solution would then be slightly modified, in that the relevant primes p would be
cut off at N, and “edge effects” due to the finite size of N would have to be considered.
It is fairly easy to see that the answer obtained in this limit is the same as the answer
obtained above.
2

More Related Content

Viewers also liked

Las tecnologias educativas UFM-PAPANTLA-CYS.
Las tecnologias educativas UFM-PAPANTLA-CYS.Las tecnologias educativas UFM-PAPANTLA-CYS.
Las tecnologias educativas UFM-PAPANTLA-CYS.
solyqui
 
Inspired spaces introduction to services
Inspired spaces introduction to servicesInspired spaces introduction to services
Inspired spaces introduction to services
The Designer Chicks
 
Intellectual crisis of thought in contemporary era and how to overcome it
Intellectual crisis of thought in contemporary era and how to overcome itIntellectual crisis of thought in contemporary era and how to overcome it
Intellectual crisis of thought in contemporary era and how to overcome it
Fernando Alcoforado
 
Benefits Of Durood Shareef
Benefits Of Durood ShareefBenefits Of Durood Shareef
Benefits Of Durood Shareef
Ahmed@3604
 
Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...
Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...
Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...
Camins Serret - Ilercavonia – Centro Cultural y Turístico
 
The Reserve Officers’ Training Corps
The Reserve Officers’ Training CorpsThe Reserve Officers’ Training Corps
The Reserve Officers’ Training Corps
Themie Karavites
 
Sol50
Sol50Sol50
Sol26
Sol26Sol26
Sol37
Sol37Sol37
SISTEMAS DE INFORMACION GERENCIAL
SISTEMAS DE INFORMACION GERENCIALSISTEMAS DE INFORMACION GERENCIAL
SISTEMAS DE INFORMACION GERENCIAL
carlosmeza1409
 
Paper aeroplane exercise
Paper aeroplane exercisePaper aeroplane exercise
Paper aeroplane exercise
Jasmin Hodge
 
Sol47
Sol47Sol47
Have we misunderstood microcredit?
Have we misunderstood microcredit?Have we misunderstood microcredit?
Have we misunderstood microcredit?
Ana Carolina Mendoza Montilva
 
Sol51
Sol51Sol51
Herramientas web 2.0. Mi PLE
Herramientas web 2.0. Mi PLEHerramientas web 2.0. Mi PLE
Herramientas web 2.0. Mi PLE
Mónica Vallecillos
 
Sol41
Sol41Sol41
Evolution of captcha technologies
Evolution of captcha technologiesEvolution of captcha technologies
Evolution of captcha technologies
Monika Keerthi
 
Sol53
Sol53Sol53
galassie, stelle, universo
galassie, stelle, universogalassie, stelle, universo
galassie, stelle, universo
aurora di girolamo
 

Viewers also liked (20)

Las tecnologias educativas UFM-PAPANTLA-CYS.
Las tecnologias educativas UFM-PAPANTLA-CYS.Las tecnologias educativas UFM-PAPANTLA-CYS.
Las tecnologias educativas UFM-PAPANTLA-CYS.
 
Inspired spaces introduction to services
Inspired spaces introduction to servicesInspired spaces introduction to services
Inspired spaces introduction to services
 
Intellectual crisis of thought in contemporary era and how to overcome it
Intellectual crisis of thought in contemporary era and how to overcome itIntellectual crisis of thought in contemporary era and how to overcome it
Intellectual crisis of thought in contemporary era and how to overcome it
 
Benefits Of Durood Shareef
Benefits Of Durood ShareefBenefits Of Durood Shareef
Benefits Of Durood Shareef
 
Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...
Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...
Presentem en primícia #lafidelssecrets @Ediciones_B de Miquel Esteve al #serr...
 
The Reserve Officers’ Training Corps
The Reserve Officers’ Training CorpsThe Reserve Officers’ Training Corps
The Reserve Officers’ Training Corps
 
Sol50
Sol50Sol50
Sol50
 
Sol26
Sol26Sol26
Sol26
 
Sol37
Sol37Sol37
Sol37
 
SISTEMAS DE INFORMACION GERENCIAL
SISTEMAS DE INFORMACION GERENCIALSISTEMAS DE INFORMACION GERENCIAL
SISTEMAS DE INFORMACION GERENCIAL
 
Paper aeroplane exercise
Paper aeroplane exercisePaper aeroplane exercise
Paper aeroplane exercise
 
Sol47
Sol47Sol47
Sol47
 
Have we misunderstood microcredit?
Have we misunderstood microcredit?Have we misunderstood microcredit?
Have we misunderstood microcredit?
 
Sol51
Sol51Sol51
Sol51
 
Documento
DocumentoDocumento
Documento
 
Herramientas web 2.0. Mi PLE
Herramientas web 2.0. Mi PLEHerramientas web 2.0. Mi PLE
Herramientas web 2.0. Mi PLE
 
Sol41
Sol41Sol41
Sol41
 
Evolution of captcha technologies
Evolution of captcha technologiesEvolution of captcha technologies
Evolution of captcha technologies
 
Sol53
Sol53Sol53
Sol53
 
galassie, stelle, universo
galassie, stelle, universogalassie, stelle, universo
galassie, stelle, universo
 

Similar to Sol44

Sol74
Sol74Sol74
Sol74
Sol74Sol74
Sol18
Sol18Sol18
Sol18
Sol18Sol18
Normal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionNormal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson Distribution
Q Dauh Q Alam
 
Sol46
Sol46Sol46
Sol46
Sol46Sol46
Ch08
Ch08Ch08
Sequences 01
Sequences 01Sequences 01
Sequences 01
kmfob
 
Raices primitivas
Raices primitivasRaices primitivas
Raices primitivas
Rolando Vega
 
Moment generating function & bernoulli experiment
Moment generating function & bernoulli experimentMoment generating function & bernoulli experiment
Moment generating function & bernoulli experiment
Ghanashyam Prajapati
 
Sol38
Sol38Sol38
Sol38
Sol38Sol38
Categorical data analysis full lecture note PPT.pptx
Categorical data analysis full lecture note  PPT.pptxCategorical data analysis full lecture note  PPT.pptx
Categorical data analysis full lecture note PPT.pptx
MinilikDerseh1
 
Ijetr011954
Ijetr011954Ijetr011954
Ijetr011954
ER Publication.org
 
Sol80
Sol80Sol80
Sol80
Sol80Sol80
Combinations and permutations
Combinations and permutationsCombinations and permutations
Combinations and permutations
indu psthakur
 
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxChapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
tiffanyd4
 
BINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptx
BINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptxBINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptx
BINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptx
letbestrong
 

Similar to Sol44 (20)

Sol74
Sol74Sol74
Sol74
 
Sol74
Sol74Sol74
Sol74
 
Sol18
Sol18Sol18
Sol18
 
Sol18
Sol18Sol18
Sol18
 
Normal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionNormal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson Distribution
 
Sol46
Sol46Sol46
Sol46
 
Sol46
Sol46Sol46
Sol46
 
Ch08
Ch08Ch08
Ch08
 
Sequences 01
Sequences 01Sequences 01
Sequences 01
 
Raices primitivas
Raices primitivasRaices primitivas
Raices primitivas
 
Moment generating function & bernoulli experiment
Moment generating function & bernoulli experimentMoment generating function & bernoulli experiment
Moment generating function & bernoulli experiment
 
Sol38
Sol38Sol38
Sol38
 
Sol38
Sol38Sol38
Sol38
 
Categorical data analysis full lecture note PPT.pptx
Categorical data analysis full lecture note  PPT.pptxCategorical data analysis full lecture note  PPT.pptx
Categorical data analysis full lecture note PPT.pptx
 
Ijetr011954
Ijetr011954Ijetr011954
Ijetr011954
 
Sol80
Sol80Sol80
Sol80
 
Sol80
Sol80Sol80
Sol80
 
Combinations and permutations
Combinations and permutationsCombinations and permutations
Combinations and permutations
 
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxChapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
 
BINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptx
BINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptxBINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptx
BINOMIAL ,POISSON AND NORMAL DISTRIBUTION.pptx
 

More from eli priyatna laidan

Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2
eli priyatna laidan
 
Soal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.netSoal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.net
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1
eli priyatna laidan
 
Soal up akmal
Soal up akmalSoal up akmal
Soal up akmal
eli priyatna laidan
 
Soal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannyaSoal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannya
eli priyatna laidan
 
Soal tes wawasan kebangsaan
Soal tes wawasan kebangsaanSoal tes wawasan kebangsaan
Soal tes wawasan kebangsaan
eli priyatna laidan
 
Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)
eli priyatna laidan
 
Soal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikSoal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didik
eli priyatna laidan
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017
eli priyatna laidan
 
Rekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogiRekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogi
eli priyatna laidan
 
Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2
eli priyatna laidan
 
Bank soal ppg
Bank soal ppgBank soal ppg
Bank soal ppg
eli priyatna laidan
 
Soal cpns-paket-17
Soal cpns-paket-17Soal cpns-paket-17
Soal cpns-paket-17
eli priyatna laidan
 
Soal cpns-paket-14
Soal cpns-paket-14Soal cpns-paket-14
Soal cpns-paket-14
eli priyatna laidan
 
Soal cpns-paket-13
Soal cpns-paket-13Soal cpns-paket-13
Soal cpns-paket-13
eli priyatna laidan
 
Soal cpns-paket-12
Soal cpns-paket-12Soal cpns-paket-12
Soal cpns-paket-12
eli priyatna laidan
 

More from eli priyatna laidan (20)

Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2
 
Soal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.netSoal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.net
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1
 
Soal up akmal
Soal up akmalSoal up akmal
Soal up akmal
 
Soal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannyaSoal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannya
 
Soal tes wawasan kebangsaan
Soal tes wawasan kebangsaanSoal tes wawasan kebangsaan
Soal tes wawasan kebangsaan
 
Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)
 
Soal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikSoal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didik
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017
 
Rekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogiRekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogi
 
Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2
 
Bank soal ppg
Bank soal ppgBank soal ppg
Bank soal ppg
 
Soal cpns-paket-17
Soal cpns-paket-17Soal cpns-paket-17
Soal cpns-paket-17
 
Soal cpns-paket-14
Soal cpns-paket-14Soal cpns-paket-14
Soal cpns-paket-14
 
Soal cpns-paket-13
Soal cpns-paket-13Soal cpns-paket-13
Soal cpns-paket-13
 
Soal cpns-paket-12
Soal cpns-paket-12Soal cpns-paket-12
Soal cpns-paket-12
 

Sol44

  • 1. Solution Week 44 (7/14/03) Relatively prime numbers The probability that two random numbers both have a given prime p as a factor is 1/p2. The probability that they do not have p as a common factor is thus 1 − 1/p2. Therefore, the probability that two numbers have no common prime factors is P = (1 − 1/22 )(1 − 1/32 )(1 − 1/52 )(1 − 1/72 )(1 − 1/112 ) · · · . (1) Using 1 1 − x = 1 + x + x2 + x3 + · · · , (2) this can be rewritten as P = (1 + 1/22 + 1/24 + · · ·)(1 + 1/32 + 1/34 + · · ·) · · · −1 . (3) By the Unique Factorization Theorem (every positive integer is expressible as the product of primes in exactly one way), we see that the previous expression is equiv- alent to P = (1 + 1/22 + 1/32 + 1/42 + 1/52 + 1/62 + · · ·)−1 . (4) And since the sum of the squares of the reciprocals of all of the positive integers is known to be π2/6, the desired probability is P = 6/π2 ≈ 61%. Remarks: 1. The probability that n random numbers all have a given prime p as a factor is 1/pn . So the probability that they do not all have p as a common factor is 1 − 1/pn . In exactly the same manner as above, we find that the probability, Pn, that n numbers have no common factor among all of them is Pn = (1 + 1/2n + 1/3n + 1/4n + 1/5n + 1/6n + · · ·)−1 . (5) This is, by definition, the Riemann zeta function, ζ(n). It can be calculated exactly for even values of n, but only numerically for odd values. For the case of n = 4, we can use the known value ζ(4) = π4 /90 to see that the probability that four random numbers do not all have a common factor is P4 = 90/π4 ≈ 92%. 2. We can also perform the somewhat silly exercise of applying this result to the case of n = 1. The question then becomes: What is the probability, P1, that a randomly chosen positive integer does not have a factor? Well, 1 is the only positive integer without any factors, so the probability is 1/∞ = 0. And indeed, P1 = (1 − 1/2)(1 − 1/3)(1 − 1/5)(1 − 1/7) . . . = (1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6 · · ·)−1 = 1/∞, (6) because the sum of the reciprocals of all of the positive integers diverges. 1
  • 2. 3. Let φ(n) equal the number of integers less than n that are relatively prime to n. Then φ(n)/n equals the probability that a randomly chosen integer is relatively prime to n. (This is true because any integer is relatively prime to n if and only if its remainder, when divided by n, is relatively prime to n.) The result of our original problem therefore tells us that the average value of φ(n)/n is 6/π2 . 4. To be precise about what we mean by probabilities in this problem, we really should word the question as: Let N be a very large integer. Pick two random integers less than or equal to N. What is the probability that these numbers are relatively prime, in the limit where N goes to infinity? The solution would then be slightly modified, in that the relevant primes p would be cut off at N, and “edge effects” due to the finite size of N would have to be considered. It is fairly easy to see that the answer obtained in this limit is the same as the answer obtained above. 2