mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-09-21, 23:09   #1475
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Next: How to fake SIQS data?
Of course it's trivial to fake them at present since you're not asking for any data...

I don't know of an easy way at present, but let me think on it.
CRGreathouse is offline   Reply With Quote
Old 2010-10-04, 02:56   #1476
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

32208 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Of course it's trivial to fake them at present since you're not asking for any data...

I don't know of an easy way at present, but let me think on it.
You have any ideas? Anything at all?
3.14159 is offline   Reply With Quote
Old 2010-10-04, 12:03   #1477
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
You have any ideas? Anything at all?
Yes -- but I'd prefer not to share until I get a working version.
CRGreathouse is offline   Reply With Quote
Old 2010-10-04, 21:23   #1478
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Yes -- but I'd prefer not to share until I get a working version.
Well, you can notify me full speed ahead whenever you have those ideas.
3.14159 is offline   Reply With Quote
Old 2010-10-04, 22:25   #1479
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Well, you can notify me full speed ahead whenever you have those ideas.
I have the ideas now, but haven't worked through the math needed to implement them yet. I'll also need to find a system with a fast GCD -- I think GMP 5 has Moller's improvements coded in, so maybe that.
CRGreathouse is offline   Reply With Quote
Old 2010-10-10, 16:41   #1480
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default thought I'd put this here.

Code:
(13:30) gp > U(x,P,Q)= v=vector(x+1,n,0);v[1]=0;v[2]=1;for(y=3,x+1,v[y]=P*v[y-1]-Q*v[y-2]);print(v);
(13:33) gp > V(x,P,Q)= v=vector(x+1,n,0);v[1]=2;v[2]=P;for(y=3,x+1,v[y]=P*v[y-1]-Q*v[y-2]);print(v);
I deleted the tests of the stuff i pasted to save room. like them CRG and is there ever a third kind ? I know Mersenne numbers are U(P,Q) for P=3 Q=2 for this type but the V aren't quite the exponents I was wondering if we could ever make more kinds so that one may be a list of the exponents.
science_man_88 is offline   Reply With Quote
Old 2010-10-10, 17:34   #1481
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Yes, I like them, but I'd like it better with ";v" instead of ";print(v);". Always return, never print! With the return version you can do fun stuff like isprime(U(7,3,2)).

These are (homogeneous linear) recurrence relations (with constant coefficients); there are many more possibilities.
CRGreathouse is offline   Reply With Quote
Old 2010-10-10, 18:13   #1482
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

one thing I don't like is Wikipedia doesn't list it under lucas sequences I have a account just I forgot it all lol. maybe if someone remembers they can edit it lol.
science_man_88 is offline   Reply With Quote
Old 2010-10-10, 22:43   #1483
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

What is "it"?
CRGreathouse is offline   Reply With Quote
Old 2010-10-10, 22:56   #1484
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
What is "it"?
Mersenne numbers it doesn't list them as a famous example in http://en.wikipedia.org/wiki/Lucas_sequence but they are P=3 Q=2
science_man_88 is offline   Reply With Quote
Old 2010-10-10, 23:23   #1485
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

That's hard because some definitions require them to have a prime exponent, in which case they're not recurrence relations.
CRGreathouse 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:10.


Fri Aug 6 23:10:39 UTC 2021 up 14 days, 17:39, 1 user, load averages: 4.91, 4.22, 4.03

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.