mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-09-22, 00:28   #573
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
http://upload.wikimedia.org/math/5/5...95030ecf64.png

if this is what you mean with n replacing k I'll see what I can do.
I can't remember what Pari uses for 2.71818 etc.
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 00:33   #574
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

Easy. That is exp(1). Also; 2.718281828459045..

Last fiddled with by 3.14159 on 2010-09-22 at 00:34
3.14159 is offline   Reply With Quote
Old 2010-09-22, 00:46   #575
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

thanks pi
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 00:50   #576
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

poisson(n,lambda) = (lambda^n*exp(-lambda))/n! best I could understand the first.
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 01:36   #577
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
poisson(n,lambda) = (lambda^n*exp(-lambda))/n! best I could understand the first.
Good. Can you do the second? It's almost exactly like the first.
CRGreathouse is offline   Reply With Quote
Old 2010-09-22, 02:35   #578
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Progress:

Code:
22:32:00 35667 k's remaining. p=36863449641229 divides k=1218543
3.14159 is offline   Reply With Quote
Old 2010-09-22, 11:18   #579
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
As a first step, can you write a program that takes lambda and n, and returns the probability that exactly n Poisson events occur when lambda are expected to occur?

As a second, can you write a program that takes N, t, and n and returns the probability that out of t random numbers near N, exactly n are prime? Treat this as a Poisson process where each number has probability 1/log(N) to be prime.

well I gather that n is k and t is lambda if placed in the equation so the hard part on the second I think is making sure all t numbers generated are "near" without knowing what near is defined as. I found Pari's number generator and I can plug in something like 1.5*N as covering a sufficient range but that may be too large.
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 11:54   #580
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Code:
N=random(675);if(N>.5*450,print(N))
this works to bound it greater than .5 the original value: so I think I'm nearly there just got to put it all together in a way to make sense.
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 11:59   #581
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

I'm looking at this wrong lol as i don't know the formula for near a given N I'll double check though.
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 13:02   #582
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
well I gather that n is k and t is lambda if placed in the equation so the hard part on the second I think is making sure all t numbers generated are "near" without knowing what near is defined as. I found Pari's number generator and I can plug in something like 1.5*N as covering a sufficient range but that may be too large.
"Near N" means that the probability that each is prime is 1/log N. You expect a total of t/log(N) primes. Now apply the Poisson distribution.
CRGreathouse is offline   Reply With Quote
Old 2010-09-22, 13:04   #583
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I'm looking at this wrong lol as i don't know the formula for near a given N I'll double check though.
http://en.wikipedia.org/wiki/Prime_number_theorem
CRGreathouse is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime posting thread, part 2. (With a catch.) 3.14159 Miscellaneous Math 55 2010-11-19 23:55
Tiny range request .... 555.1M petrw1 LMH > 100M 1 2010-07-13 15:35
Other primes thread nuggetprime No Prime Left Behind 32 2009-10-21 21:48
Error: tiny factoring failed 10metreh Msieve 26 2009-03-08 23:28
Tiny error on nfsnet pages. antiroach NFSNET Discussion 1 2003-07-08 00:27

All times are UTC. The time now is 22:39.


Fri Aug 6 22:39:36 UTC 2021 up 14 days, 17:08, 1 user, load averages: 4.56, 3.97, 3.60

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.