i want a formula for counting triangles in a big triangle

for example:

http://www.spoj.pl/content/duonghanguyen:tricount.png

level 1=1

level 2=5

level 3=13 and son on>>>

plz help me

Printable View

- June 30th 2010, 04:58 AMmido22formula for counting triangles
i want a formula for counting triangles in a big triangle

for example:

http://www.spoj.pl/content/duonghanguyen:tricount.png

level 1=1

level 2=5

level 3=13 and son on>>>

plz help me - June 30th 2010, 05:16 AMZaph
- June 30th 2010, 05:37 AMmido22
thank u very much for quick reply

- July 1st 2010, 04:29 PMWilmer
Or go here:

1,4,10,20 - OEIS Search Results - July 1st 2010, 07:19 PMsimplependulum
Please check this

When is odd , the formula is

When is even , it is

Or generally the number of triangles we can count is

Or