A simple Python script to get all seat permutations for a math problem on standup maths Written in Python 3.6.8
Link to video: https://www.youtube.com/watch?v=T29dydI97zY
To use the script, simply open your console/terminal then type your python path (PATH or wherever you installed your python) followed by the script path. If you have an IDE, you can run it through that as well (e.g. PyCharm, Wing IDE, Visual Studio, etc.).
This script works for any valid number of seats, number of people who sit correctly before rotating the table, and any amount of matches. It will print the lists that, no matter how much you rotate the table, will never have more than a given number of matches.