fixed factor; added quadratic and pentagon nums helpers