I've lost my PIN that encrypts the hard drive of my laptop ! What I can recall narrows the permutations down to a number that would be worth a brute force attempt I think. It got me thinking, how does one calculate the permutations given the following:
- It's a 6-digit PIN (length of 6)
- I only used the numbers 1, 2 & 3
- each one appears at least once
- no digit appears 4 times or more
- no sequence of 3 of the same digit?
how does one calculate the permutations given the followingif you're only interested in generating such sequences (not solving math problem using pen and paper), it's easy to make a program which generates all 3^6 sequences and drops out "bad" ones. To solve this on paper you probably have to exploit the inclusion-exclusion principle. – Matt Oct 31 '15 at 16:38