title: Combine n integers into a single unique representation
body: <p>Similar to this question:
  <a href="https://stackoverflow.com/questions/16697645/how-to-combine-three-integers-into-one-unique-tag-such-that-the-tag-stays-integ">How to combine three integers into one unique tag, such that the tag stays integer in C++?</a></p>
  
  <p>But for any number of integers?</p>
  
  <p>If we want to narrow it down more, lets say we have 30 integers, each with a value between 0 and 5. Is it possible to define a single integer value that will uniquely define the list of integers?</p>