##
Count natural numbers whose all permutation are greater than that number
January 17, 2017

There are some natural number whose all permutation is greater than or equal to that number eg. 123, whose all the permutation (123, 231, 321) are greater than or equal to 123. Given a natural number n, the task is to count all such number from 1 to n. Examples: Input : n = 15.… Read More »