You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can indeed represent a pair of nonnegative integers~$a, b$ as the product $2^a 3^{\smash{b}}$, because the function $(a, b)\mapsto 2^a 3^b$ is injective, by the {\em fundamental theorem of arithmetic}.
Here are possible definitions for `cons`, `car`, and `cdr`: