2.19: 4-digit codes from digits 1–9

0606/23/O/N/20 — Question 6 · 6 marks

A 4-digit code is to be formed using 4 different numbers selected from 1, 2, 3, 4, 5, 6, 7, 8 and 9.
(a)
Find how many different codes can be formed if there are no restrictions.
[1]
(b)
Find how many different codes can be formed if only prime numbers are used.
[1]
(c)
Find how many different codes can be formed if two even numbers are followed by two odd numbers.
[2]
(d)
Find how many different codes can be formed if the code forms an even number.
[2]