Jump to content

How the hell do you solve this?


Recommended Posts

Posted (edited)

Well I'd start by looking at what numbers between 100,000 and 999,999 don't repeat any digits, and then figure out if those are "anagram numbers".

The amount of numbers that don't repeat digits in that range are:

 

9*9*8*7*6*5 = 136080.

 

So you have 136080 numbers between 102,345 and 987,654 that don't repeat a digit. Then to check if they're anagram numbers, you have to do *at most* 8 multiplications of those numbers by a single digit 2 through 9. Lets say it takes 6 tries on average (assuming most numbers aren't anagram numbers). That's still only ~600,000 multiplications you have to do, which any modern-day computer could do very quickly.

 

Edit: OH LOL I WAS LOOKING AT Q1 PART 3

Edited by Toph
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...