All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Permutation List 3 (Posted on 2023-07-25) Difficulty: 3 of 5
If all the 40320 (base 10) permutations of 12345678 in the hexadadecimal (base 16) representation are put in numerical order, what is the 20230th (base ten) pemutation?

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution Comment 3 of 3 |
This is basically the same task as Millionth Pandigital II (and other problems) so I'll use the same method as I did there.

Offset 20230 by 1 to 20229, then converting 20229 to base factorial yields 20229 = 4002311_BF

Increment each digit by 1 gives the list {5,1,1,3,4,2,2}.  Then remove without replacement that position from the sorted list {1,2,3,4,5,6,7,8}

The numbers removed are in order 5, 1, 2, 6, 8, 4, 7, with 3 remaining as the last number.  String those together in order to get 51268473 as the 20230th ordered permutation of 12345678.

I don't know what hexadecimal has to do with anything in the problem.

  Posted by Brian Smith on 2023-07-25 09:57:49
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information