can you help with something more helpful actually this much i know. i want a generalized derivation .
although i have derived half of the derivation for triangles which are facing upwards with formula
n*(n+1)*(n+2)/6. For the trianges which are facing downwards i am not able to derive the formula.
So if anyone can help i shall be very thankful.