![]() |
|
|
#496 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
|
|
|
|
|
|
|
#497 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
well 127-3 = 124 124/2 = 62 so index 62 of 002450 will be a number
the question becomes will that be a number contained in px+c. p in this case seems to be a possible factor of 2^z-1. find when it hits px+c. determine px+c from finding c as the first time 6np+/-p intersects 24m+7. in the case of a prime we would have to find a faster way as you'd have to check every possible factor 2kz+1<sqrt(2^z-1) |
|
|
|
|
|
#498 |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
sorry only have to check primes of form 2kz+1<sqrt(2^z-1)
|
|
|
|
|
|
#499 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quick pondering: I wanted to make a quick program that would generate k's for k * n! + 1 that would give a certain prime divisor, along with a prime-numbered cofactor.
I have everything set.. But the only issue I have is: How to grab that Mod number.. Ex: Mod(-1, 71)/11! = 51 51 * 11! + 1 is divisible by 71. PARI is only able to give it in the form Mod(51, 71). Everything else (the forstep, etc.) is pretty much set, what hinders me is pretty much how to obtain the Mod number alone besides handwork. Is there a way to get the Mod number on its own? Why didn't they simply do this instead: >Mod(-1, 71)/(11!) %1 = 51 Last fiddled with by 3.14159 on 2010-08-15 at 15:06 |
|
|
|
|
|
#500 |
|
Aug 2006
175B16 Posts |
lift() is what you want. Also of interest is centerlift().
Because the correct answer is the set of numbers of the form 51 + 71k, which includes more than just 51. Also, pragmatically, it's common for further calculations to use the intmod rather than just its lift over the integers. |
|
|
|
|
|
#501 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
is there a TeX to Pari and vice versa converter there should be lol but then again it would be quick large again lol why do i come up with ideas that seem never able to be realized lol.
|
|
|
|
|
|
#502 | |
|
Aug 2006
3·1,993 Posts |
Quote:
Code:
Strtex((x-2)^6) %1 = "x^6\n - 12 x^5\n + 60 x^4\n - 160 x^3\n + 240 x^2\n - 192 x\n + 64" |
|
|
|
|
|
|
#503 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
@CRG: I tried an example: Find multiples of 30! which have 727 as a smallest divisor, and a prime cofactor:
It only circularly printed 727. Here is the code snippet: Code:
em(x,n,a,b)=lift(Mod(-1,x)/(n));forstep(b=(lift(Mod(-1,x)/(n))),10^(a),x,if(isprime((b*n+1)/x), print(x))) Let's see what happens when I change it to: b==(lift(Mod(-1,x)/(n))),10^(a). (Syntax error.) Last fiddled with by 3.14159 on 2010-08-15 at 16:14 |
|
|
|
|
|
#504 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
|
|
|
|
|
|
#505 | |
|
Aug 2006
135338 Posts |
Quote:
And I'm sure it's not smart enough to deal with functions. Let me check... Code:
Strtex(n->sum(x=0,n,x)) %1 = "(n)\\mapsto sum(x=0,n,x)" |
|
|
|
|
|
|
#506 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Hmm.. I finally got it to print something, but it's all incorrect.
Last fiddled with by 3.14159 on 2010-08-15 at 16:27 |
|
|
|
![]() |
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 |