2.7: 5-digit codes with digit restrictions

0606/21/O/N/18 — Question 6 · 6 marks

A 5-digit code is to be formed from the digits 1, 2, 3, 4, 5, 6, 7, 8, 9. Each digit can be used once only in any code.
(i)
Find how many codes can be formed if the first digit of the code is 6 and the other four digits are odd.
[2]
(ii)
Find how many codes can be formed if each of the first three digits is even.
[2]
(iii)
Find how many codes can be formed if the first and last digits are prime.
[2]