triangular_numbers
Generate the first n triangular numbers (1, 3, 6, 10, 15, ...) using the formula n(n+1)/2. This tool calculates triangular numbers for arithmetic applications.
Instructions
Generate the first n triangular numbers (1, 3, 6, 10, 15, ...). nth triangular number = n(n+1)/2. (Domain: arithmetic, Category: general)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>"
},
"name": "triangular_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |