For starters, I will explain that a triangle number is any number X, such that if X dots were aranged in a a shape the first row would have one dot, the second two dots, the third three and so on, forming a triangular shape.
The first few triangle numbers are 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120. In other words you start by adding one, then two then, three etc. The formula for these is (n(n+1))/2.
Next square numbers which we learn as N squared. But they can also be expressed as ((n(n+1))/2) + ((n(n-1))/2). Here the first few are: 1, 4 ,9 ,16, 25, 36, 49. In this case, instaed of adding 1 then 2 then 3 you add 1 then 3 then 5 then 7 (i.e. every other number).
Next are pentagonal numbers which are also comprised of dots where the Nth pentagonal number is the number of dots in the figure. The first few are: 1, 5, 12, 22, 35, 51. Notice how first you add 1 then 4 then 7 then 10 then 13 (i.e. every third number). The formula is ((n(n+1))/2) + ((2)(n(n-1))/2).
Can you find a pattern in N-gons and prove it?
n-th number of N-gonal
(1+(1+(n-1)*(N-2)))*n/2
or
2n+Nnn/2-Nn/2-nn
N=3
n=1: 1
n=2: 3
n=3: 6
n=4: 10
N=4
n=1: 1
n=2: 4
n=3: 9
n=4: 16
we search for the sum of the row
1,1+(N-2),1+2*(N-2),...,1+(n-1)*(N-2)
this is
1+1+(N-2)+1+2*(N-2)+...+1+(n-1)*(N-2)
=1+1+1+1+...+(N-2)(1+2+...+(n-1))
=n +(N-2)(1+(n-1)+2+(n-2)+3+(n-3)+...)
=n +(N-2)(n +n +n +...)
=n +(N-2)((n-1)/2)*n) (for n odd)
or=n +(N-2)((n-2)/2)*n+n/2) (for n even)
||
((n-1)/2)*n
=n(1+(N-2)(n-1)/2)
=n/2(2+(N-2)(n-1))
or n(1+1+(N-2)(n-1))/2
Why do I write it like this?
For a general row with format
U[1]=b
U[n]=U[n-1]+a
The sum S[n] is:
n*(u[1]+U[n])/2
here b=1 and a=N-2
|
Posted by bart
on 2002-12-04 11:47:47 |