document.write( "Question 1173561: Suppose apples are in the shape of a pyramid. On the top layer, there is 1 apple. On the second layer, there are 1+2 apples. On the third layer, there is 1+2+3 apples. On the fourth layer, there 1+2+3+4 apples. If there are N number of layers, how many apples are there in total? \n" ); document.write( "
Algebra.Com's Answer #798799 by ikleyn(52788)![]() ![]() You can put this solution on YOUR website! . \n" ); document.write( " \r\n" ); document.write( "\r\n" ); document.write( "The number of balls in the k-th layer from the top is\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "For more details, see this link\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://math.stackexchange.com/questions/1148720/finding-the-formula-for-the-number-of-golf-balls-in-a-triangular-pyramid-with-n\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "/\/\/\/\/\/\/\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Be aware (!)\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "1) The formula in the post by @Boreal is INCORRECT (!)\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "2) The formula in the post by @ewatrrr \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " The correct writing is THIS \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " and it gives that final compact formula as presented in my post.\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( ". . . . . . . . \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "@ewatrrr fixed her post after seeing my solution.\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " \n" ); document.write( " |