mersenneforum.org  

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

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

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Oh.

We can construct it similarly to how the Proth numbers are constructed. Should there be a k < bb restriction? Or do we allow all the 4n + 1 primes in?
My sequences include even b = 1.

Good thought for a third way to do it, though: a sequence of all the primes of the form k*b^b+1, subject to k < b^b.

Last fiddled with by CRGreathouse on 2010-08-30 at 23:22
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:21   #1212
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
Mt sequences include even b = 1.
b can't be 1, or else it would be an exact duplicate of this.

b has to be greater than 2.

Last fiddled with by 3.14159 on 2010-08-30 at 23:26
3.14159 is offline   Reply With Quote
Old 2010-08-30, 23:23   #1213
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Unhappy

Quote:
Originally Posted by 3.14159 View Post
b can't be 1, or else it would be an exact duplicate of this.
I suppose you didn't understand my suggestions, then, as all three included b = 1 and none of them are the same as A000040.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:27   #1214
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
I suppose you didn't understand my suggestions, then, as all three included b = 1 and none of them are the same as A000040.
It would in fact be the same because:

(p-1) * 11 + 1 = p

And therefore, can be any odd prime number.
3.14159 is offline   Reply With Quote
Old 2010-08-30, 23:29   #1215
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
We need to find a good sequence without arbitrary points. So no minimum of 60 on b and no maximum of 10,000 on k.

I can think of a few ways to do this, but I'll let you decide. One example: consider a two-dimensional array where each row corresponds to a b-value and the values in a row are the least k-values that produce a prime. Then read this array by antidiagonals (or some other reasonable way). The first column is A070855, while the first row is A000040.

Another way: for each prime p, give the largest b value such that there exists a k with k*b^b+1 = p. Then give the values for 2, 3, 5, ....

Maybe both of these are good.


These examples avoid not only the arbitrariness of bounds, but also make ordinary sequences or 'tabl's rather than 'tabf's.
in that case the anti-diagonals read 2,5,3,109 ? Or 2,3,5,109, neither are found in what I'm searching.
science_man_88 is offline   Reply With Quote
Old 2010-08-30, 23:39   #1216
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

597910 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
in that case the anti-diagonals read 2,5,3,109 ? Or 2,3,5,109, neither are found in what I'm searching.
I'm sure neither are in.

The canonical antidiagonal mapping functions for the OEIS are
Code:
t1(n)=floor(-1/2+sqrt(2+2*n))
t2(n)=n-binomial(floor(1/2+sqrt(2+2*n)), 2)
so I get
2, 3, 5, 5, 13, 109, 7, 29,163, 257, ...
although flipping rows and columns gives the equally-valid
2, 5, 3, 109, 13, 5, 257, 163, 29, 7, ...
.
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:39   #1217
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
That doesn't match any of my sequences, sorry.
They are irrelevant to what I was discussing.

Last fiddled with by 3.14159 on 2010-08-30 at 23:40
3.14159 is offline   Reply With Quote
Old 2010-08-30, 23:41   #1218
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

If there's no k < bb restriction, b > 1.

If there is a k < bb restriction, b ≥ 1.

Last fiddled with by 3.14159 on 2010-08-30 at 23:41
3.14159 is offline   Reply With Quote
Old 2010-08-30, 23:42   #1219
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
They are irrelevant to what I was discussing.
I was quite precise, actually. Admittedly, I didn't define how to read by antidiagonals, but there's a standard way to do that in the OEIS. But regardless, none of them could be interpreted as A000040 except by a person who thinks "antidiagonal" means "row".
CRGreathouse is offline   Reply With Quote
Old 2010-08-30, 23:43   #1220
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
I'm sure neither are in.

The canonical antidiagonal mapping functions for the OEIS are
Code:
t1(n)=floor(-1/2+sqrt(2+2*n))
t2(n)=n-binomial(floor(1/2+sqrt(2+2*n)), 2)
so I get
2, 3, 5, 5, 13, 109, 7, 29,163, 257, ...
although flipping rows and columns gives the equally-valid
2, 5, 3, 109, 13, 5, 257, 163, 29, 7, ...
.
closest I find is http://www.research.att.com/~njas/sequences/A097453
science_man_88 is offline   Reply With Quote
Old 2010-08-30, 23:45   #1221
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
I was quite precise, actually. Admittedly, I didn't define how to read by antidiagonals, but there's a standard way to do that in the OEIS. But regardless, none of them could be interpreted as A000040 except by a person who thinks "antidiagonal" means "row".
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.

Last fiddled with by 3.14159 on 2010-08-30 at 23:47
3.14159 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:50 UTC 2021 up 14 days, 17:42, 1 user, load averages: 4.55, 4.31, 4.10

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.