home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!gmd.de!newsserver.jvnc.net!louie!udel!gatech!ukma!mont!mont!stephen
- From: stephen@mont.cs.missouri.edu (Stephen Montgomery-Smith)
- Subject: Polynomials modulo 2
- Message-ID: <stephen.728236166@mont>
- Keywords: polynomials, division, modular arithmetic
- Organization: University of Missouri
- Date: 28 Jan 93 15:49:26 GMT
- Lines: 33
-
- Dear All,
-
- A friend gave me a polynomial p, whose coefficients come from the field
- of order two. His question was, is there an n such that p divides
- 1 + x^n, and if so, what is the smallest positive n. (All division is
- modulo 2).
-
- I deduced that the answer is yes --- there is such an n. To find it, there
- is the following algorithm. The polynomials are represented by binary
- numbers:
- a_0 + a_1 x + a_2 x^2 + ... + a_n x^n
- is represented by the binary number a_n ... a_1 a_0.
-
- input(p);
- n = 0;
- q = 1;
- repeat
- if (bit 0 of q = 1) then q = q xor p;
- shift q one place to right;
- n = n+1;
- until q = 1;
- output(n);
-
- The algorithm is based on synthetic division.
-
- So, here is my question. Has this been done before (I think yes) and
- if so, what is a good reference? Also, has anyone come up with a better
- algorithm than the one I presented here?
-
- Thanks in advance,
-
- Stephen Montgomery-Smith
-
-