Generalized Langford sequence generator (either non-planar or planar in 2 or more dimensions) using the increasing-m approach. Pure CPU (multicore) version.
Copyright 2017 Boris Dimitrov, Portola Valley, CA 94028.
Explanation and code:
langford.cpp