Superpermutations
gregegan.net
gregegan.net
B(k=3, n=2) = 112132233
B(k=4, n=2) = 1121314223243344
B(k=3, n=3) = 111211312212313213322232333
[1] i.e. "111", which isn't a permutation of the set {1, 2, 3}, but can be made from the elements of that setAnd I just realized I mistakenly conflated 5-digit permutations of 5 digits with 5-digit passcodes of 10 digits. Whoops.
* https://catless.ncl.ac.uk/Risks/7/69#subj5.1
Permutation City, Diaspora, and his various collections of short stories (e.g. Axiomatic, Luminous) are worth reading.
He takes ideas, like what's linked in the OP, and builds worlds and stories around them in terms of their implications and impacts on society and individuals.
https://news.ycombinator.com/item?id=8895331
He posits a different structure for spacetime and then builds a whole universe around it. Some of it is indeed heavy going but a lot of it is also really inspired storytelling.
De Brujin sequences as mentioned in one of the comments deals with the generalized case involving repetition as well. There is an interesting mnemonic for remembering the composition of different "ganas" (syllabic units) in Sanskrit poetry that is an example of De Brujin sequence - Ya-Maa-Taa-Raa-Ja-Bhaa-Na-Sa-La-Gam . In Sanskrit metre, syllables can be either long (Maa for example) or short (Ma). The basic units are composed of 3 syllables and thus 2x2x2 = 8 possible types - long-short-long for example. These basis units are called ganas and have a name attached to them. The mnemonic helps one decode the composition of a gana. If you want to know the composition of "Ja Gana" for example, go to the part that starts with Ja and get the substring with three syllables starting with Ja i.e Ja-Bhaa-Na. Since these syllables are short, long and short, Ja Gana corresponds to short, long and short.
[1] https://twitter.com/johncarlosbaez/status/105338502434972057...
Edit: Formatting and correction
This method produces superpermutations of length 1! + 2! + ... + n!, which was believed for a long time to be the best possible. But Greg Egan’s new result shows it’s possible to do a lot better than that.
[1] On Twitter: https://twitter.com/gregeganSF