CEMC Banner

Problem of the Week
Problem C
Check Please 1

Debit and credit cards contain account numbers which consist of many digits. When shopping online, customers are often asked to type in their account number. Because there are so many digits, it is easy to make a mistake. The last digit of the number is a specially generated check digit which can be used to verify whether or not the number is valid. A common algorithm used for verifying numbers is called the Luhn Algorithm. The steps performed in the Luhn Algorithm are outlined in the flowchart below. Two examples are provided.

An alternative format for the flowchart
diagram follows.

Example 1

  1. Number: \(135792\)

  2. Reversal: \(297531\)

  3. Digits in odd positions are underlined: \(\underline{2}9\underline{7}5\underline{3}1\) \[\begin{aligned} A&=2+7+3\\ &=12 \end{aligned}\]

  4. Double remaining digits: \[\begin{aligned} 2 \times 9 &= 18\\ 2 \times 5 &= 10\\ 2 \times 1 &= 2 \end{aligned}\]

  5. Calculate \(B\): \[\begin{aligned} B &= (1+8) + (1+0) + 2\\ &= 9 + 1 + 2\\ &= 12 \end{aligned}\]

  6. \(C=12+12=24\)

  7. \(C\) does not end in zero, so the number is not valid.

Example 2

  1. Number: \(1357987\)

  2. Reversal: \(7897531\)

  3. Digits in odd positions are underlined: \(\underline{7}8\underline{9}7\underline{5}3\underline{1}\) \[\begin{aligned} A&=7+9+5+1\\ &=22 \end{aligned}\]

  4. Double remaining digits: \[\begin{aligned} 2 \times 8 &= 16\\ 2 \times 7 &= 14\\ 2 \times 3 &= 6 \end{aligned}\]

  5. Calculate \(B\): \[\begin{aligned} B &= (1+6) + (1+4) + 6\\ &= 7 + 5 + 6\\ &= 18 \end{aligned}\]

  6. \(C=22+18=40\)

  7. \(C\) ends in zero, so the number is valid.

The number \(13X9\ Y659\ 784\) is a valid card number when verified by the Luhn Algorithm, where \(X\) and \(Y\) are each single digits such that \(X \le Y\).

Determine all possible values of \(X\) and \(Y\).

Themes: Algebra, Number Sense