Выписал все 36 лишних, буду смотреть сразу по модулю 11.
Да, все 36 запрещаю именно по модулю 11.
Код:
1 [12, 1, 14, 15, 32, 121, 18, 1, 20, 21, 2, 1]
2 [12, 1, 14, 15, 32, 161051, 18, 1, 20, 21, 2, 1]
3 [12, 1, 14, 15, 32, 11, 18, 1, 20, 21, 2, 1]
4 [1, 12, 1, 14, 15, 32, 121, 18, 1, 20, 21, 2]
5 [1, 12, 1, 14, 15, 32, 161051, 18, 1, 20, 21, 2]
6 [1, 12, 1, 14, 15, 32, 11, 18, 1, 20, 21, 2]
7 [10, 1, 12, 121, 14, 15, 32, 1, 18, 1, 20, 21]
8 [10, 1, 12, 161051, 14, 15, 32, 1, 18, 1, 20, 21]
9 [10, 1, 12, 11, 14, 15, 32, 1, 18, 1, 20, 21]
10 [10, 1, 12, 1, 14, 15, 32, 1, 18, 121, 20, 21]
11 [10, 1, 12, 1, 14, 15, 32, 1, 18, 161051, 20, 21]
12 [10, 1, 12, 1, 14, 15, 32, 1, 18, 11, 20, 21]
13 [9, 10, 1, 12, 121, 98, 15, 32, 1, 18, 1, 20]
14 [9, 10, 1, 12, 161051, 98, 15, 32, 1, 18, 1, 20]
15 [9, 10, 1, 12, 11, 98, 15, 32, 1, 18, 1, 20]
16 [9, 10, 1, 12, 1, 98, 15, 32, 1, 18, 121, 20]
17 [9, 10, 1, 12, 1, 98, 15, 32, 1, 18, 161051, 20]
18 [9, 10, 1, 12, 1, 98, 15, 32, 1, 18, 11, 20]
19 [9, 10, 1, 12, 121, 14, 15, 32, 1, 18, 1, 20]
20 [9, 10, 1, 12, 161051, 14, 15, 32, 1, 18, 1, 20]
21 [9, 10, 1, 12, 11, 14, 15, 32, 1, 18, 1, 20]
22 [9, 10, 1, 12, 1, 14, 15, 32, 1, 18, 121, 20]
23 [9, 10, 1, 12, 1, 14, 15, 32, 1, 18, 161051, 20]
24 [9, 10, 1, 12, 1, 14, 15, 32, 1, 18, 11, 20]
25 [243, 10, 1, 12, 121, 98, 15, 32, 1, 18, 1, 20]
26 [243, 10, 1, 12, 161051, 98, 15, 32, 1, 18, 1, 20]
27 [243, 10, 1, 12, 11, 98, 15, 32, 1, 18, 1, 20]
28 [243, 10, 1, 12, 1, 98, 15, 32, 1, 18, 121, 20]
29 [243, 10, 1, 12, 1, 98, 15, 32, 1, 18, 161051, 20]
30 [243, 10, 1, 12, 1, 98, 15, 32, 1, 18, 11, 20]
31 [243, 10, 1, 12, 121, 14, 15, 32, 1, 18, 1, 20]
32 [243, 10, 1, 12, 161051, 14, 15, 32, 1, 18, 1, 20]
33 [243, 10, 1, 12, 11, 14, 15, 32, 1, 18, 1, 20]
34 [243, 10, 1, 12, 1, 14, 15, 32, 1, 18, 121, 20]
35 [243, 10, 1, 12, 1, 14, 15, 32, 1, 18, 161051, 20]
36 [243, 10, 1, 12, 1, 14, 15, 32, 1, 18, 11, 20]
— 578 паттернов.
Остальные — лишние.
Для 13-ки количество, видимо, будет в разы больше. А то и на порядок.
Так Вы в неё просто не смотрите (если будет опубликована).