Skip to content

102/sudan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sudan

The Sudan function. In the theory of computation, the Sudan function is an example of a function that is recursive, but not primitive recursive. This is also true of the better-known Ackermann function. The Sudan function was the first function having this property to be published.

It was discovered (and published) in 1927 by Gabriel Sudan, a Romanian mathematician who was a student of David Hilbert.

Definition

$$\begin{array}{lll} \\\ F_0(x, y) & = x+y \\\ F_{n+1}(x,0) & = x & \text{if }n \geq 0 \\\ F_{n+1}(x,y+1) & = F_n(F_{n+1}(x,y),F_{n+1}(x,y)+y+1 & \text{if }n \geq 0 \end{array}$$

Usage

const F = require("sudan");

console.log(F(1n, 4n, 7n)); // => 759n

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •