![]() |
|
|
#1 |
|
May 2004
22·79 Posts |
This refers to the Ramanujan - Nagell theorem. i.e. there are only 5 solutions to the Diaphontine eqn: x^2 + 7 = 2 ^n.
When x = 1, f(x) = 8 = 2^3 = 2^s, say. Then x = 1 + 2^(s-1), when substituted in f(x) yields 32 = 2 ^5. The algo x_i+1 = x_i + 2^(s-1) always yields a number such that f(x_i+1), whose power of 2 component is always greater than s. Here s is the power of 2 in f(x_i). |
|
|
|
|
|
#2 |
|
May 2013
East. Always East.
110101111112 Posts |
The text editor on this forum offers superscript and subscript, just by the by. Makes things a bit easier to read.
|
|
|
|
|
|
#3 |
|
Romulan Interpreter
"name field"
Jun 2011
Thailand
41×251 Posts |
|
|
|
|
|
|
#4 | |
|
May 2004
4748 Posts |
Quote:
A.K. Devaraj |
|
|
|
|
|
|
#5 |
|
May 2004
22×79 Posts |
|
|
|
|
|
|
#6 |
|
May 2004
1001111002 Posts |
|
|
|
|
|
|
#7 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
22×2,767 Posts |
No, it is built in to the on-line interface.
You can use it by inserting the formatting mark-ups within the [ TEX ][ /TEX ] (spaces inserted to keep the command from being interpreted) tags. |
|
|
|
|
|
#8 | |
|
"Serge"
Mar 2008
San Diego, Calif.
32×7×163 Posts |
Quote:
Code:
~/> gp
? f(x)=x^2+7
? ilog2(t)={s=0;while(t%2==0,t/=2;s++);return(if(t==1,s,-1))}
# returns -1 if input is not a power of two
? f(1)
%1 = 8
? s=ilog2(8)
%2 = 3
? f(1+2^(s-1))
%3 = 32
? s=ilog2(32)
%4 = 5
? f(1+2^(s-1))
%5 = 296
? ilog2(296)
%6 = -1
# not a power of two; the "algo" is invalid
|
|
|
|
|
|
|
#9 |
|
"Gang aft agley"
Sep 2002
2×1,877 Posts |
|
|
|
|
|
|
#10 |
|
May 2004
22×79 Posts |
I am afraid some members have not understood the algorithm. I will clarify with a few examples relevant to the R-N theorem.
The mother function is f(x)=x^2+7 The algo: x_i+1 = x_i + 2^(s-1) where s is the power of two in (x_i)^2+7. result: f(x_i+1) is a number in which the power of 2 is always greater than that in f(x_i). f(1) = 2^3. x_i+1 = 1 + 2^(s-1) = 5. f(5)= 2 ^5. next x_i+1 = 5 + 2^4 = 21. f(21) = 7*2^6. This goes on & on. A.K. Devaraj p.s I had presented an alternative proof of R-N Theorem based on the above algo. at a con of Ramanujan mathematical society a few years ago. |
|
|
|
|
|
#11 | |
|
May 2004
22·79 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stockfish game: "Move 8 poll", not "move 3.14159 discussion" | MooMoo2 | Other Chess Games | 5 | 2016-10-22 01:55 |
| Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" | wildrabbitt | Miscellaneous Math | 11 | 2015-03-06 08:17 |
| Can zero be an "intermediate step" value in Lucas-Lehmer? | That Don Guy | Math | 10 | 2012-02-03 18:02 |
| Would Minimizing "iterations between results file" may reveal "is not prime" earlier? | nitai1999 | Software | 7 | 2004-08-26 18:12 |