Solved finding permuted divisibility check