2
\$\begingroup\$

Find a bijective function which maps integers to arbitrarily large tuples of integers. Given the input \$n\$, output the tuple it matches to.

Edit: The empty tuple is included in the mapping.

\$\endgroup\$
2

0

Browse other questions tagged or ask your own question.