mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-08-31, 00:46   #1244
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
The sequence, with the restriction is:

2, 3, 5, 109, 163, 257, 271, 379, 433, 487, 541, 769, 3329, 7681, 7937, 9473, 10753, 11777, 12289, 13313, 14081, 14593, 15361, 17921, 18433, 19457, 22273, 23041, 23297, 25601, 26113, 26881, 30977, 31489, 32257, 36097, 36353, 37501, 37633, 37889, 39937, 40193, 40961, 41729, 43777, 45569, 46337, 49409, 49921, 50177, 51713, 57089, 57601, 58369, 59393, 60161, 61441, 62501, 64513, 65537, ...
Quote:
Originally Posted by 3.14159 View Post
The sequence with the restriction. (k * bb + 1, k < bb)
So why is 2 a member? Why is 3 a member? Why is 13 not a member? Why is 65537 a member?

I get
Code:
5, 13, 109, 163, 257, 271, 379, 433, 487, 541, 769, 3329, 7681, 7937, 9473, 10753, 11777, 12289, 13313, 14081, 14593, 15361, 17921, 18433, 19457, 22273, 23041, 23297, 25601, 26113, 26881, 30977, 31489, 32257, 36097, 36353, 37501, 37633, 37889, 39937, 40193, 40961, 41729, 43777, 45569, 46337, 49409, 49921, 50177, 51713, 57089, 57601, 58369, 59393, 60161, 61441, 62501, 64513, 112501, 118751, 131251, 139969, 150001, 193751, 206251, 212501, 262501, 281251, 287501, 318751, 325001, 326593, 418751, 431251, 437501, 450001, 466561, 506251, 525001, 562501, 568751, 606251, 643751, 681251, 700001, 731251, 737501, 746497, 756251, 768751, 812501, 825001, 839809, 862501, 900001, 918751, 937501, 943751, 1068751, 1073089, 1093751, 1125001, 1162501, 1166401, 1168751, 1213057, 1237501, 1331251, 1350001, 1387501, 1393751, 1492993, 1539649, 1556251, 1637501, 1650001, 1656251, 1675001, 1706251, 1726273, 1731251, 1806251, 1862501, 1968751, 1987501, 2031251, 2043751, 2068751, 2081251, 2099521, 2100001, 2118751, 2125001, 2156251, 2218751, 2256251, 2287501, 2293751, 2350001, 2362501, 2379457, 2387501, 2400001, 2425001, 2426113, 2443751, 2512501, 2537501, 2550001, 2593751, 2606251, 2625001, 2662501, 2725001, 2743751, 2775001, 2799361, 2800001, 2837501, 2875001, 2912501, 2925001, 2950001, 2962501, 3032641, 3037501, 3131251, 3150001, 3175001, 3294173, 3300001, 3312577, 3337501, 3343751, 3381251, 3405889, 3437501, 3512501, 3543751, 3581251, 3600001, 3643751, 3656251, 3700001, 3718751, 3731251, 3750001, 3756251, 3787501, 3825793, 3868751, 3918751, 3937501, 3993751, 4068751, 4093751, 4106251, 4181251, 4187501, 4218751, 4237501, 4312501, 4331251, 4368751, 4387501, 4393751, 4406251, 4506251, 4543751, 4562501, 4575001, 4581251, 4618751, 4631251, 4712501, 4725001, 4750001, 4758913, 4762501, 4825001, 4837501, 4893751, 4900001, 4945537, 4956251, 4975001, 4987501, 5031251, 5038849, 5087501, 5106251, 5132161, 5143751, 5162501, 5181251, 5193751, 5237501, 5287501, 5362501, 5365441, 5368751, 5381251, 5400001, 5481251, 5493751, 5556251, 5575001, 5593751, 5612501, 5687501, 5725001, 5762501, 5831251, 5837501, 5925001, 5925313, 6006251, 6025001, 6056251, 6065281, 6100001, 6112501, 6118751, 6137501, 6187501, 6225001, 6268751, 6318751, 6343751, 6381251, 6487501, 6531251, 6550001, 6581251, 6600001, 6618751, 6625001, 6625153, 6671809, 6750001, 6756251, 6806251, 6825001, 6858433, 6887501, 6900001, 6937501, 6943751, 6956251, 6981251, 6993751, 6998401, 7018751, 7087501, 7091713, 7106251, 7168751, 7256251, 7262501, 7275001, 7281251, 7300001, 7371649, 7393751, 7406251, 7518751, 7543751, 7631251, 7687501, 7698241, 7712501, 7768751, 7900001, 7950001, 8050001, 8062501, 8071489, 8106251, 8137501, 8156251, 8162501, 8164801, 8175001, 8193751, 8211457, 8235431, 8256251, 8268751, 8293751, 8312501, 8387501, 8443751, 8550001, 8631251, 8681251, 8700001, 8706251, 8737501, 8775001, 8850001, 8856251, 8864641, 8875001, 8893751, 8906251, 8911297, 8925001, 8950001, 8981251, 8987501, 9118751, 9137501, 9191233, 9237889, 9287501, 9300001, 9337501, 9343751, 9356251, 9362501, 9375001, 9393751, 9487501, 9493751, 9550001, 9606251, 9657793, 9712501, 9737501, 9750001, 9937729, 10031041, 10497601, 11010817, 11337409, 11803969, 12597121, 13156993, 13763521, 14043457, 14090113, 14230081, 14510017, 14556673, 14696641, 14789953, 14836609, 15069889, 15443137, 15536449, 15909697, 16329601, 16469569, 16562881, 16702849, 16796161, 17122753, 17356033, 17496001, 18522433, 18942337, 19268929, 19688833, 19828801, 19968769, 20901889, 20995201, 21041857, 21088513, 21974977, 22254913, 22768129, 22908097, 23001409, 23234689, 23421313, 23561281, 23654593, 23841217, 24074497, 24401089, 25007617, 25287553, 25334209, 25707457, 25800769, 26220673, 26453953, 26500609, 26827201, 26920513, 27900289, 27993601, 28000463, 28086913, 28133569, 28460161, 28600129, 28740097, 28973377, 29253313, 29486593, 29626561, 29906497, 30093121, 30139777, 30466369, 30559681, 30792961, 31352833, 31492801, 31866049, 32006017, 32239297, 32332609, 32565889, 32659201, 32941721, 32985793, 33825601, 33872257, 34292161, 34385473, 34525441, 34805377, 34852033, 35271937, 35971777, 36484993, 36671617, 36764929, 36998209, 37231489, 37698049, 37931329, 38397889, 38631169, 38724481, 39051073, 39191041, 39284353, 39331009, 39657601, 39890881, 40264129, 40357441, 40404097, 40590721, 40824001, 41057281, 41197249, 41383873, 41523841, 41803777, 41850433, 41990401, 42037057, 42363649, 42456961, 42596929, 42783553, 42970177, 43016833, 43156801, 43250113, 43296769, 43483393, 43530049, 43856641, 44136577, 44416513, 44463169, 44603137, 45116353, 45396289, 45489601, 45629569, 45722881, 45816193, 45956161, 46189441, 46422721, 46562689, 46702657, 46935937, 47169217, 47215873, 47402497, 47589121, 47869057, 48148993, 48755521, 48895489, 49035457, 49082113, 49502017, 50155201, 50621761, 50948353, 51321601, 52068097, 52301377, 52348033, 52394689, 52581313, 53281153, 53327809, 54214273, 54447553, 55100737, 55194049, 55987201, 56313793, 56593729, 56733697, 56966977, 57246913, 57480193, 57526849, 57713473, 57900097, 58553281, 58693249, 59299777, 59859649, 60186241, 60559489, 60932737, 61119361, 61632577, 63032257, 63078913, 63265537, 63358849, 63452161, 63685441, 63778753, 64012033, 64431937, 64525249, 64898497, 65178433, 65318401, 65411713, 65458369, 65831617, 66344833, 66531457, 67091329, 67277953, 67464577, 67651201, 67744513, 67791169, 68257729, 68724289, 68910913, 69050881, 69564097, 69750721, 70357249, 70963777, 71290369, 71383681, 71663617, 71850241, 72316801, 72690049, 72923329, 73156609, 73296577, 73529857, 74789569, 74882881, 74929537, 74976193, 75349441, 75489409, 76142593, 76329217, 76422529, 76515841, 76889089, 77215681, 77262337, 77915521, 78148801, 78382081, 78475393, 78848641, 79060129, 79175233, 79221889, 79548481, 79595137, 79688449, 79828417, 79921729, 80015041, 80061697, 80481601, 80808193, 81041473, 81414721, 81554689, 81974593, 82021249, 82487809, 83047681, 83327617, 83794177, 83980801, 84001387, 84074113, 84307393, 84494017, 84820609, 85240513, 85940353, 85987009, 86406913, 86453569, 86593537, 86640193, 86920129, 87246721, 87293377, 87526657, 87619969, 88506433, 88646401, 88693057, 89159617, 89486209, 89952769, 90186049, 90372673, 90605953, 90652609, 90792577, 90839233, 91212481, 92425537, 93312001, 93545281, 93778561, 93871873, 94758337, 94851649, 94944961, 95224897, 95458177, 95784769, 96437953, 96671233, 96811201, 96904513, 97137793, 97324417, 97417729, 97744321, 97837633, 98490817, 98817409, 99190657, ...
though I can't post much of what I have.
CRGreathouse is offline   Reply With Quote
Old 2010-08-31, 00:59   #1245
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

110100100002 Posts
Default

Quote:
Originally Posted by CRGreathouse
So why is 2 a member? Why is 3 a member? Why is 13 not a member? Why is 65537 a member?
Ah. Didn't see that. Correct those, please?
My computer is subject to p95 at the moment.
3.14159 is offline   Reply With Quote
Old 2010-08-31, 01:03   #1246
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

597910 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Ah. Didn't see that. Correct those, please?
My computer is subject to p95 at the moment.
If you already submitted it I'll have to wait until the next time Neil updates. But I suppose I needed to edit it regardless to add my b-file...

What is the sequence number?
CRGreathouse is offline   Reply With Quote
Old 2010-08-31, 04:04   #1247
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
If you already submitted it I'll have to wait until the next time Neil updates. But I suppose I needed to edit it regardless to add my b-file...
I made errors everywhere! I need to repair Karsten's database! +

Last fiddled with by 3.14159 on 2010-08-31 at 04:05
3.14159 is offline   Reply With Quote
Old 2010-08-31, 04:12   #1248
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Do you have the Sloane A-number? (It should be in the confirmation email.) I can use that to store my b-file until the sequence shows up.
CRGreathouse is offline   Reply With Quote
Old 2010-08-31, 10:46   #1249
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
I'll lift a glass in your honor. (Literally, why not!)
well I can give you a few reasons lol 1) hangover (I'm not allowed to drink so luckily I've never got one)

2) if you can't understand Pi when sober will drinking really help that ?
science_man_88 is offline   Reply With Quote
Old 2010-08-31, 10:49   #1250
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
I got the matrix formed and vectors to fill it but can you get it to print them as rows not just all at once ?
I realized I can just use print(v[i])) for matrix v.

no I can't lol.

Last fiddled with by science_man_88 on 2010-08-31 at 10:53
science_man_88 is offline   Reply With Quote
Old 2010-08-31, 10:55   #1251
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
well I can give you a few reasons lol 1) hangover (I'm not allowed to drink so luckily I've never got one)

2) if you can't understand Pi when sober will drinking really help that ?
oh wait I forgot it's him that needs to understand you drink away lol
science_man_88 is offline   Reply With Quote
Old 2010-08-31, 12:38   #1252
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

110100100002 Posts
Default

Quote:
Originally Posted by CRGreathouse
Do you have the Sloane A-number? (It should be in the confirmation email.) I can use that to store my b-file until the sequence shows up.
A180362!
3.14159 is offline   Reply With Quote
Old 2010-08-31, 13:03   #1253
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I realized I can just use print(v[i])) for matrix v.
With
Code:
M=[1,2;3,4]
you can use
Code:
M[2,1]
to show the element in the second row, first column.

Last fiddled with by CRGreathouse on 2010-08-31 at 13:05
CRGreathouse is offline   Reply With Quote
Old 2010-08-31, 14:25   #1254
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Reached the halfway point for 501 to 750.
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:26 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.