Delving Deeper: A Generalization of Two Ancient Formulas