Here are algebraic formulas you'll encounter repeatedly in competitive programming:
Sum of first integers:
Sum of first squares:
Geometric series: for
Number of pairs:
Formulas you'll see often
Here are algebraic formulas you'll encounter repeatedly in competitive programming:
Sum of first integers:
Sum of first squares:
Geometric series: for
Number of pairs: