Permutations-and-numbers-of-inversions (en) Copyright (C) Paweł Maśluch, 2021. All rights reserved. Various cases of finding a number of permutations with different constraints on number of inversions (C++, Windows).