Number Pattern Finder

It checks if its already been found
Edit: I figured out it could be that snap is only displaying 100 numbers, so the program is probqbly only check that 100 problems.

If this is how to find the amount of permutations, how would I be able to do that if you dont know how many permutations you have?

Im not very good at math, so I dont quite understand how you explained it to me.