Just loop through all values of a, b, c, and n?