1) COOLnumbers are the sequence 1, 1, 2, 3, 5, 8, 13, 21, 34 … As you can (probably) see, each COOL number is the sum of the previous two. ugly numbers, on the other hand, are the sum of the previous three.
a. Find the 19th and 119th ugly numbers.
b. Use “bar” to give a bar plot of the first 10 ugly numbers. Label your axes.
c. Plot the first 100 ugly numbers on a logarithmic y-scale. Do you notice anything? What might it mean?
Can anyone help me make this script for matlab?