Definition 2.2.8 (beta indexing). The function β:ℕ2→ℕ is defined by β(x,i)=a%(m(i+1)+1), where a and m are the unique numbers such that x=⟨a,m⟩.