Let be the number obtained on rolling a fair die. If the probability that the system
has a unique solution is , then the sum of and all possible values of is:
We seek the values of n—obtained by rolling a fair die, so that n ∈ {1,2,3,4,5,6}—for which the system of equations
has a unique solution. A linear system is uniquely solvable exactly when the determinant of its coefficient matrix is nonzero. The coefficient matrix here is
Expanding this determinant along the first row gives
Each of the 2×2 determinants evaluates as follows:
First minor:
Second minor:
Third minor:
Substituting these into the expansion yields
Factoring shows
Hence the determinant is nonzero precisely when n ≠ 1 and n ≠ 2. Since a fair die roll gives n ∈ {1,2,3,4,5,6}, the system has a unique solution exactly for n ∈ {3,4,5,6}, which comprises 4 out of the 6 equally likely outcomes. The probability is therefore 4/6, which we write as k/6, giving k = 4.
Finally, summing k and all possible values of n that yield a unique solution gives
Hence the correct answer is 22.
Tagged Systems of linear equations. Machine-assigned, so read it as a strong shortlist rather than a verdict.