http://mathworld.wolfram.com/PairingFunction.html
A pairing function is a function that reversibly maps ℤ*×ℤ* onto ℤ*, where ℤ* = {0, 1, 2, ...} denotes nonnegative integers.
https://en.wikipedia.org/wiki/Pairing_function
The Cantor pairing function is a primitive recursive pairing function
π : ℕ × ℕ → ℕ
defined by
π (k₁, k₂) := ½ (k₁ + k₂)(k₁ + k₂ + 1) + k₂.
https://mathphys.fsk.uni-heidelberg.de/w/wp-c...
Dazu geben wir zunächst eine Paarfunktion
Bijektion f: ω × ω ↔ ω an:
Setze f(n,m) = 2ⁿ(2 m+1) - 1 .
https://www.uni-trier.de/fileadmin/fb4/prof/I...
Das Schema lässt sich auch formal notieren als Cantorsche Paarfunktion:
= (i + j)(i + j + 1)/2 + j
Also:
<0,0> = 0, <1,0> = 1, <0,1> = 2, <2,0> = 3, ...