Original video
Solution to question B
Wannabe cube is cuboid with sequential integer lengths (e.g.
Is there any dissection of 3D wannabe cube by smaller distinct wannabe cubes apart from cuboid
Can
All 3D cuboids up to
No, it can't be dissected. Prove by program which uses SAT solver under the hood.
See main.ipynb for details.
z3-solver
jupyter
(can be removed by refactoring into the script)tqdm
(can be removed by removing progress bar)numpy
(can be removed after refactoring of answer printing, nothing really important depends on it)more-itertools
(can be removed by changingmore_itertools.distinct_permutations
toitertools.permutations
, but don't want to use unoptimizedpermutations
function)
pip install -r requirements.txt
jupyter notebook
Run all cells in main.ipynb
notebook.