Books are like mirrors: if a fool looks in, you cannot expect a genius to look out - J.K. Rowling
An equilateral triangular base is filled by placing eight balls in the first row, 7 balls in the second row and so on with one ball in the last row. After this base layer, second layer is formed by placing 7 balls in its first row, 6 balls in its second row and so on with one ball in its last row. Continuing this process, a pyramid of balls is formed with one ball on top. How many balls are there in the pyramid?