The derivation of a formula for the sum of natural numbers which are selected by a given rule from the square grid containing the numbers 1, 2, 3, .., n^2.