my-server
← Wiki Redirected from Floyd's Triangle

Floyd's triangle

Floyd's triangle is a triangular array of natural numbers used in computer science education. It is named after Robert Floyd. It is defined by filling the rows of the triangle with consecutive numbers, starting with a 1 in the top left corner:

The problem of writing a computer program to produce this triangle has been frequently used as an exercise or example for beginning computer programmers, covering the concepts of text formatting and simple loop constructs.

Properties

  • Summing up the row sums in Floyd's triangle reveals the doubly triangular numbers, triangular numbers with an index that is triangular.

<blockquote></blockquote>

  • Each number in the triangle is smaller than the number below it by the index of its row.

See also

References

External links