---
title: Problem set 2
heading: "Problem set 2: series, limsup and countability"
eyebrow: A14 · Problem set 2
type: problems
---

::: hook
These problems use lessons 2 and 5 to 9: countable sets, series and their tails, absolute and conditional convergence, limit superior and the root test, and the lab's numerical checks. Several ask for a threshold or a bound; give the exact value the method produces.
:::

::: pool
pick: 12

::: check
kind: parts
given: m = 3 | 6; n = 4 | 9

## The Cantor pairing $\pi(m, n) = \frac{(m + n)(m + n + 1)}{2} + n$.

::: part
answer: (m + n)*(m + n + 1)/2 + n
tolerance: 0

### What is $\pi(\given{m}, \given{n})$?

::: misses
- [any] Diagonal start plus n.
:::
:::

::: part
answer: (m + n + 1)*(m + n + 2)/2
tolerance: 0

### What value starts the next diagonal, m + n + 1?

::: misses
- [any] $\frac{w(w + 1)}{2}$ with $w = m + n + 1$.
:::
:::
:::

::: check
kind: parts
given: e = 0.1 | 0.05 | 0.01 | 0.001 | 0.0001 | 0.00001

## The rationals in [0, 1] are covered, the k-th by an interval of length $\given{e}/2^k$, k = 1, 2, … .

::: part
answer: e
tolerance: 0.5%

### What total length do all the intervals have, at most?

::: misses
- [2*e] $\sum_{k\ge1}2^{-k} = 1$.
- [any] $\varepsilon\sum_{k\ge1}2^{-k}$.
:::
:::

::: part
answer: e/2^20
tolerance: 0.5%

### How long is the 20th interval?

::: misses
- [any] $\varepsilon/2^{20}$.
:::
:::
:::

::: check
kind: parts
given: a = 3 | 5; r = 0.5 | 0.8; N = 5 | 10

## The geometric series $\sum_{k\ge0}\given{a}(\given{r})^k$.

::: part
answer: a/(1 - r)
tolerance: 0.5%

### What is its sum?

::: misses
- [any] $\frac{a}{1 - r}$.
:::
:::

::: part
answer: a*r^(N + 1)/(1 - r)
tolerance: 0.5%

### What is its tail after the term k = {N}?

::: misses
- [a*r^N/(1 - r)] The tail starts at $k = N + 1$.
- [any] $\frac{ar^{N+1}}{1 - r}$.
:::
:::
:::

::: check
kind: parts
given: p = 2 | 3; N = 10 | 20

## Bracket $\sum_{k>N}\frac{1}{k^{\given{p}}}$ with integrals, for N = {N}.

::: part
answer: 1/((p - 1)*(N + 1)^(p - 1))
tolerance: 0.5%

### What is the lower bound?

::: misses
- [any] $\int_{N+1}^\infty x^{-p}dx$.
:::
:::

::: part
answer: 1/((p - 1)*N^(p - 1))
tolerance: 0.5%

### What is the upper bound?

::: misses
- [any] $\int_N^\infty x^{-p}dx$.
:::
:::
:::

::: check
kind: parts
given: N = 9 | 19 | 49

## The alternating series $\sum\frac{(-1)^{k+1}}{k}$ is cut after N = {N} terms.

::: part
answer: 1/(N + 1)
tolerance: 0.5%

### What does the alternating-series bound give for the error?

::: misses
- [any] The first omitted term.
:::
:::

::: part
answer: 1/(2*N + 1)
tolerance: 3%

### About how large is the actual error?

::: misses
- [any] About half the next term.
:::
:::
:::

::: check
kind: parts
given: p = 2 | 3; q = 1 | 4

## The alternating harmonic series is rearranged as {p} positive terms, then {q} negative, repeating.

::: part
answer: ln(2) + ln(p/q)/2
tolerance: 0.5%

### What does it sum to?

::: misses
- [ln(2)] Rearranging a conditionally convergent series changes its sum.
- [any] $\ln 2 + \frac12\ln\frac pq$.
:::
:::
:::

::: check
kind: parts
given: x = 0.3 | 0.5 | -0.5

## Cauchy products of $\sum x^k$ at x = {x}.

::: part
answer: 1/(1 - x)^2
tolerance: 0.5%

### What is $\sum_{n\ge0}(n + 1)x^n$?

::: misses
- [any] $\frac{1}{(1 - x)^2}$.
:::
:::

::: part
answer: 1/(1 - x)^3
tolerance: 0.5%

### What is $\sum_{n\ge0}\frac{(n + 1)(n + 2)}{2}x^n$, the product of three copies?

::: misses
- [any] $\frac{1}{(1 - x)^3}$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 1 | 4; c = 2 | 6

## $a_n = \given{a} + (-1)^n\given{b} + \frac{\given{c}}{n}$.

::: part
answer: a + b
tolerance: 0.5%

### What is $\limsup a_n$?

::: misses
- [any] The even terms' limit.
:::
:::

::: part
answer: a + b + c/2
tolerance: 0.5%

### What is $\sup_n a_n$? (Even n make the middle term positive.)

::: misses
- [a + b] The limsup ignores early terms; the sup doesn't.
- [any] The largest even term, at n = 2.
:::
:::
:::

::: check
kind: parts
given: c = 1 | 2; d = 3 | 4

## Apply the root test to $\sum\left(\frac{\given{c}k + 1}{\given{d}k}\right)^k$.

::: part
answer: c/d
tolerance: 0.5%

### What is $\lim\lvert a_k\rvert^{1/k}$?

::: misses
- [any] $\frac{ck + 1}{dk} \to \frac cd$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 5 | 7

## A power series has $c_k = \given{a}^k$ for even k and $\given{b}^k$ for odd k.

::: part
answer: 1/b
tolerance: 0.5%

### What is its radius of convergence?

::: misses
- [1/a] The limsup takes the larger rate.
- [any] $1/\limsup\lvert c_k\rvert^{1/k}$.
:::
:::
:::

::: check
kind: parts
given: m = 1 | 2; c = 2 | 4

## $\sum\frac{k^{\given{m}}}{\given{c}^k}$.

::: part
answer: 1/c
tolerance: 0.5%

### What is $\lim\frac{a_{k+1}}{a_k}$?

::: misses
- [any] $\left(\frac{k + 1}{k}\right)^m\frac1c \to \frac1c$.
:::
:::
:::

::: check
kind: parts
given: k = 5 | 9 | 20

## The integers are listed 0, 1, −1, 2, −2, … .

::: part
answer: 2*k
tolerance: 0

### At which position (0 is position 1) does {k} appear?

::: misses
- [2*k + 1] That's −{k}.
- [any] Positive k sits at position 2k.
:::
:::
:::

::: check
kind: parts
given: e = 0.01 | 0.001; c = 3 | 7

## $a_n = \frac{\given{c}}{n}$ tends to 0.

::: part
answer: floor(c/e) + 1
tolerance: 0

### What is the least N with $a_n < \given{e}$ for all n ≥ N?

::: misses
- [c/e] Need strictly less, so the first whole number above $c/\varepsilon$.
- [any] $n > c/\varepsilon$.
:::
:::
:::

::: check
kind: parts
given: r = 0.3 | 0.5 | 0.6 | 0.8 | 0.9 | 0.95

## A sequence is Cauchy with $\lvert a_m - a_n\rvert \le \frac{r^n}{1 - r}$ for m > n, with r = {r}.

::: part
answer: ceil(ln(0.000001*(1 - r))/ln(r))
tolerance: 0

### What is the least n that makes the bound below $10^{-6}$?

::: misses
- [any] Solve $r^n < 10^{-6}(1 - r)$.
:::
:::
:::

::: check
kind: parts
given: n = 5..30 int

## Count the binary strings of length at most {n}.

::: part
answer: 2^(n + 1) - 1
tolerance: 0

### How many are there?

::: misses
- [2^n] Include the shorter lengths.
- [any] $\sum_{\ell=0}^{\given{n}}2^\ell$.
:::
:::
:::
:::
