Why is anyone using a computer? This is Pencil and Paper!
The trick here is to realize the sum of all 25 terms can be generated from a product of a pair of five term sums.
(2^0 + 2^1 + 2^2 + 2^3 + 2^4) * (3^0 + 3^1 + 3^2 + 3^3 + 3^4)
The two multiplicands are geometric series, so the expression simplifies into (2^5 - 1) * (3^5 - 1) / 2 = 31*242/2 = 3751.
Edited on November 15, 2024, 4:58 pm