Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 1 12I Solution Created 2026-09-23 Updated 2026-09-25
The primitive recursive functions are the smallest class containing zero, successor, and projections and closed under composition and primitive recursion. Addition is defined byand multiplication byThus both are primitive recursive directly from the definition. Inductively,is primitive recursive. For fixed ,so is primitive recursive.
Encode by . The exponent functions decode the coordinates. Thereforeis a primitive recursive one-number encoding of ; the finite product is built from the primitive recursive multiplication and exponentiation just established.
The Fibonacci function is primitive recursive. Encode the pair byStarting with , primitive recursion usingconstructs , and .
There is no universal exponential bound of the stated form. The primitive recursive functionexceeds for every fixed once is sufficiently large.
Past exam of the mathematics course of the University of Cambridge 2026 ii Paper 1 4J b Solution Created 2026-09-24 Updated 2026-09-25
Define and . This is primitive recursion from a projection and successor, so is primitive recursive function.
Predecessor function Created 2026-10-03 Updated 2026-10-06
The predecessor function on the nonnegative integers is and . This is a primitive recursive function by primitive recursion from the zero and projection functions.
Primitive recursive function in intension 2026-10-07
A valid finite construction expression from the initial functions of recursion theory by function composition in recursion theory and primitive recursion. Its extension is a primitive recursive function. The construction grammar supplies both a decidable syntax and a total computable interpreter, but no uniformly primitive recursive interpreter for all valid codes.
Primitive recursive pairing function 2026-10-06
A pairing function whose forward map and two inverse coordinate functions are primitive recursive functions. For example, the Cantor pairing function has such inverses: find the diagonal index by bounded minimization over integers at most the encoded value, then recover by subtraction. It enables finite tuples to be decoded within a primitive recursive construction.