WorksMathematics
The Mesirov-Sweet property over F_2 up to degree 33, with two quotients of degree two up to degree 28
Abstract
For a monic polynomial g in F_2[T] of degree d, the conjecture of Mesirov and Sweet asserts that there is f in F_2[T], coprime to g with deg f < d, such that every partial quotient of the continued fraction of f/g has degree at most 2. We check by exhaustive computation that this holds for every g of degree at most 33. We also check that for every g of degree at most 28 one can choose f so that all partial quotients are linear except at most two, which have degree 2. The computations combine exhaustive enumeration of fixed degree patterns, explicit certificates for the polynomials not reached by the patterns, and two separately written enumeration programs whose outputs coincide bit for bit. All programs are provided.
Statements
For let denote the continuant, so that
in lowest terms.
Every pair with monic, and arises from exactly one sequence of non-constant quotients, and .
Conjecture 1 (Mesirov–Sweet [2]; [1 Conj. 3.6]). For every monic of degree there is with , , such that all partial quotients of have degree .
The bound 2 cannot be lowered: has no admissible with linear quotients only. For irreducible Mesirov and Sweet proved that all quotients can be taken linear [2]; for general the best known bound grows like [3]. For an admissible let be the least number of quotients of degree 2 among the of Conjecture 1.
Theorem 1 (verified by computation). Conjecture 1 holds for every monic with .
Theorem 2 (verified by computation). For every monic with one has .
Theorem 2 gives Theorem 1 for ; the degrees are treated separately. Table 2 records the number of with .
Method
Cells
Cells. A cell is a finite sequence with and . Since every polynomial of degree over is monic, the cell carries exactly quotient sequences, and we write for the set of their continuants. The pure cell is the one of Mesirov and Sweet; if and only if lies in for some cell with at most entries equal to 2.
Two enumerations
Two enumerations. Program A runs through each cell depth first, appending quotients on the right and updating the pair . Program B was written separately: it runs through the same sequences in a different order (the first quotient varies fastest) and evaluates the continuants by the recurrence in the opposite direction. Both mark the images in a bitmap indexed by the low coefficients of .
Certificates
Certificates. For the outside the union of the cells, an explicit is produced and then checked by a third program, which runs the Euclidean algorithm on from scratch and verifies , , that every quotient has degree 1 or 2 (and, for Theorem 2, that at most two have degree 2), and that the last non-zero remainder is 1.
Search for certificates
Search for certificates. For outside the union of the cells, is searched for by a meet-in-the-middle procedure resting on two classical identities: for ,
and, in characteristic 2,
Fix a cut degree ( for , for ) and a random sample of prefixes with and all degrees in . For each prefix put , , , . The second identity gives , so a suffix with of degree must be , and then . The candidate is kept when and the Euclidean algorithm on produces quotients of degree 1 or 2 only and ends with 1; then . If the sample fails, all prefixes at the cuts and are tried. Certificates are accepted only after the independent check described above, so the search needs no correctness argument of its own.
Results
Theorem 1. For each ten cells with four entries equal to 2 were drawn at random (they are listed in the ancillary files). Table 1 gives the size of the complement of their union and the outcome of the certificate search. Programs A and B produced identical bitmaps for every , and every certificate passed the independent check. Together with Theorem 2, this gives Conjecture 1 for every .
| not reached by the cells | share | fallback searches | certificates rejected | A=B | |
| 29 | 2 015 190 | 0.375% | 0 | 0 | yes |
| 30 | 4 020 219 | 0.374% | 0 | 0 | yes |
| 31 | 8 051 860 | 0.375% | 0 | 0 | yes |
| 32 | 16 187 206 | 0.377% | 0 | 0 | yes |
| 33 | 32 430 306 | 0.378% | 0 | 0 | yes |
Table 1. Ten random cells with four entries 2 per degree; every outside their union received a certificate.
Theorem 2. For every has . For , program A covers all polynomials with the cells having at most two entries equal to 2. The set of polynomials not reached by the cells with at most one entry equal to 2 was computed by A and by B, with identical results, and B produced for each an with exactly two quotients of degree 2, accepted by the independent check. Since , the counts in Table 2 are exact.
Remark 1. The share of with decreases for , from 0.0269 to 0.0065, and the ratio between consecutive even degrees is close to 3.27 for .
Question. Is for every monic ? An affirmative answer implies Conjecture 1.
| share | share | ||||
| 1 | 0 | 0.0000 | 15 | 756 | 0.0231 |
| 2 | 0 | 0.0000 | 16 | 1 364 | 0.0208 |
| 3 | 0 | 0.0000 | 17 | 2 524 | 0.0193 |
| 4 | 0 | 0.0000 | 18 | 4 582 | 0.0175 |
| 5 | 0 | 0.0000 | 19 | 8 322 | 0.0159 |
| 6 | 3 | 0.0469 | 20 | 14 974 | 0.0143 |
| 7 | 4 | 0.0312 | 21 | 27 440 | 0.0131 |
| 8 | 4 | 0.0156 | 22 | 50 069 | 0.0119 |
| 9 | 16 | 0.0312 | 23 | 90 076 | 0.0107 |
| 10 | 19 | 0.0186 | 24 | 163 599 | 0.0098 |
| 11 | 48 | 0.0234 | 25 | 295 916 | 0.0088 |
| 12 | 110 | 0.0269 | 26 | 535 199 | 0.0080 |
| 13 | 216 | 0.0264 | 27 | 967 956 | 0.0072 |
| 14 | 419 | 0.0256 | 28 | 1 748 470 | 0.0065 |
Table 2. Number of monic of degree with ; all other have .
Ancillary files
The folder anc contains: c_sources.py, which writes out the C sources of programs A and B, of the certificate search, of the checker and of the small-degree enumeration, together with the run scripts and a description of the file formats; the cell lists cells_d29.csv, . . . , cells_d33.csv; the logs of the runs; and verif_ms_f2.py (Python with numpy only), which repeats the exhaustive computation of the counts , , in degree 18, 20 or 22 (according to a memory budget set in the file) and checks the samples certs_d28_two_insertions.csv and certs_d33_sample.csv of certificates each, together with a control on corrupted certificates. Polynomials are written as integers whose binary digits are their coefficients.
ORCID 0009-0009-1526-1178
References
- [1]A. G. B. Lauder, Continued fractions and sequences, PhD thesis, University of London, 1999.
- [2]J. P. Mesirov and M. M. Sweet, Continued fraction expansions of rational expressions with irreducible denominators in characteristic 2, J. Number Theory 27 (1987), 144–148.DOI
- [3]H. Niederreiter, Rational functions with partial quotients of small degree in their continued fraction expansion, Monatsh. Math. 103 (1987), 269–288.DOI