triangular_num | R Documentation |
Get nth triangular number
triangular_num(n)
n |
A non-negative integer. |
The n-th triangular number. (Where the 0th triangular number is 0.)
triangular_num(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.