SMC 2007 Q18
18. The year 1789 (when the French Revolution started) has three and no more than three adjacent digits (7, 8 and 9) which are consecutive integers in increasing order. How many years between 1000 and 9999 have this property?
- A 130
- B 142
- C 151
- D 169
- E 180
Senior Mathematical Challenge 2007, Question 18. © UK Mathematics Trust. Original paper on ukmt.org.uk
Answer: A 130
There are 9 years of the form 123\(n\) as \(n\) may be any digit other than 4. Similarly, there are 9 years each of the forms 234\(n\), 345\(n\), 456\(n\), 567\(n\) and 678\(n\), but 10 years of the form 789\(n\) as, in this case, \(n\) may be any digit. There are also 9 years of the form \(n\)012 and 9 of the form \(n\)123, as in both cases \(n\) may be any digit other than 0. However, there are 8 years of the form \(n\)234 as in this case \(n\) cannot be 0 or 1. Similarly, there are 8 years each of the forms \(n\)345, \(n\)456, \(n\)567, \(n\)678 and \(n\)789.
So the total numbers of years is 1 × 10 + 8 × 9 + 6 × 8 = 130.
Solution © UK Mathematics Trust, from the SMC 2007 solutions.