mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-09-22, 23:35   #628
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Is the above the code for Charles's (grammatical error?) request?
#619? I think that was sm's attempt, but it's not correct.

I spell the genitive Charles' but you can spell it as you prefer.
CRGreathouse is offline   Reply With Quote
Old 2010-09-22, 23:37   #629
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

I think I might have already been answered here.. But is there any function which gives the percentage of whole numbers that have no prime divisors ≤ n?

If I've already been answered, link me to the post which answers this.

Is it (p(n)/(euler's totient(p(n)))? Where p(n) represents the nth primorial number.

Last fiddled with by 3.14159 on 2010-09-22 at 23:40
3.14159 is offline   Reply With Quote
Old 2010-09-22, 23:39   #630
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
I think I might have already been answered here.. But is there any function which gives the percentage of whole numbers that have no prime divisors ≤ n?

If I've already been answered, link me to the post which answers this.
http://mersenneforum.org/showthread.php?t=12022
CRGreathouse is offline   Reply With Quote
Old 2010-09-23, 00:15   #631
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
Maybe you can ask sm that question once he finishes the script!

32
sorry I don't know a formula with N,t,L and p for n
science_man_88 is offline   Reply With Quote
Old 2010-09-23, 00:49   #632
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Code:
 estimatePrimes(N,t,n,L)=my(lambda=(t/log(N))*(exp(Euler)*log(L)));(lambda^n*exp(-lambda))/n!;
god I'm an idiot !

so how to manipulate for a formula for n

with N,t,l and p I can get as far as plugging them into this. but I don't know how to get n from it.
science_man_88 is offline   Reply With Quote
Old 2010-09-23, 01:01   #633
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

reducing it to basic variables
Code:
p = ((t/log(N))*(exp(Euler)*log(L))^n*exp(-((t/log(N))*(exp(Euler)*log(L)))))/n!;
science_man_88 is offline   Reply With Quote
Old 2010-09-23, 01:02   #634
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
so how to manipulate for a formula for n

with N,t,l and p I can get as far as plugging them into this. but I don't know how to get n from it.
You're solving, I think, for t if we use the variables in your code.

Post the formulas and let's see how far you can get in solving it. I'll post half of the unsolved equation (the other half is the definition of lambda):

p=\frac{\lambda^0e^{-\lambda}}{0!}=0.01

This is the special case I asked about: n = 0 (finding 0 primes with probability 1%).

Last fiddled with by CRGreathouse on 2010-09-23 at 01:03
CRGreathouse is offline   Reply With Quote
Old 2010-09-23, 01:11   #635
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
You're solving, I think, for t if we use the variables in your code.

Post the formulas and let's see how far you can get in solving it. I'll post half of the unsolved equation (the other half is the definition of lambda):

p=\frac{\lambda^0e^{-\lambda}}{0!}=0.01

This is the special case I asked about: n = 0 (finding 0 primes with probability 1%).
funny I took lambda and replaced it in the equation with what it's value was told to be in other variables.
science_man_88 is offline   Reply With Quote
Old 2010-09-23, 01:28   #636
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

with the original form i can get as far as:

Code:
p/exp(-lambda)=lambda^n/n!
but that's obvious

why I said trouble with log is it can go to

Code:
log(p*n!/exp(-lambda))/log(lambda)=n
but then there's a n term in the log to get out of it.

Last fiddled with by science_man_88 on 2010-09-23 at 01:36
science_man_88 is offline   Reply With Quote
Old 2010-09-23, 01:58   #637
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
but then there's a n term in the log to get out of it.
No, there isn't. n is a constant equal to 0, and p is a constant equal to 0.01.
CRGreathouse is offline   Reply With Quote
Old 2010-09-23, 11:21   #638
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
No, there isn't. n is a constant equal to 0, and p is a constant equal to 0.01.
in your special case n is defined if i want to make a script it isn't.

in your special case p = e^{-lambda}\over 0

Last fiddled with by science_man_88 on 2010-09-23 at 11:23
science_man_88 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:24.


Fri Aug 6 22:24:50 UTC 2021 up 14 days, 16:53, 1 user, load averages: 3.27, 3.35, 3.22

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.