JMC 2008 Q23
23. In a 7-digit numerical code each group of four adjacent digits adds to 16 and each group of five adjacent digits adds to 19. What is the sum of all seven digits?
- A 21
- B 25
- C 28
- D 32
- E 35
Junior Mathematical Challenge 2008, Question 23. © UK Mathematics Trust. Original paper on ukmt.org.uk
Answer: B 25
Let the 7-digit code be \(abcdefg\). It may be deduced that \(a = 3\) since \(b + c + d + e = 16\) and \(a + b + c + d + e = 19\). By using similar reasoning, it may be deduced that \(b = c = e = f = g = 3\).
As \(a + b + c + d = 16\), \(d = 7\); so the code is 3337333.
Solution © UK Mathematics Trust, from the JMC 2008 solutions.