mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-08-30, 23:49   #1222
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
If there is a k < bb restriction, b ≥ 1.
That was my third suggestion.

Quote:
Originally Posted by 3.14159 View Post
If there's no k < bb restriction, b > 1.
That would be a fourth way to do it. It has relative density ≈ 0.528 in the primes.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:49   #1223
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
If there is no k < bb restriction, and b = 1 is allowed, it is precisely the same as A000040.

I will begin work on the sequence with the k < bb restriction.
sorry CRG I see what he means today lol k*2^1+1 can give all primes.
science_man_88 is offline   Reply With Quote
Old 2010-08-30, 23:51   #1224
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Also: Is there a command or script that allows printing in numerical order?
3.14159 is offline   Reply With Quote
Old 2010-08-30, 23:51   #1225
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
If there is no k < bb restriction, and b = 1 is allowed, it is precisely the same as A000040.
Neither of my first two sequences restrict k to be less than b^b and both allow b = 1, but neither is A000040. I invite you to re-read #1209.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:51   #1226
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Also: Is there a command or script that allows printing in numerical order?
maybe vecsort could help you in pari but I'm not sure how to use it.
science_man_88 is offline   Reply With Quote
Old 2010-08-30, 23:52   #1227
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Also: Is there a command or script that allows printing in numerical order?
If you put the numbers in a vector, you can use vecsort to order them. vecsort(v) returns a sorted version of v, while vecsort(v,,8) returns a sorted version of v with the duplicates removed.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:55   #1228
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Cool

Quote:
Originally Posted by science_man_88 View Post
maybe vecsort could help you in pari but I'm not sure how to use it.
Bingo! sm88 beat me to it.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:56   #1229
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
Bingo! sm88 beat me to it.
calls for a celebration I think that's a first lol.
science_man_88 is offline   Reply With Quote
Old 2010-08-30, 23:57   #1230
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
sorry CRG I see what he means today lol k*2^1+1 can give all primes.
You can see that I understand that, since I mention A000040 explicitly in post #1209. But none of my three sequences are equal to A000040, as even a cursory examination will show.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:58   #1231
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
calls for a celebration I think that's a first lol.
I'll lift a glass in your honor. (Literally, why not!)
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:59   #1232
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 can see that I understand that, since I mention A000040 explicitly in post #1209. But none of my three sequences are equal to A000040, as even a cursory examination will show.
oh wait k*b^b+1 would give k*1+1 for b=1 still all the primes I think.

doh I fell to his thinking lol.

Last fiddled with by science_man_88 on 2010-08-31 at 00:01
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I sometimes see all the <> formatting commands when I quote or edit? cheesehead Forum Feedback 3 2013-05-25 12:56
Passing commands to PARI on Windows James Heinrich Software 2 2012-05-13 19:19
Ubiquity commands Mini-Geek Aliquot Sequences 1 2009-09-22 19:33
64-bit Pari? CRGreathouse Software 2 2009-03-13 04:22
Are these commands correct? jasong Linux 2 2007-10-18 23:40

All times are UTC. The time now is 23:13.


Fri Aug 6 23:13:27 UTC 2021 up 14 days, 17:42, 1 user, load averages: 4.36, 4.27, 4.08

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.