Pascal's triangle#2710

Pascal's triangle

1 Sekunde
64 Megabyte
Sehr leicht

Pascal's triangle is a triangle of numbers where the edges are ones, and each number inside is equal to the sum of the two numbers above it to the left and right.

Due to a typesetting error, Pascal's triangle was written out in a single line, forming the sequence: 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, \ldots

Eingabe

A line containing an integer (N \leq 600) is given.

Ausgabe

Print the -th term of the resulting sequence.

Beispiele

Beispiel 1

Loading
Loading