SlideShare a Scribd company logo
Solution
Week 18 (2/13/03)
Distribution of primes
A necessary and sufficient condition for N to be prime is that N have no prime
factors less than or equal to
√
N. Therefore, under the assumption that a prime p
divides N with probability 1/p, the probability that N is prime is
P(N) = 1 −
1
2
1 −
1
3
1 −
1
5
1 −
1
7
· · · 1 −
1
p(
√
N)
, (1)
where p(
√
N) denotes the largest prime less than or equal to
√
N. Our strategy for
solving for P(N) will be to produce a differential equation for it.
Consider P(N + n), where n is an integer that satisfies
√
N n N. We have
P(N + n) = 1 −
1
2
1 −
1
3
1 −
1
5
1 −
1
7
· · · 1 −
1
p(
√
N+n)
, (2)
where p(
√
N+n) denotes the largest prime less than or equal to
√
N + n. Eq. (2) may
be written as
P(N + n) = P(N) 1 −
1
p1
1 −
1
p2
· · · 1 −
1
p(
√
N+n)
, (3)
where the pi are all the primes between
√
N and
√
N + n. Let there be k of these
primes. Since n N, we have
√
N + n/
√
N ≈ 1. Therefore, the pi are multiplica-
tively all roughly the same. To a good approximation, we may therefore set them
all equal to
√
N in eq. (3). This gives
P(N + n) ≈ P(N) 1 −
1
√
N
k
. (4)
We must now determine k. The number of numbers between
√
N and
√
N + n is
√
N + n −
√
N =
√
N 1 +
n
N
−
√
N
≈
√
N 1 +
n
2N
−
√
N
=
n
2
√
N
. (5)
Each of these numbers has roughly a P(
√
N) chance of being prime. Therefore,
there are approximately
k ≈
P(
√
N)n
2
√
N
(6)
prime numbers between
√
N and
√
N + n.
1
Since n N, we see that k
√
N. Therefore, we may approximate the
(1 − 1/
√
N)k term in eq. (4) by 1 − k/
√
N. Using the value of k from eq. (6), and
writing P(N + n) ≈ P(N) + P (N)n, we can rewrite eq. (4) as
P(N) + P (N)n ≈ P(N) 1 −
P(
√
N)n
2N
. (7)
We therefore arrive at the differential equation,
P (N) ≈ −
P(N)P(
√
N)
2N
. (8)
It is easy to check that the solution for P is
P(N) ≈
1
ln N
, (9)
as we wanted to show.
Remarks:
1. It turns out (under the assumption that a prime p divides N with probability 1/p)
that the probability that N has exactly n prime factors is
Pn(N) ≈
(ln ln N)n−1
(n − 1)! ln N
. (10)
Our original problem dealt with the case n = 1, and eq. (10) does indeed reduce to
eq. (9) when n = 1. Eq. (10) can be proved by induction on n, but the proof I have
is rather messy. If anyone has a clean proof, let me know.
2. We should check that P1(N) + P2(N) + P3(N) + · · · = 1. The sum must equal 1, of
course, because every number N has some number of divisors. Indeed (letting the
sum go to infinity, with negligible error),
∞
n=1
Pn(N) =
∞
n=1
(ln ln N)n−1
(n − 1)! ln N
=
1
ln N
∞
m=0
(ln ln N)m
m!
=
eln ln N
ln N
= 1. (11)
3. We can also calculate the expected number, n, of divisors of N. To do this, let’s
calculate n − 1 (which is a little cleaner), and then add 1.
n − 1 =
∞
n=1
(n − 1)Pn(N)
≈
∞
n=2
(ln ln N)n−1
(n − 2)! ln N
=
ln ln N
ln N
∞
k=0
(ln ln N)k
k!
= ln ln N. (12)
2
We can now add 1 to this to obtain n. However, all our previous results have been
calculated to leading order in N, so we have no right to now include an additive term
of 1. To leading order in N, we therefore have
n ≈ ln ln N. (13)
4. There is another way to calculate n, without using eq. (10). Consider a group of M
numbers, all approximately equal to N. The number of prime factors among all of
these M numbers (which equals Mn by definition) is given by1
Mn =
M
2
+
M
3
+
M
5
+
M
7
+ · · · . (14)
Since the primes in the denominators occur with frequency 1/ ln x, this sum may be
approximated by the integral,
Mn ≈ M
N
1
dx
x ln x
= M ln ln N. (15)
Hence, n ≈ ln ln N, in agreement with eq. (13).
5. For which n is Pn(N) maximum? Since Pn+1(N) = (ln ln N/n)Pn(N), we see that
increasing n increases Pn(N) if n < ln ln N. But increasing n decreases Pn(N) if
n > ln ln N. So the maximum Pn(N) is obtained when
n ≈ ln ln N. (16)
6. The probability distribution in eq. (10) is a Poisson distribution, for which the results
in the previous remarks are well known. A Poisson distribution is what arises in a
random process such as throwing a large number of balls into a group of boxes. For
the problem at hand, if we take M(ln ln N) primes and throw them down onto M
numbers (all approximately equal to N), then the distribution of primes (actually,
the distribution of primes minus 1) will be (roughly) correct.
1
We’ve counted multiple factors of the same prime only once. For example, we’ve counted 16 as
having only one prime factor. To leading order in N, this method of counting gives the same n as
assigning four prime factors to 16 gives (due to the fact that (1/pk
) converges for k ≥ 2).
3

More Related Content

What's hot

CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...
CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...
CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...
The Statistical and Applied Mathematical Sciences Institute
 
Stats chapter 8
Stats chapter 8Stats chapter 8
Stats chapter 8
Richard Ferreria
 
Hasse_s_Theorem (1)
Hasse_s_Theorem (1)Hasse_s_Theorem (1)
Hasse_s_Theorem (1)
Brandon Van Over
 
Gaussian Quadrature Formula
Gaussian Quadrature FormulaGaussian Quadrature Formula
Gaussian Quadrature Formula
Dhaval Shukla
 
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
The Statistical and Applied Mathematical Sciences Institute
 
Statistical Physics Assignment Help
Statistical Physics Assignment Help Statistical Physics Assignment Help
Statistical Physics Assignment Help
Statistics Assignment Help
 
Cubic root using excel
Cubic root using excelCubic root using excel
Cubic root using excel
Akshaya Mishra
 
Developing Expert Voices
Developing Expert VoicesDeveloping Expert Voices
Developing Expert Voices
suzanne
 
CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...
CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...
CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...
The Statistical and Applied Mathematical Sciences Institute
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
Tarun Gehlot
 
DSP System Assignment Help
DSP System Assignment HelpDSP System Assignment Help
DSP System Assignment Help
Matlab Assignment Experts
 
Mathematics assignment sample from assignmentsupport.com essay writing services
Mathematics assignment sample from assignmentsupport.com essay writing services Mathematics assignment sample from assignmentsupport.com essay writing services
Mathematics assignment sample from assignmentsupport.com essay writing services
https://writeessayuk.com/
 
8803-09-lec16.pdf
8803-09-lec16.pdf8803-09-lec16.pdf
8803-09-lec16.pdf
KSChidanandKumarJSSS
 
Trapezoidal rule
Trapezoidal ruleTrapezoidal rule
Trapezoidal rule
Dr. Jennifer Chang Wathall
 
Ch02
Ch02Ch02
Ch02
swavicky
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
Sunny Chauhan
 
Ch04
Ch04Ch04
Ch04
swavicky
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11
darwinrlo
 

What's hot (18)

CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...
CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...
CLIM Fall 2017 Course: Statistics for Climate Research, Detection & Attributi...
 
Stats chapter 8
Stats chapter 8Stats chapter 8
Stats chapter 8
 
Hasse_s_Theorem (1)
Hasse_s_Theorem (1)Hasse_s_Theorem (1)
Hasse_s_Theorem (1)
 
Gaussian Quadrature Formula
Gaussian Quadrature FormulaGaussian Quadrature Formula
Gaussian Quadrature Formula
 
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
 
Statistical Physics Assignment Help
Statistical Physics Assignment Help Statistical Physics Assignment Help
Statistical Physics Assignment Help
 
Cubic root using excel
Cubic root using excelCubic root using excel
Cubic root using excel
 
Developing Expert Voices
Developing Expert VoicesDeveloping Expert Voices
Developing Expert Voices
 
CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...
CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...
CLIM Fall 2017 Course: Statistics for Climate Research, Guest lecture: Data F...
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
DSP System Assignment Help
DSP System Assignment HelpDSP System Assignment Help
DSP System Assignment Help
 
Mathematics assignment sample from assignmentsupport.com essay writing services
Mathematics assignment sample from assignmentsupport.com essay writing services Mathematics assignment sample from assignmentsupport.com essay writing services
Mathematics assignment sample from assignmentsupport.com essay writing services
 
8803-09-lec16.pdf
8803-09-lec16.pdf8803-09-lec16.pdf
8803-09-lec16.pdf
 
Trapezoidal rule
Trapezoidal ruleTrapezoidal rule
Trapezoidal rule
 
Ch02
Ch02Ch02
Ch02
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Ch04
Ch04Ch04
Ch04
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11
 

Viewers also liked

Glosario ntics
Glosario nticsGlosario ntics
Glosario ntics
Erika Jaramillo Puga
 
Sol12
Sol12Sol12
Sol11
Sol11Sol11
Cert11693617615
Cert11693617615Cert11693617615
Cert11693617615
David Franks
 
Sol17
Sol17Sol17
Sol10
Sol10Sol10
island presentation page
island presentation pageisland presentation page
island presentation page
Calin Manuel
 
Sondeo empresarial Castilla y León Económica
Sondeo empresarial Castilla y León EconómicaSondeo empresarial Castilla y León Económica
Sondeo empresarial Castilla y León Económica
Castilla y León Económica
 
Barangolások a baltikumban észtország palmse birtok
Barangolások a baltikumban észtország palmse birtokBarangolások a baltikumban észtország palmse birtok
Barangolások a baltikumban észtország palmse birtok
Zoltán Gerő
 
Sol7
Sol7Sol7
Kehidupan politik
Kehidupan politikKehidupan politik
Kehidupan politik
Muhammad Purnama
 
Sol16
Sol16Sol16
Sol14
Sol14Sol14
Sol8
Sol8Sol8
Sol20
Sol20Sol20
Sol15
Sol15Sol15
Sol21
Sol21Sol21
Sol9
Sol9Sol9
Osn 2006 eksperimen (soal)
Osn 2006 eksperimen (soal)Osn 2006 eksperimen (soal)
Osn 2006 eksperimen (soal)
eli priyatna laidan
 
Sol13
Sol13Sol13

Viewers also liked (20)

Glosario ntics
Glosario nticsGlosario ntics
Glosario ntics
 
Sol12
Sol12Sol12
Sol12
 
Sol11
Sol11Sol11
Sol11
 
Cert11693617615
Cert11693617615Cert11693617615
Cert11693617615
 
Sol17
Sol17Sol17
Sol17
 
Sol10
Sol10Sol10
Sol10
 
island presentation page
island presentation pageisland presentation page
island presentation page
 
Sondeo empresarial Castilla y León Económica
Sondeo empresarial Castilla y León EconómicaSondeo empresarial Castilla y León Económica
Sondeo empresarial Castilla y León Económica
 
Barangolások a baltikumban észtország palmse birtok
Barangolások a baltikumban észtország palmse birtokBarangolások a baltikumban észtország palmse birtok
Barangolások a baltikumban észtország palmse birtok
 
Sol7
Sol7Sol7
Sol7
 
Kehidupan politik
Kehidupan politikKehidupan politik
Kehidupan politik
 
Sol16
Sol16Sol16
Sol16
 
Sol14
Sol14Sol14
Sol14
 
Sol8
Sol8Sol8
Sol8
 
Sol20
Sol20Sol20
Sol20
 
Sol15
Sol15Sol15
Sol15
 
Sol21
Sol21Sol21
Sol21
 
Sol9
Sol9Sol9
Sol9
 
Osn 2006 eksperimen (soal)
Osn 2006 eksperimen (soal)Osn 2006 eksperimen (soal)
Osn 2006 eksperimen (soal)
 
Sol13
Sol13Sol13
Sol13
 

Similar to Sol18

Sol60
Sol60Sol60
Sol60
Sol60Sol60
Sol74
Sol74Sol74
Sol74
Sol74Sol74
Sol38
Sol38Sol38
Sol38
Sol38Sol38
Sol68
Sol68Sol68
Sol16
Sol16Sol16
Sol44
Sol44Sol44
Sol44
Sol44Sol44
Sequences
SequencesSequences
Sequences
Abdur Rehman
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
Kriti Varshney
 
Sol80
Sol80Sol80
Sol80
Sol80Sol80
Olimpiade matematika di kanada 2018
Olimpiade matematika di kanada 2018Olimpiade matematika di kanada 2018
Olimpiade matematika di kanada 2018
radar radius
 
Per4 induction
Per4 inductionPer4 induction
Per4 induction
Evert Sandye Taasiringan
 
stochastic processes assignment help
stochastic processes assignment helpstochastic processes assignment help
stochastic processes assignment help
Statistics Homework Helper
 
Modeling with Recurrence Relations
Modeling with Recurrence RelationsModeling with Recurrence Relations
Modeling with Recurrence Relations
Devanshu Taneja
 
Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...
Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...
Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...
Aladdinew
 
planes and distances
planes and distancesplanes and distances
planes and distances
Elias Dinsa
 

Similar to Sol18 (20)

Sol60
Sol60Sol60
Sol60
 
Sol60
Sol60Sol60
Sol60
 
Sol74
Sol74Sol74
Sol74
 
Sol74
Sol74Sol74
Sol74
 
Sol38
Sol38Sol38
Sol38
 
Sol38
Sol38Sol38
Sol38
 
Sol68
Sol68Sol68
Sol68
 
Sol16
Sol16Sol16
Sol16
 
Sol44
Sol44Sol44
Sol44
 
Sol44
Sol44Sol44
Sol44
 
Sequences
SequencesSequences
Sequences
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Sol80
Sol80Sol80
Sol80
 
Sol80
Sol80Sol80
Sol80
 
Olimpiade matematika di kanada 2018
Olimpiade matematika di kanada 2018Olimpiade matematika di kanada 2018
Olimpiade matematika di kanada 2018
 
Per4 induction
Per4 inductionPer4 induction
Per4 induction
 
stochastic processes assignment help
stochastic processes assignment helpstochastic processes assignment help
stochastic processes assignment help
 
Modeling with Recurrence Relations
Modeling with Recurrence RelationsModeling with Recurrence Relations
Modeling with Recurrence Relations
 
Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...
Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...
Solutions Manual for An Introduction To Abstract Algebra With Notes To The Fu...
 
planes and distances
planes and distancesplanes and distances
planes and distances
 

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
 

Recently uploaded

Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
Techgropse Pvt.Ltd.
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 

Recently uploaded (20)

Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 

Sol18

  • 1. Solution Week 18 (2/13/03) Distribution of primes A necessary and sufficient condition for N to be prime is that N have no prime factors less than or equal to √ N. Therefore, under the assumption that a prime p divides N with probability 1/p, the probability that N is prime is P(N) = 1 − 1 2 1 − 1 3 1 − 1 5 1 − 1 7 · · · 1 − 1 p( √ N) , (1) where p( √ N) denotes the largest prime less than or equal to √ N. Our strategy for solving for P(N) will be to produce a differential equation for it. Consider P(N + n), where n is an integer that satisfies √ N n N. We have P(N + n) = 1 − 1 2 1 − 1 3 1 − 1 5 1 − 1 7 · · · 1 − 1 p( √ N+n) , (2) where p( √ N+n) denotes the largest prime less than or equal to √ N + n. Eq. (2) may be written as P(N + n) = P(N) 1 − 1 p1 1 − 1 p2 · · · 1 − 1 p( √ N+n) , (3) where the pi are all the primes between √ N and √ N + n. Let there be k of these primes. Since n N, we have √ N + n/ √ N ≈ 1. Therefore, the pi are multiplica- tively all roughly the same. To a good approximation, we may therefore set them all equal to √ N in eq. (3). This gives P(N + n) ≈ P(N) 1 − 1 √ N k . (4) We must now determine k. The number of numbers between √ N and √ N + n is √ N + n − √ N = √ N 1 + n N − √ N ≈ √ N 1 + n 2N − √ N = n 2 √ N . (5) Each of these numbers has roughly a P( √ N) chance of being prime. Therefore, there are approximately k ≈ P( √ N)n 2 √ N (6) prime numbers between √ N and √ N + n. 1
  • 2. Since n N, we see that k √ N. Therefore, we may approximate the (1 − 1/ √ N)k term in eq. (4) by 1 − k/ √ N. Using the value of k from eq. (6), and writing P(N + n) ≈ P(N) + P (N)n, we can rewrite eq. (4) as P(N) + P (N)n ≈ P(N) 1 − P( √ N)n 2N . (7) We therefore arrive at the differential equation, P (N) ≈ − P(N)P( √ N) 2N . (8) It is easy to check that the solution for P is P(N) ≈ 1 ln N , (9) as we wanted to show. Remarks: 1. It turns out (under the assumption that a prime p divides N with probability 1/p) that the probability that N has exactly n prime factors is Pn(N) ≈ (ln ln N)n−1 (n − 1)! ln N . (10) Our original problem dealt with the case n = 1, and eq. (10) does indeed reduce to eq. (9) when n = 1. Eq. (10) can be proved by induction on n, but the proof I have is rather messy. If anyone has a clean proof, let me know. 2. We should check that P1(N) + P2(N) + P3(N) + · · · = 1. The sum must equal 1, of course, because every number N has some number of divisors. Indeed (letting the sum go to infinity, with negligible error), ∞ n=1 Pn(N) = ∞ n=1 (ln ln N)n−1 (n − 1)! ln N = 1 ln N ∞ m=0 (ln ln N)m m! = eln ln N ln N = 1. (11) 3. We can also calculate the expected number, n, of divisors of N. To do this, let’s calculate n − 1 (which is a little cleaner), and then add 1. n − 1 = ∞ n=1 (n − 1)Pn(N) ≈ ∞ n=2 (ln ln N)n−1 (n − 2)! ln N = ln ln N ln N ∞ k=0 (ln ln N)k k! = ln ln N. (12) 2
  • 3. We can now add 1 to this to obtain n. However, all our previous results have been calculated to leading order in N, so we have no right to now include an additive term of 1. To leading order in N, we therefore have n ≈ ln ln N. (13) 4. There is another way to calculate n, without using eq. (10). Consider a group of M numbers, all approximately equal to N. The number of prime factors among all of these M numbers (which equals Mn by definition) is given by1 Mn = M 2 + M 3 + M 5 + M 7 + · · · . (14) Since the primes in the denominators occur with frequency 1/ ln x, this sum may be approximated by the integral, Mn ≈ M N 1 dx x ln x = M ln ln N. (15) Hence, n ≈ ln ln N, in agreement with eq. (13). 5. For which n is Pn(N) maximum? Since Pn+1(N) = (ln ln N/n)Pn(N), we see that increasing n increases Pn(N) if n < ln ln N. But increasing n decreases Pn(N) if n > ln ln N. So the maximum Pn(N) is obtained when n ≈ ln ln N. (16) 6. The probability distribution in eq. (10) is a Poisson distribution, for which the results in the previous remarks are well known. A Poisson distribution is what arises in a random process such as throwing a large number of balls into a group of boxes. For the problem at hand, if we take M(ln ln N) primes and throw them down onto M numbers (all approximately equal to N), then the distribution of primes (actually, the distribution of primes minus 1) will be (roughly) correct. 1 We’ve counted multiple factors of the same prime only once. For example, we’ve counted 16 as having only one prime factor. To leading order in N, this method of counting gives the same n as assigning four prime factors to 16 gives (due to the fact that (1/pk ) converges for k ≥ 2). 3