Skip to main content

Number and Algebra — Diagnostic Tests

Unit Tests

Tests edge cases, boundary conditions, and common misconceptions for number and algebra.

UT-1: Sigma Notation Index Shifting Error

Question:

A student writes the following "simplification":

n=15n=n=04n\sum_{n=1}^{5} n = \sum_{n=0}^{4} n

(a) Identify the error and write the correct identity for shifting the index by 1-1.

(b) Evaluate k=320(k2)\displaystyle\sum_{k=3}^{20} (k - 2) by reindexing to start from k=1k = 1, and verify your answer using the formula for the sum of the first NN positive integers.

(c) Evaluate n=110n(n+1)n=211(n1)2\displaystyle\sum_{n=1}^{10} n(n+1) - \sum_{n=2}^{11} (n-1)^2.

[Difficulty: hard. Tests the common error of shifting the index without adjusting the term.]

Solution:

(a) When shifting the index from nn to n=n1n' = n - 1 (so n=n+1n = n' + 1), the bounds change from n=1n = 1 to n=0n' = 0 and n=5n = 5 to n=4n' = 4, but the general term must also change. The correct identity is:

n=15n=n=04(n+1)\sum_{n=1}^{5} n = \sum_{n'=0}^{4} (n' + 1)

The student's error was writing n=04n\sum_{n=0}^{4} n instead of n=04(n+1)\sum_{n=0}^{4} (n + 1). The LHS equals 1515 but the student's RHS equals 1010.

(b) Let j=k2j = k - 2, so when k=3k = 3, j=1j = 1, and when k=20k = 20, j=18j = 18:

k=320(k2)=j=118j=18×192=171\sum_{k=3}^{20} (k - 2) = \sum_{j=1}^{18} j = \frac{18 \times 19}{2} = 171

Verification: the original sum has 18 terms from 11 to 1818, confirming the result.

(c)

n=110n(n+1)=n=110(n2+n)=10×11×216+10×112=385+55=440\sum_{n=1}^{10} n(n+1) = \sum_{n=1}^{10}(n^2 + n) = \frac{10 \times 11 \times 21}{6} + \frac{10 \times 11}{2} = 385 + 55 = 440

For the second sum, let m=n1m = n - 1, so when n=2n = 2, m=1m = 1, and when n=11n = 11, m=10m = 10:

n=211(n1)2=m=110m2=10×11×216=385\sum_{n=2}^{11} (n-1)^2 = \sum_{m=1}^{10} m^2 = \frac{10 \times 11 \times 21}{6} = 385

Therefore the difference is 440385=55440 - 385 = 55.


UT-2: Binomial Theorem with Non-Standard Exponent

Question:

(a) Find the coefficient of x3x^3 in the binomial expansion of (12x)1/2(1 - 2x)^{-1/2}.

(b) Determine the exact range of xx for which the expansion converges.

(c) A student claims that the coefficient of x2x^2 in (12x)1/2(1 - 2x)^{-1/2} is 12(32)(2)2=3-\dfrac{1}{2} \cdot \left(-\dfrac{3}{2}\right) \cdot (-2)^2 = -3. Identify the error and find the correct coefficient.

[Difficulty: hard. Tests binomial expansion with fractional negative exponent, convergence condition, and sign errors.]

Solution:

(a) Using the general binomial expansion (1+x)n=1+nx+n(n1)2!x2+n(n1)(n2)3!x3+(1 + x)^n = 1 + nx + \frac{n(n-1)}{2!}x^2 + \frac{n(n-1)(n-2)}{3!}x^3 + \cdots with n=12n = -\frac{1}{2} and replacing xx with 2x-2x:

The general term in xkx^k is:

(1/2k)(2x)k\binom{-1/2}{k}(-2x)^k

For k=3k = 3:

(1/23)=(1/2)(3/2)(5/2)3!=15/86=1548=516\binom{-1/2}{3} = \frac{(-1/2)(-3/2)(-5/2)}{3!} = \frac{-15/8}{6} = -\frac{15}{48} = -\frac{5}{16}

(1/23)(2)3=516×(8)=52\binom{-1/2}{3}(-2)^3 = -\frac{5}{16} \times (-8) = \frac{5}{2}

So the coefficient of x3x^3 is 52\dfrac{5}{2}.

(b) The expansion (1+x)n(1 + x)^n for non-integer nn converges when x<1|x| \lt 1. Here we have (12x)1/2(1 - 2x)^{-1/2}, so we need 2x<1|-2x| \lt 1, i.e., x<12|x| \lt \dfrac{1}{2}.

(c) The student computed n(n1)2!(2)2\frac{n(n-1)}{2!}(-2)^2 but used n=12n = -\frac{1}{2} incorrectly. The correct computation for the coefficient of x2x^2:

(1/22)(2)2=(1/2)(3/2)2×4=3/42×4=38×4=32\binom{-1/2}{2}(-2)^2 = \frac{(-1/2)(-3/2)}{2} \times 4 = \frac{3/4}{2} \times 4 = \frac{3}{8} \times 4 = \frac{3}{2}

The student's error was multiplying three terms instead of two: (1/22)\binom{-1/2}{2} only involves two factors n(n1)2!\frac{n(n-1)}{2!}, not three. The correct coefficient is 32\dfrac{3}{2}, not 3-3.


UT-3: Proof by Induction with Divisibility

Question:

Prove by mathematical induction that 7n17^n - 1 is divisible by 66 for all n{Z}+n \in \mathbb{'\{'}Z{'\}'}^+.

A student presents the following proof:

Base case (n=0n = 0): 701=07^0 - 1 = 0, which is divisible by 66.

Inductive step: Assume 7k1=6m7^k - 1 = 6m. Then 7k+11=77k1=7(6m+1)1=42m+6=6(7m+1)7^{k+1} - 1 = 7 \cdot 7^k - 1 = 7(6m + 1) - 1 = 42m + 6 = 6(7m + 1).

(a) Explain the flaw in the student's base case.

(b) Write out a complete, correct proof.

[Difficulty: hard. Tests the common error of starting the base case at the wrong value for divisibility results.]

Solution:

(a) The statement claims "for all n{Z}+n \in \mathbb{'\{'}Z{'\}'}^+", meaning n1n \geq 1. The student verified the base case at n=0n = 0, which is outside the domain of the claim. While n=0n = 0 does happen to satisfy the property, the proof must start at n=1n = 1 to be valid. The base case at n=0n = 0 is unnecessary and, if it were the only base case, would not constitute a valid proof of the claim.

(b)

Base case (n=1n = 1): 711=67^1 - 1 = 6, which is divisible by 66. True.

Inductive hypothesis: Assume 7k1=6m7^k - 1 = 6m for some integer mm, where k1k \geq 1.

Inductive step: We must show 7k+117^{k+1} - 1 is divisible by 66.

7k+11=77k1=7(6m+1)1=42m+71=42m+6=6(7m+1)7^{k+1} - 1 = 7 \cdot 7^k - 1 = 7(6m + 1) - 1 = 42m + 7 - 1 = 42m + 6 = 6(7m + 1)

Since 7m+17m + 1 is an integer, 7k+117^{k+1} - 1 is divisible by 66.

Conclusion: By the principle of mathematical induction, 7n17^n - 1 is divisible by 66 for all n{Z}+n \in \mathbb{'\{'}Z{'\}'}^+.


Integration Tests

Tests synthesis of number and algebra with other topics.

IT-1: Geometric Series Convergence with Function Notation (with Functions)

Question:

The function ff is defined by f(x)=11x2f(x) = \dfrac{1}{1 - x^2} for x(1,1)x \in (-1, 1).

(a) Express f(x)f(x) as the sum of an infinite geometric series, stating the common ratio.

(b) Find the value of n=014n\displaystyle\sum_{n=0}^{\infty} \frac{1}{4^n}.

(c) The series n=0x2n3n\displaystyle\sum_{n=0}^{\infty} \frac{x^{2n}}{3^n} converges for some values of xx. Find the sum to infinity and state the range of xx for which it converges.

[Difficulty: hard. Combines geometric series convergence with function domain restrictions.]

Solution:

(a) Using partial fractions:

f(x)=11x2=1(1x)(1+x)=12(11x+11+x)f(x) = \frac{1}{1 - x^2} = \frac{1}{(1-x)(1+x)} = \frac{1}{2}\left(\frac{1}{1-x} + \frac{1}{1+x}\right)

Each fraction is a geometric series:

11x=n=0xnfor x<1\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n \quad \text{for } |x| \lt 1

11+x=n=0(x)n=n=0(1)nxnfor x<1\frac{1}{1+x} = \sum_{n=0}^{\infty} (-x)^n = \sum_{n=0}^{\infty} (-1)^n x^n \quad \text{for } |x| \lt 1

Therefore:

f(x)=12n=0(1+(1)n)xnf(x) = \frac{1}{2}\sum_{n=0}^{\infty}\big(1 + (-1)^n\big)x^n

This gives f(x)=1+x2+x4+x6+f(x) = 1 + x^2 + x^4 + x^6 + \cdots, a geometric series with first term 11 and common ratio x2x^2, valid for x2<1|x^2| \lt 1, i.e., x(1,1)x \in (-1, 1).

(b) This is a geometric series with first term 11 and common ratio r=14r = \dfrac{1}{4}. Since r<1|r| \lt 1:

S=1114=43S_{\infty} = \frac{1}{1 - \frac{1}{4}} = \frac{4}{3}

(c) Rewrite as n=0(x23)n\displaystyle\sum_{n=0}^{\infty} \left(\frac{x^2}{3}\right)^n.

This is a geometric series with first term 11 and common ratio r=x23r = \dfrac{x^2}{3}.

Convergence requires r<1|r| \lt 1, so x23<1\left|\dfrac{x^2}{3}\right| \lt 1, giving x2<3x^2 \lt 3, i.e., 3<x<3-\sqrt{3} \lt x \lt \sqrt{3}.

S=11x23=33x2S_{\infty} = \frac{1}{1 - \frac{x^2}{3}} = \frac{3}{3 - x^2}


IT-2: Logarithm Equation with Composite Function Domain (with Functions)

Question:

Given f(x)=log3(x+4)f(x) = \log_3(x + 4) and g(x)=x25g(x) = x^2 - 5:

(a) Find (fg)(x)(f \circ g)(x) and state its domain.

(b) Solve (fg)(x)=2(f \circ g)(x) = 2.

(c) A student solves the equation log3(x21)=2\log_3(x^2 - 1) = 2 and obtains x=±10x = \pm\sqrt{10}. Explain why one solution must be rejected.

[Difficulty: hard. Combines logarithm domain restrictions with composite function domain analysis.]

Solution:

(a) (fg)(x)=f(g(x))=log3(x25+4)=log3(x21)(f \circ g)(x) = f(g(x)) = \log_3(x^2 - 5 + 4) = \log_3(x^2 - 1).

Domain restrictions:

  • From g(x)g(x): x{R}x \in \mathbb{'\{'}R{'\}'} (no restriction, polynomial).
  • From ff: the argument must be positive, so x21>0x^2 - 1 \gt 0, giving x<1x \lt -1 or x>1x \gt 1.

Domain of fgf \circ g: (,1)(1,)(-\infty, -1) \cup (1, \infty).

(b) log3(x21)=2    x21=9    x2=10    x=±10\log_3(x^2 - 1) = 2 \implies x^2 - 1 = 9 \implies x^2 = 10 \implies x = \pm\sqrt{10}.

Check against domain: 103.16>1\sqrt{10} \approx 3.16 \gt 1 (valid) and 103.16<1-\sqrt{10} \approx -3.16 \lt -1 (valid).

Both solutions are valid: x=10x = \sqrt{10} and x=10x = -\sqrt{10}.

(c) The student solved log3(x21)=2\log_3(x^2 - 1) = 2 correctly, but without checking the domain. In this case both solutions are valid. However, if the equation were log3(x1)=2\log_3(x - 1) = 2, solving gives x1=9    x=10x - 1 = 9 \implies x = 10, but the domain requires x>1x \gt 1, so x=10x = 10 is valid. If instead the equation were log3(1x)=2\log_3(1 - x) = 2, then 1x=9    x=81 - x = 9 \implies x = -8, but the domain requires 1x>0    x<11 - x \gt 0 \implies x \lt 1, so x=8x = -8 is valid. The key point is that logarithm arguments must always be positive, and extraneous solutions arise when the algebraic solution violates this constraint.


IT-3: Permutations with Restrictions (with Probability)

Question:

Eight people — Alice, Ben, Charlie, Diana, Elliot, Fiona, George, and Hannah — are to be seated in a row of eight chairs.

(a) In how many ways can they be seated if Alice and Ben must sit next to each other?

(b) In how many ways can they be seated if Alice and Ben must NOT sit next to each other?

(c) In how many ways can they be seated if Alice, Ben, and Charlie must all sit together, and Diana and Elliot must also sit together (but the two groups may be in any order)?

[Difficulty: hard. Tests arrangements with multiple restrictions requiring careful case analysis.]

Solution:

(a) Treat Alice and Ben as a single "block." There are 77 items to arrange: the AB block and the other 66 people.

Number of arrangements of the blocks: 7!=50407! = 5040.

Within the AB block, Alice and Ben can be arranged in 2!=22! = 2 ways.

Total: 7!×2=100807! \times 2 = 10080.

(b) Total arrangements without restrictions: 8!=403208! = 40320.

Arrangements where Alice and Ben sit together: 1008010080 (from part a).

Arrangements where they do NOT sit together: 4032010080=3024040320 - 10080 = 30240.

(c) There are two groups: ABC (size 3) and DE (size 2), plus the remaining 3 individuals: F, G, H.

Items to arrange: 2 groups + 3 individuals = 5 items.

Arrangements of the 5 items: 5!=1205! = 120.

Within the ABC group: 3!=63! = 6 arrangements. Within the DE group: 2!=22! = 2 arrangements.

Total: 5!×3!×2!=120×6×2=14405! \times 3! \times 2! = 120 \times 6 \times 2 = 1440.