Sunday, September 19, 2010

Feroy's Attempt at Prompt #3

Please don't hurt me if I do this wrong.

Anywho, Question 1:

A. What is the sum of blah blah blah something something.

if n = 2, then s = 2 + 4 = 6

if n = 5, then s = 2 + 4 + 6 + 8 + 10 = 30

So s = 2 + 4 + 6 = 12

B. The formula I used for this was n x (n + 1) So say you have n = 6. You would multiply 6 x 7 to get your sum, which is 42. So instead of adding, like in week 2, you're going to multiply them.

C. It's kinda of like what we did last week, but multiplying instead of adding. And requiring you to change the formula a bit. Yeah...

Question 2:

Pretty much the same thing using odd numbers.

A.

if n=1, s = 1
if n=2, s = 1 + 3 = 4
if n=3, s = 1 + 3 + 5 = 9
if n=4, s = 1 + 3 + 5+ 7 = 16
if n=5, s = 1 + 3 + 5+ 7+9 = 25
if n=6, s = 1 + 3 + 5+ 7+9+11 = 36
if n=7, s = 1 + 3 + 5+ 7+9+11+13 = 49
if n=8, s = 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 = 64

B. Don't waste your time adding all of this. Just square n. (n^2)

C. This holds true for all numbers substituted for n because all you're doing is multiplying n by itself, or square it, to get your sum.

No comments:

Post a Comment