triangular_number
Calculate triangular numbers using the formula T_n = n(n+1)/2 to find the sum of integers from 1 to n.
Instructions
Calculate the nth triangular number T_n = n(n+1)/2. (Domain: arithmetic, Category: basic_sequences)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |