I am a Haskell newbie. So, I would like to ask a simple question.
I have to find with help of backtracking the (unique) number containing 9 numbers with the following characteristics:
The numbers 1/9 appear exactly once.
The first k numbers of n are divisible by k for k runs from 1/9
Example
n = 123456789
1 (the first number of n) should be divisible by 1. true!
2 (the first 2 numbers of n) should be divisible by 2. true!
3 (the first 3 numbers of n) should be divisible by 3. true!
4 (the first 4 numbers of n) should be divisible by 4. false!
So, 123456789 is not the desired number.