![]() |
|
|
#188 | |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
Quote:
|
|
|
|
|
|
#189 | |||
|
Aug 2006
3×1,993 Posts |
Quote:
Quote:
Quote:
Code:
prectri(n)={
my(m=sqrtint(n+=n));
if(m*(m+1)<=n,m*(m+1),m*(m-1))/2
};
addhelp(prectri, "prectri(n): Largest triangular number less than or equal to n.");
prectriM(n)={
my(m=sqrtint(n+=n));
if(m*(m+1)<=n,m,m-1)
};
addhelp(prectriM, "prectriM(n): Index of largest triangular number less than or equal to n.");
twoTri(n)={
my(b=n,bAt,t);
for(m=0,prectriM(n\2),
t=n-m*(m+1)/2;
t-=prectri(t);
if(t<b,b=t;bAt=m)
);
[bAt*(bAt+1)/2,prectri(n-bAt*(bAt+1)/2)]
};
addhelp(twoTri, "twoTri(n): Gives two triangular numbers the sum of which is the largest sum of two triangular numbers <= n.");
sm88Partition(P)={
my(t=twoTri(P-1));
concat(t,P-t[1]-t[2])
};
Then you say that this could "pinpoint" something, or be "useful for certain diagonals", but what would be pinpointed and what does "useful for certain diagonals" even mean? Then you say, "the formula can tell you were it is" (I assume you mean "where"), but what is this "it"? And generally, what does all this analysis give us? |
|||
|
|
|
|
#190 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
#191 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
an example of using the formula is:
20996011-1 = 447 Mod (10495071 + 10499653) = 447 Mod (A000217(4581)+A000217(4582)) so because these aren't the same n values into A000217 we know that it appears the second time 4582 appears as a length which means it's on the left side of the center. Since 447 is less than .5* 10499653 we know it's in the top left quadrant if you will. We can try and find a line to another exponent already known if none is found maybe it links to a higher exponents (yes I know maybe is not for sure). |
|
|
|
|
#192 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
13466917 is upper right 1686 into the 3670 I may have messed up my earlier example for the other one.
|
|
|
|
|
#193 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
6972593 is lower left. 3021377 upper left. want more specifics ?
|
|
|
|
|
#194 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
(19:50)>for(i=1,#mersenne1,for(y=1,#triangle,if(((mersenne1[i]-1)/2)<=triangle[y],print(mersenne1[i]","y);break()))) 2,1 3,1 5,2 7,2 13,3 17,4 19,4 31,5 61,8 89,9 107,10 127,11 521,23 607,25 1279,36 2203,47 2281,48 3217,57 4253,65 4423,66 9689,98 9941,100 11213,106 19937,141 21701,147 23209,152 44497,211 86243,294 110503,332 132049,363 216091,465 756839,870 859433,927 1257787,1122 1398269,1182 2976221,1725 3021377,1738 6972593,2641 13466917,3670 20996011,4582 I forgot to highlight 89 in my file doh lol. but unless someone feels safe to download it it's unimportant. Last fiddled with by science_man_88 on 2011-02-03 at 00:07 |
|
|
|
|
#195 |
|
Aug 2006
10111010110112 Posts |
Yes. You've spent a lot of words and many posts to discuss this method for determining whether two numbers are on the same diagonal or not. (I don't quite understand it, but I don't blame you, at least not entirely -- it's partially due to my lack of interest.) But what do we do with that, once we know it?
That is, suppose we had a gp function onTheSameDiagonal(n1, n2). (Actually, I think you should write this, possibly using the functions I wrote for you above.) How does this help us find suitable exponents? Or, if it has a different purpose, what? Last fiddled with by CRGreathouse on 2011-02-03 at 00:53 |
|
|
|
|
#196 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
okay: Code:
(20:56)>b=3;for(i=2,100,b=b+2*i;if(isprime(b),print(b))) 7 13 31 43 73 157 211 241 307 421 463 601 757 1123 1483 1723 2551 2971 3307 3541 3907 4423 4831 5113 5701 6007 6163 6481 8011 8191 9901 (20:56)>b=5;for(i=2,100,b=b+2*i+1;if(isprime(b),print(b))) 17 37 101 197 257 401 577 677 1297 1601 2917 3137 4357 5477 7057 8101 8837 Last fiddled with by science_man_88 on 2011-02-03 at 01:05 |
|
|
|
|
|
#197 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
#198 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
these are the primes on the diagonals that 3 and 5 reside on if 1 is at the center.
Last fiddled with by science_man_88 on 2011-02-03 at 01:17 |
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mersenne Primes p which are in a set of twin primes is finite? | carpetpool | Miscellaneous Math | 3 | 2017-08-10 13:47 |
| Distribution of Mersenne primes before and after couples of primes found | emily | Math | 34 | 2017-07-16 18:44 |
| Mersenne primes and class field theory | Nick | Math | 4 | 2017-04-01 16:26 |
| Basic Number Theory 11: Gaussian primes | Nick | Number Theory Discussion Group | 0 | 2016-12-03 11:42 |
| Mersenne Wiki: Improving the mersenne primes web site by FOSS methods | optim | PrimeNet | 13 | 2004-07-09 13:51 |