Brute force test for Math StackExchange question 612346: http://math.stackexchange.com/questions/612346