Question: do loops and sequences

Hi, I've been stuck on these 4 questions for the longest time. I have an assignment due next week, and I have absolutely no idea what to do! Please help me! (I'm using Maple 12 by the way)

 

1. Write a do loop to store the sequence [1,5,10,15,20] in a 1-dimensional array.

2. Write a pair of nested do loops to store the following 4x4 array:
1    3     9     27
2    6   18    54
3    9    27   81
4  12   36   108

3. Write a procedure to sum all the numbers in a list L of numbers.

4. Write a procedure to calculate n!. (p.s. n!=1x2x3x4...xn)

Please Wait...