Skip to main content
Glama

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)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nYes

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-math-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server