collatz_sequence
Generate the Collatz sequence (3n+1 problem) starting from a given integer until reaching 1, demonstrating the iterative mathematical process.
Instructions
Generate the Collatz sequence (3n+1 problem) starting from n until reaching 1. (Domain: arithmetic, Category: iterative_sequences)
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": "collatz_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |