Back to Induction

Exercise 1

Avg difficulty 2.5

A database uses record identifiers that are alphanumeric strings in which the 1010 decimal digits and 2626 upper-case letters are valid symbols. The criteria that define a valid record identifier are recursive. A valid record identifier of length n≥2n\geq 2 can be constructed in the following ways:

  • beginning with any upper-case letter other than DD and followed by any valid record identifier of length n−1n-1;
  • beginning with 1C1C, 2K2K, or 7J7J and followed by any valid record identifier of length n−2n-2; or
  • beginning with DD and followed by any string of n−1n-1 decimal digits.

Let r(n)r(n) denote the number of valid record identifiers of length nn. We take r(0)=1r(0)=1 and note that r(1)=26r(1) = 26. Find a recursion for r(n)r(n) when n≥2n\geq 2 and use it to compute r(5)r(5).

Keller & Trotter, Applied Combinatorics, Induction — Exercises, Exercise 1

AI Tutor

Adapted from Applied Combinatorics © 2006–2025 Mitchel T. Keller, William T. Trotter. Licensed under CC BY-SA 4.0. Source: Applied Combinatorics. Imported at revision 07286c4.