I am trying to do
$(3+7i)^5$
which acording to WolframAlpha and Mathway should be:
$23028−11228i$
Yet I instead get: $6123+14287i$
--
I'm getting that answer by doing:
$3^5 (7i)^0 + 3^4 (7i)^1 + 3^3 (7i)^2 + 3^2 (7i)^3 + 3^1 (7i)^4 + 3^0 (7i)^5$
and then just combining the like terms. Could anyone shed some light on what I'm doing wrong??
Thanks in advance!!
As John pointed out in the comment, you have used $$ (a+b)^n = \sum_{k=0}^n a^k b^{n-k}, $$ which is wrong. Instead, you should use $$ (a+b)^n = \sum_{k=0}^n \binom{n}{k} a^k b^{n-k}. $$