Schyper

SUM OF THE FIRST n NATURAL NUMBERS

This program computes the sum of the first n natural numbers from 1 to n. It is also known as the nth partial sum of the series 1 + 2 + 3 + 4 + 5 + ⋯ and also as the nth triangular number.

BIRTHDAY

Born:

Place:

INPUT



Compute sum upto terms
RESULT
Quod Erat Inveniendum
EXERCISE

From the book Propositiones Ad Acuendos Juvenes by Alcuin of York:

XLII. PROPOSITIO DE SCALA HABENTE GRADVS CENTVM.

Est scala una habens gradus C. In primo gradu sedebat columba una: in secundo duae; in tertio tres; in quarto IIII; in quinto V. Sic in omni gradu usque ad centesimum. Dicat, qui potest, quot columbae in totum fuerunt?

42. PUZZLE OF THE HUNDRED STEPS

There is a ladder which has 100 steps. One pigeon sat on the first step, two pigeons on the second, three pigeons on the third, four on the fourth, five on the fifth, and so on up to the hundredth step. How many pigeons were there in total on the ladder?

Alcuin's Ladder of Birds (Source: The Graphics Fairy)
Compute the number of pigeons
Q.E.I.
FUNCTIONS