0
$\begingroup$

Look at this excerpt from the Algorithm Design Manual by Skiena, 2nd Edition

enter image description here

The sum of the first $n$ even integers? Surely, the two sums given do not include only even numbers, right? Is this a mistake on the author's part, or am I missing something?

$\endgroup$
  • 1
    $\begingroup$ Looks like a mistake, yes. Either they wanted to use $2i$, which simplifies to 2 * what they write then. Or, the "even" should not be in the sentence. I consider the second more likely since the second half of the sentence doesn't make sense for only even integers, either. $\endgroup$ – Raphael Oct 12 '17 at 10:35
  • $\begingroup$ What's intended is "The sum of the first even $n$ integers ... ". As written, it's in error. $\endgroup$ – Thumbnail Oct 12 '17 at 17:31
1
$\begingroup$

This is an explanation for the Gaussian sum formula (funfact: in German it is called "little Gauss"). Hence, as you recognized, the even here is not correct.

The equality of these sums can be shown inductively or simply by putting them into Wolframalpha

The "even" case works like Raphael stated, but doesn't seem to have any intellectual value.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.