Comment Comment by AnotherGoodName A + B mod n seems much easier than this. parent AnotherGoodName 10 months ago