## Pile Of Oranges

#### Problem

A pile of oranges are arranged to make a square based pyramid by having one orange on the top layer, four oranges on the second layer, nine oranges on the third layer, and so on. Such that consecutive layers will have a number of oranges equal to consecutive square numbers: 1, 4, 9, 16, 25, ...

If there were one-thousand oranges in the pile used to make the pyramid not all of them would be needed. How many oranges would be left over?

Problem ID: 34 (Feb 2001) Difficulty: 1 Star