Problem 112
Easy Convergence Tests

Using Dirichlet's test, prove the convergence of: sum

Using Dirichlet's test, prove the convergence of: $$ \sum_{n=1}^{\infty} \frac{(-1)^{\frac{n(n-1)}{2}}}{n}. $$

Explanation of Method

Dirichlet's test needs the partial sums of $a_n=(-1)^{n(n-1)/2}$ to stay bounded while $b_n=1/n$ decreases to $0$. Since $n(n-1)/2\bmod2$ cycles through a period-4 pattern $(0,1,1,0)\pmod2$, i.e. $a_n$ cycles through $(1,-1,-1,1)$ which sums to zero over each full period, the partial sums $A_N$ never exceed $1$ in absolute value.

  1. Determine the period-4 sign pattern of $a_n=(-1)^{n(n-1)/2}$.
  2. Show the partial sums $A_N$ are bounded by $1$.
  3. Apply Dirichlet's test with $b_n=1/n$.

Step 1 · Determine the sign pattern

Computing $\frac{n(n-1)}2\bmod2$ for $n=1,\ldots,8$ gives the values $0,1,3,6,10,15,21,28\pmod2 = 0,1,1,0,0,1,1,0$, so $a_n=(-1)^{n(n-1)/2}$ cycles with period $4$: $1,-1,-1,1,1,-1,-1,1,\ldots$

Step 2 · Bound the partial sums

Since each full period sums to $1-1-1+1=0$: $A_{4k}=0$, $A_{4k+1}=1$, $A_{4k+2}=0$, $A_{4k+3}=-1$. So $|A_N|\le1$ for every $N$ — the partial sums of $a_n$ are bounded.

Step 3 · Apply Dirichlet's test

With $b_n=\frac1n$: $b_n$ is monotonically decreasing and $b_n\to0$. All three conditions of Dirichlet's test hold ($|A_N|\le1$ bounded, $b_n$ decreasing, $b_n\to0$), so the series $\sum a_nb_n$ converges.


Summary Table

QuantityValue
Sign pattern of $a_n$ (period 4)$1,-1,-1,1$
Bound on $|A_N|$$1$
ConclusionConverges

Additional Notes

Result

The series converges by Dirichlet's test:

$$ \left|\sum_{n=1}^N (-1)^{n(n-1)/2}\right| \le 1, \qquad \frac1n \downarrow 0 \implies \sum_{n=1}^{\infty} \frac{(-1)^{n(n-1)/2}}{n} \text{ converges.} $$