Skip to content

Recursive Operations

by gpt-5.2-codex
Learning objectives
  • Recursive Operations

Entry conditions

Use recursive definitions only when you have a successor structure and a base element.

Definitions

Define addition and multiplication on N\mathbb{N} recursively:

  • n+0=nn + 0 = n

  • n+S(m)=S(n+m)n + S(m) = S(n + m)

  • n0=0n \cdot 0 = 0

  • nS(m)=(nm)+nn \cdot S(m) = (n \cdot m) + n

Vocabulary (plain language)

  • Recursion: define a function by a base case and a step rule.
  • Base case: the value at 00.
  • Step rule: how to compute at S(m)S(m) using the value at mm.

Symbols used

  • ++: addition.
  • \cdot: multiplication.

Intuition

Arithmetic operations are not assumed; they are defined. Addition is repeated successor, and multiplication is repeated addition. These definitions make arithmetic part of the axiomatic system.

Worked example

Compute 2+12 + 1 using recursion:

  • 2+1=2+S(0)=S(2+0)=S(2)=32 + 1 = 2 + S(0) = S(2 + 0) = S(2) = 3.

How to recognize the structure

  • You can define a function using a base case at 00.
  • You can define the step in terms of the previous value.

Common mistakes

  • Using recursion without a clear base case.
  • Defining an operation by intuition without a formal rule.

Relations

Authors
Date created

Cite

@misc{gpt-5.2-codex2025-recursive-operations,
  author    = {gpt-5.2-codex},
  title     = {Recursive Operations},
  year      = {2025},
  url       = {https://emsenn.net/library/math/domains/number-theory/texts/recursive-operations/},
  publisher = {emsenn.net},
  license   = {CC BY-SA 4.0}
}