mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > science_man_88

Closed Thread
 
Thread Tools
Old 2011-02-03, 01:55   #199
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

none of them are quite what I want works not all work out. I'm not just looking for the largest sum I'm looking for the largest sum <= (n-1) such that the values are either the same one or right next to each other. for example for (7-1) = (1+1+2+2) = 3 + 3, not the 1 and 6 your function finds. and the index of those helps to find out what diagonal to check. I'll try to make one I'm not asking for you to have to support my idea.
science_man_88 is offline  
Old 2011-02-03, 13:17   #200
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Code:
for(x=2,#mersenne1,if(mersenne1[x]-triangle[prectriM((mersenne1[x]-1)/2)]-triangle[prectriM((mersenne1[x]-1)/2)+1]-1>=0,print(prectriM((mersenne1[x]-1)/2)","prectriM((mersenne1[x]-1)/2)+1","mersenne1[x]-triangle[prectriM((mersenne1[x]-1)/2)]-triangle[prectriM((mersenne1[x]-1)/2)+1]-1","mersenne1[x]),print(prectriM((mersenne1[x]-1)/2)","mersenne1[x]-2*triangle[prectriM((mersenne1[x]-1)/2)]-1","mersenne1[x])))

1,0,3
1,2,0,5
2,0,7
3,0,13
3,4,0,17
3,4,2,19
5,0,31
7,4,61
8,9,7,89
9,10,6,107
10,11,5,127
22,14,521
24,6,607
35,18,1279
46,40,2203
47,24,2281
56,24,3217
64,65,27,4253
66,0,4423
97,98,84,9689
99,40,9941
105,82,11213
140,141,55,19937
146,147,91,21701
151,152,104,23209
210,186,44497
293,100,86243
331,332,278,110503
362,363,279,132049
464,330,216091
869,808,756839
926,927,103,859433
1121,24,1257787
1181,1182,1144,1398269
1724,1725,595,2976221
1737,1738,732,3021377
2640,352,6972593
3669,1686,13466917
4581,4582,1286,20996011
for some reason this doesn't match up unless I did the math wrong the first time. okay I did , I must have lost sight of the proper ones to subtract in the b file for A000217.

Last fiddled with by science_man_88 on 2011-02-03 at 13:35
science_man_88 is offline  
Old 2011-02-03, 14:00   #201
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

I see why 23209 and 3217 line up :

56/2 leaves 28 below the center

since 104 > 152/2 because the second one hasn't been done for 152 then we get 104- (152/2) = 28 so it to in this case is 28 below the center and lines up with 3217.
science_man_88 is offline  
Old 2011-02-03, 14:49   #202
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

the hard part for me is turning this into a Cartesian plane then I could just subtract coordinates and figure the lineups out. I know what I'd have to do but it's complicated. because i have to use if the 2 first values in the 4 value ones in my list to tell which quadrant it's in and do all the subtraction I've done to show that the y coordinate is the same for 3217((-4,-28) I believe and 23209((-75,-28) if I've done the math correctly) then it's as simple as checking check if the x or y values are the same ( if not it then could check the difference in both and check if it's a 1 to 1 ratio).

Last fiddled with by science_man_88 on 2011-02-03 at 15:31
science_man_88 is offline  
Old 2011-02-03, 15:32   #203
KingKurly
 
KingKurly's Avatar
 
Sep 2010
Annapolis, MD, USA

33·7 Posts
Default

After 200 posts in this thread... where are you going with all of this?? Several people have asked you several times, and you just go back to talking about "stuff" instead of answering the question. Or am I just missing something?
KingKurly is offline  
Old 2011-02-03, 15:40   #204
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
the hard part for me is turning this into a Cartesian plane then I could just subtract coordinates and figure the lineups out. I know what I'd have to do but it's complicated. because i have to use if the 2 first values in the 4 value ones in my list to tell which quadrant it's in and do all the subtraction I've done to show that the y coordinate is the same for 3217((-4,-28) I believe and 23209((-75,-28) if I've done the math correctly) then it's as simple as checking check if the x or y values are the same ( if not it then could check the difference in both and check if it's a 1 to 1 ratio).
okay kinda badly phrased. Basically I'd use the first number as the origin and see if I can plot the lines of slope 1/1 or horizontal or vertical lines between them.The problem I think I'd have is figuring out the position each one would have on the Cartesian plane when saying each box is another coordinate.
science_man_88 is offline  
Old 2011-02-03, 15:42   #205
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by KingKurly View Post
After 200 posts in this thread... where are you going with all of this?? Several people have asked you several times, and you just go back to talking about "stuff" instead of answering the question. Or am I just missing something?
my most recent idea starts on post 169.
science_man_88 is offline  
Old 2011-02-03, 15:55   #206
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

basically I think I'm having trouble going from a number spiral ( where the idea was detected) to making the placement in the number spiral into Cartesian coordinates using the center as the origin (because lines seem easier on a Cartesian plane).

Last fiddled with by science_man_88 on 2011-02-03 at 15:57
science_man_88 is offline  
Old 2011-02-03, 16:17   #207
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

going around the number spiral if the 1 is at (0,0) then 2 is at (1,0) , 3 is at (1,1) since these share a x value then they are on the same line in this case the line x=1. the 5 is at position (-1,1) since the y coordinate is the same for the 3 and 5 they are in a line with each other y=1.that's all the transforming that's needed assuming you have the number spiral but with a position unknown in one it's hard to find it for the other. I'm just having trouble turning what I know about finding it in one into a way to find the coordinates with a list of coordinates it should be simple addition and subtraction to prove my idea.
science_man_88 is offline  
Old 2011-02-03, 16:43   #208
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

okay I might be able to do this I have a way to get the coordinates of each corner:

Code:
x=0;y=0;mode=1;for(z=1,10,if(mode==1,x=x+z;print(x","y);y=y+z;print(x","y);mode=0,x=x-z;print(x","y);y=y-z;print(x","y);mode=1))
science_man_88 is offline  
Old 2011-02-03, 22:07   #209
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Code:
for(i=1,#mersenne1,
     a=mersenne1[i]-1;
     x=0;
     y=0;
     corner=0;
     mode=1;
     for(z=1,5000,
           if(mode==1&&a>=z,
              x=x+z;
              a=a-z;
              corner=corner+1;
              if(a>=z,
                 y=y+z;
                 a=a-z;
                 corner=corner+1;
                 mode=0
                )
                ,if(mode==0&&a>=z,
                    x=x-z;
                    a=a-z;
                    corner=corner+1;
                    if(a>=z,
                       y=y-z;
                       a=a-z;
                       corner=corner+1;
                       mode=1
                       )
                   )
              )
            );
if(corner%4==1,
   print(x","y+a","a),
   if(corner%4==2,
      print(x-a","y","a),
      if(corner%4==3,
         print(x,","y","a),
         if(corner%4==0,
            print(x+a","y","a)
           )
          )
      )
   )
)
this is the best I've got it's not perfect though it makes errors 4 times in the first 26 I think. each time it's minus a but unless i can tell what's making it mess up I can't fix it to be accurate for all of them.

Last fiddled with by science_man_88 on 2011-02-03 at 22:49
science_man_88 is offline  
Closed Thread

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

All times are UTC. The time now is 10:02.


Fri Aug 6 10:02:56 UTC 2021 up 14 days, 4:31, 1 user, load averages: 4.04, 4.31, 4.18

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.