This repository contains the code which verifies the result from "Counting with the Aid of Cyclotomic Polynomials, Cicek, under revision." The problem goes:
In how many ways can the numbers
This code generates such boards with the additional property that the first two numbers in the board are 1 and 2, and it can be seen that all other boards can be generated by transposing rows/columns and symmetry.
There are four different implementations:
- construct_from_row
- construct_from_row_symmetry
- check_from_row_column
- append_rows_columns
This is the fastest guaranteed implementation of the solution. On a regular notebook, it solves the
This is the fastest implementation, solving the
This implementation solves the
This implementation solves the
The scripts are hardcoded to solve the
python codename.py
in the directory to get the result.