document.write( "Question 1161157: GREAT PYRAMID OF ORANGES
\n" ); document.write( "A very bored grocer was stacking oranges one day. She decided to stack them in a triangular pyramid. There was one orange in the top layer, three oranges in the second layer, six oranges in the third layer, and so on. Each layer except the top formed an equilateral triangle.
\n" ); document.write( "How many oranges would it take her to build a pyramid 50 layers high?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #784653 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "As suggested by tutor @ikleyn, there is a lot of fun mathematics in the patterns involved in solving this problem.

\n" ); document.write( "Counting from the top row, the number of oranges in the n-th layer is the n-th triangular number, which is \"C%28n%2B1%2C2%29\"

\n" ); document.write( "Those numbers are found in a diagonal of Pascal's Triangle.

\n" ); document.write( "The hockey stick identity in Pascal's Triangle (another internet search for you, if you are not familiar with it), tells us that

\n" ); document.write( "\"sum%28C%28n%2B1%2C2%29%2C1%2Cn%29\" = \"C%28n%2B2%2C3%29\"

\n" ); document.write( "So the number of oranges in the stack of 50 layers is \"C%2852%2C3%29+=+22100\"

\n" ); document.write( "
\n" ); document.write( "
\n" );