---
title: "Problem set 1: sequences, transforms and sampling"
heading: "Problem set 1: LTI systems and the DTFT, z-transforms and their regions of convergence, inversion, and sampling"
eyebrow: S7 · Problem set 1
type: problems
---

::: hook
These problems cover lessons 1 to 4: stability and frequency response, the DTFT's energy and symmetry, z-transforms with their regions of convergence, partial fractions with real, complex and repeated poles, aliasing, zero-order-hold droop, discrete-time processing of analog signals and quantization noise.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 0.6 | 0.85 | -0.7; w = 0.3 | 1.1 | 2.4; A = 1 | 3

## A system h[n] = ({a})ⁿu[n] receives $\given{A}\cos(\given{w}n)$.

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

### $\sum|h[n]|$?

::: misses
- [any] $1/(1 - |a|)$.
:::
:::

::: part
answer: A/sqrt(1 - 2*a*cos(w) + a^2)
tolerance: 0.5%

### Output amplitude?

::: misses
- [any] $A|H(e^{j\omega})|$.
:::
:::

::: part
answer: -atan(a*sin(w)/(1 - a*cos(w)))*180/pi
unit: °
tolerance: 0.2

### Output phase shift?

::: misses
- [any] $-\arctan\frac{a\sin\omega}{1 - a\cos\omega}$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 0.9; L = 5 | 12; k = 0.4 | 0.7

## A sequence ({a})ⁿu[n]; and a length-{L} rectangle of ones.

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

### Energy of the exponential?

::: misses
- [any] $1/(1 - a^2)$.
:::
:::

::: part
answer: abs(sin(k*pi/2)/sin(k*pi/(2*L)))
tolerance: 0.5%

### The rectangle's DTFT magnitude at ω = {k}π/{L}?

::: misses
- [any] Dirichlet kernel.
:::
:::

::: part
answer: 2/L
tolerance: 0.5%

### Its first null, in units of π?

::: misses
- [any] $2\pi/L$.
:::
:::
:::

::: check
kind: parts
given: a = 0.3 | 0.6; b = 1.4 | 2.2; m = 1 | 2; n = 2 | 4

## $X(z) = \frac{1}{(1 - \given{a}z^{-1})(1 - \given{b}z^{-1})}$.

::: part
answer: a/(a - b)*a^n + b/(b - a)*b^n
tolerance: 0.5%

### x[{n}] if the ROC is |z| > {b}?

::: misses
- [any] Both terms right-sided.
:::
:::

::: part
answer: a/(a - b)*a^n
tolerance: 0.5%

### x[{n}] if the ROC is the ring between the poles?

::: misses
- [any] Only the a term is right-sided.
:::
:::

::: part
answer: -b/(b - a)*b^(-m)
tolerance: 0.5%

### x[−{m}] for the ring?

::: misses
- [any] $-Bb^n$ for n < 0.
:::
:::
:::

::: check
kind: parts
given: b = 1 | 2.5; c = 0.6 | -1.2; a = 0.4 | -0.75

## A causal system $H(z) = \frac{\given{b} + \given{c}z^{-1}}{1 - \given{a}z^{-1}}$.

::: part
answer: b
tolerance: 0.5%

### h[0]?

::: misses
- [any] Initial value theorem.
:::
:::

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

### h[1]?

::: misses
- [any] Long division.
:::
:::

::: part
answer: (b + c)/(1 - a)
tolerance: 0.5%

### Steady-state step response?

::: misses
- [any] H(1).
:::
:::
:::

::: check
kind: parts
given: r = 0.75 | 0.9 | 0.97; t = 20 | 45 | 100; n = 3 | 6

## A causal resonator $1/(1 + a_1z^{-1} + a_2z^{-2})$ with poles at {r}e^{±j{t}°}.

::: part
answer: -2*r*cos(t*pi/180)
tolerance: 0.5%

### $a_1$?

::: misses
- [any] $-2r\cos\theta$.
:::
:::

::: part
answer: r^2
tolerance: 0.5%

### $a_2$?

::: misses
- [any] $r^2$.
:::
:::

::: part
answer: r^n*sin((n + 1)*t*pi/180)/sin(t*pi/180)
tolerance: 0.5%

### h[{n}]?

::: misses
- [any] $r^n\sin((n + 1)\theta)/\sin\theta$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 0.8; n = 3 | 5; r = 0.85 | 0.96

## A double pole at {a}, causal; and a single pole at radius {r}.

::: part
answer: (n + 1)*a^n
tolerance: 0.5%

### x[{n}] for $1/(1 - \given{a}z^{-1})^2$?

::: misses
- [any] $(n + 1)a^n$.
:::
:::

::: part
answer: ln(0.001)/ln(r)
tolerance: 0.5%

### Samples for the single pole's term to fall to 0.1%?

::: misses
- [any] $\ln 0.001/\ln r$.
:::
:::
:::

::: check
kind: parts
given: N = 6 | 10 | 32; s = 8 | 48

## A comb filter $1 - z^{-N}$, N = {N}, at {s} kHz.

::: part
answer: s/N
unit: kHz
tolerance: 0.5%

### First nonzero null?

::: misses
- [any] $f_s/N$.
:::
:::

::: part
answer: 2
tolerance: 0.5%

### Peak gain (between nulls)?

::: misses
- [any] $|1 - e^{-j\omega N}|$ reaches 2.
:::
:::
:::

::: check
kind: parts
given: f = 21 | 34 | 47; s = 16 | 25 | 30

## A {f} kHz tone sampled at {s} kHz, then played back through a zero-order hold.

::: part
answer: abs(f - s*round(f/s))
unit: kHz
tolerance: 0.01

### Apparent frequency?

::: misses
- [any] Fold about the nearest multiple of $f_s$.
:::
:::

::: part
answer: 20*log(abs(sin(pi*abs(f - s*round(f/s))/s)/(pi*abs(f - s*round(f/s))/s)))
unit: dB
tolerance: 0.02

### Hold droop at that apparent frequency?

::: misses
- [any] $20\log(\sin x/x)$.
:::
:::
:::

::: check
kind: parts
given: w = 0.15 | 0.3; s = 16 | 96; B = 12 | 18; M = 4 | 64

## A digital filter with cutoff {w}π runs at {s} kHz on a {B}-bit converter oversampled ×{M}.

::: part
answer: w*s/2
unit: kHz
tolerance: 0.5%

### Equivalent analog cutoff?

::: misses
- [any] $\omega_cf_s/2\pi$.
:::
:::

::: part
answer: 6.02*B + 1.76 + 10*log(M)
unit: dB
tolerance: 0.05

### In-band SNR?

::: misses
- [any] $6.02B + 1.76 + 10\log M$.
:::
:::
:::

::: check
kind: parts
given: p = 15 | 20; s = 48 | 96 | 192; A = 60 | 80

## An anti-aliasing filter must pass {p} kHz and give {A} dB at the lowest frequency that aliases into the passband, sampling at {s} kHz.

::: part
answer: s - p
unit: kHz
tolerance: 0.5%

### Where must the attenuation be reached?

::: misses
- [any] $f_s - f_p$.
:::
:::

::: part
answer: ceil(log(10^(A/10) - 1)/(2*log((s - p)/p)))
tolerance: 0

### Smallest Butterworth order (corner at {p} kHz)?

::: misses
- [any] Round up $\log(10^{A/10} - 1)/(2\log((f_s - f_p)/f_p))$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | -0.8; z = 2 | -1.5; n = 1 | 3

## A sequence $x[n] = (\given{a})^nu[n]$.

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

### X(z) at z = {z}?

::: misses
- [any] $1/(1 - az^{-1})$.
:::
:::

::: part
answer: z^(-n)/(1 - a/z)
tolerance: 0.5%

### The transform of x[n − {n}] at the same z?

::: misses
- [any] Multiply by $z^{-n_0}$.
:::
:::
:::

::: check
kind: parts
given: k = 0.3 | 0.5 | 2.5; a = 0.2 | 0.6

## Ideal reconstruction from a single sample x[0] = 1; and the DTFT of ({a})ⁿu[n].

::: part
answer: abs(sin(pi*k)/(pi*k))
tolerance: 0.5%

### |x(t)| at t = {k}T?

::: misses
- [any] The sinc at t/T.
:::
:::

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

### Ratio of |X| at ω = 0 to |X| at ω = π?

::: misses
- [any] $\frac{1/(1 - a)}{1/(1 + a)}$.
:::
:::
:::

::: check
kind: parts
given: a = 0.4 | 0.7 | 0.9

## A causal sequence is $x[n] = n(\given{a})^nu[n]$.

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

### What is the sum of its samples?

::: misses
- [any] $X(1) = a/(1 - a)^2$.
:::
:::

::: part
answer: 3*a^3
tolerance: 0.5%

### What is x[3]?

::: misses
- [any] $na^n$ at n = 3.
:::
:::
:::

::: check
kind: parts
given: s = 16 | 48 | 192; x = 0.25 | 0.4

## A zero-order-hold DAC at {s} kHz is used up to {x} of its rate.

::: part
answer: -20*log(sin(pi*x)/(pi*x))
unit: dB
tolerance: 0.5%

### How much does it droop there?

::: misses
- [any] $-20\log_{10}\frac{\sin(\pi x)}{\pi x}$.
:::
:::

::: part
answer: x*s
unit: kHz
tolerance: 0.5%

### What frequency is that?

::: misses
- [any] x times the sample rate.
:::
:::
:::

::: check
kind: parts
given: L = 3 | 5 | 8; w = 0.2 | 0.7

## A length-{L} moving average (h = 1/L) is evaluated at ω = {w} rad.

::: part
answer: abs(sin(L*w/2)/(L*sin(w/2)))
tolerance: 0.5%

### What is |H| there?

::: misses
- [any] $|\sin(L\omega/2)/(L\sin(\omega/2))|$.
:::
:::

::: part
answer: (L - 1)/2
unit: samples
tolerance: 0.5%

### What is its group delay?

::: misses
- [any] (L − 1)/2.
:::
:::
:::
:::
