0%

Problem 24


Problem 24


Lexicographic Permutations

A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabetically, we call it lexicographic order. The lexicographic permutations of 0, 1 and 2 are:

012021102120201210

What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9?


字典序排列

排列指的是将一组对象放置为特定的顺序。例如,3124是数字1234的一个排列。将所有排列按照数字大小或字母先后进行排序称为字典序。数字012的字典序排列是:

012021102120201210

在数字0123456789的字典序排列中,处于第一百万位的排列是什么?


Gitalking ...