Every offset curve can be generated by a quadratic function of the form:
y = ax^{2} + bx + c
Where y is the number that appears on the graph; a, b, and c are constants that define the curve; and x is the index of the integer on the curve.
In order for a quadratic function to be an offset curve, a must be a perfect square.
In order for a function to be a composite offset curve, c must be zero. In other words, the function for a composite offset curve looks like this:
y = ax^{2} + bx
Of course a must be a perfect square in the above equation, because composite curves are a subset of offset curves.
For composite offset curves of angle n/d where the denominator is even:
a = (d/2)^{2}
b = n
offset = (n/d)^{2}
For angles with odd denominators, multiply the numerator and denominator by two and use the above formulas.
The correspondence between angles and coefficients creates an orderly pattern on the graph. This can be seen in the following illustration which shows all the composite curves for denominator = 6 with the numerator ranging from –9 to 9 inclusive:
