Answer
a)Code Algorithem in if-else condition
b)667
c)experiment with small input values until you began to see a pattern.
Work Step by Step
a.
if (n = 1 or n = 2)
then (the answer is the list containing the single value n)
else
(Divide n by 3, obtaining a quotient q and a remainder r.)
if (r = 0)
then (the answer is the list containing q 3s)
if (r = 1)
then (the answer is the list containing (q 1) 3s and two 2s;)
if (r = 2)
then (the answer is the list containing q 3s and one 2)
b. The result would be the list containing 667 threes.
c. You probably experimented with small input values until you began to
see a pattern.