Question 5Divisibility
A five-digit number $abcde$ is formed using each of the digits 1, 2, 3, 4, 5 exactly once. The three-digit number $cde$ is divisible by 3, $abc$ is divisible by 4 and $bcd$ is divisible by 5. Find the value of $a(b - c + d) + e$.
Answer and solution
Correct answer: 6
Solution
1. $bcd$ is divisible by 5, so $d = 5$.
2. $abc$ is divisible by 4, so $bc$ is divisible by 4. With digits from $\{1,2,3,4\}$, $bc \in \{12, 24, 32\}$.
3. $cde$ divisible by 3 needs $c + 5 + e$ divisible by 3. For $bc = 12$: $c = 2$, $e \in \{3, 4\}$ gives sums 10, 11: no. For $bc = 32$: $c = 2$, $e \in \{1, 4\}$ gives 8, 11: no.
4. For $bc = 24$: $c = 4$, $e \in \{1, 3\}$; $e = 3$ gives $4 + 5 + 3 = 12$: yes. So $a = 1$ and the number is 12453.
5. $a(b - c + d) + e = 1 \times (2 - 4 + 5) + 3 = 6$.
Quick check: $124 \div 4 = 31$, $245 \div 5 = 49$, $453 \div 3 = 151$.
Answer: 6
2. $abc$ is divisible by 4, so $bc$ is divisible by 4. With digits from $\{1,2,3,4\}$, $bc \in \{12, 24, 32\}$.
3. $cde$ divisible by 3 needs $c + 5 + e$ divisible by 3. For $bc = 12$: $c = 2$, $e \in \{3, 4\}$ gives sums 10, 11: no. For $bc = 32$: $c = 2$, $e \in \{1, 4\}$ gives 8, 11: no.
4. For $bc = 24$: $c = 4$, $e \in \{1, 3\}$; $e = 3$ gives $4 + 5 + 3 = 12$: yes. So $a = 1$ and the number is 12453.
5. $a(b - c + d) + e = 1 \times (2 - 4 + 5) + 3 = 6$.
Quick check: $124 \div 4 = 31$, $245 \div 5 = 49$, $453 \div 3 = 151$.
Answer: 6