3
$\begingroup$

I'm trying to test

Sum[(-1)^(n + 1)/(3 n + 6 (-1)^n), {n, 0, Infinity}] == 1/3 (Log[2] - 1)

but I don't get an answer, just the reprint of the above. Am I doing something wrong?

$\endgroup$
6
  • 1
    $\begingroup$ Do you mean to sum up to $\infty$? Then use the symbol Infinity, not oo. If Mathematica returns a Sum unchanged, it means that it cannot compute it symbolically. $\endgroup$
    – Szabolcs
    Oct 30, 2016 at 9:38
  • $\begingroup$ @Szabolcs using Infinity is the same. $\endgroup$
    – Masacroso
    Oct 30, 2016 at 9:40
  • $\begingroup$ But the meaning of your question, as you wrote it, it not the same. $\endgroup$
    – Szabolcs
    Oct 30, 2016 at 9:40
  • 1
    $\begingroup$ If you try summing a very large number of terms, it doesn't disprove your hypothesis: Total@Table[(-1)^(n + 1)/(N[n] + 2 (-1)^n), {n, 0, 100000}] and check N[Log[2]-1] . $\endgroup$
    – Szabolcs
    Oct 30, 2016 at 9:45
  • 4
    $\begingroup$ Add adjacent pairs, Together to get a single term, then sum. This removes all the powers of -1. In[951]:= Simplify[ 1/3*Sum[Together[1/(n + 2) - 1/((n + 1) - 2)], {n, 0, Infinity, 2}]] Out[951]= 1/3 (1 - Log[2]) (I tried with the correct sign but it does not simplify to the desired form). $\endgroup$ Oct 30, 2016 at 15:15

1 Answer 1

6
$\begingroup$

Following Daniel Lichtblau's approach

t[n_] = (-1)^(n + 1)/(3 n + 6 (-1)^n);

t2[n_] = t[2 n] + t[2 n + 1] // Simplify[#, Element[n, Integers]] &

(*  1/(2*(-1 + n + 2*n^2))  *)

Sum[t2[n], {n, 0, Infinity}] // PowerExpand // Simplify

(*  (1/3)*(-1 + Log[2])  *)

EDIT: Structuring as an equality test

Sum[t2[n], {n, 0, Infinity}] == (Log[2] - 1)/3

(*  True  *)
$\endgroup$
1
  • $\begingroup$ Ah, very interesting, thank you. This is not a test but it is certainly useful to know how to do this manipulations when other forms of evaluation dont work directly. $\endgroup$
    – Masacroso
    Oct 30, 2016 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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