Skip to main content
Post Closed as "Duplicate" by emanresu A, rydwolf, Dingus, caird coinheringaahin g code-golf
added 53 characters in body
Source Link

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.

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

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.

edited tags
Link
user
  • 387
  • 2
  • 21
  • 68
Source Link

Bijective Function (mapping integer to arbitrarily large integer tuple)

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