Our club has 10 members, and we need to appoint a president, a vice-president, and a secretary. How many ways can we do this if:
(a) Each member can hold at most one office?
(b) Members can hold any number of offices?
(a) There are 560 ways.
(b) There are 1020 ways.