Here we consider the set S(n;t,s) of length n words a1a2···an over the alphabet consisting of the elements of the field F2 that have trace t and subtrace s. The trace of a word is the sum of its digits over the field F2 , i.e. t = a1+a2+ ··· +an. The subtrace is the sum of the products of all n(n-1)/2 pairs of digits taken over the field F2 , i.e. s = SUM( aiaj : 1 < i < j < n ). Note that F2 = Z2 .
| (trace,subtrace) | ||||
| n | (0,0) | (0,1) | (1,0) | (1,1) |
| 1 | 1 | 0 | 1 | 0 |
|---|---|---|---|---|
| 2 | 1 | 1 | 2 | 0 |
| 3 | 1 | 3 | 3 | 1 |
| 4 | 2 | 6 | 4 | 4 |
| 5 | 6 | 10 | 6 | 10 |
| 6 | 16 | 16 | 12 | 20 |
| 7 | 36 | 28 | 28 | 36 |
| 8 | 72 | 56 | 64 | 64 |
| 9 | 136 | 120 | 136 | 120 |
| 10 | 256 | 256 | 272 | 240 |
| 11 | 496 | 528 | 528 | 496 |
| 12 | 992 | 1056 | 1024 | 1024 |
| 13 | 2016 | 2080 | 2016 | 2080 |
| 14 | 4096 | 4096 | 4032 | 4160 |
| 15 | 8256 | 8128 | 8128 | 8256 |
| 16 | 16512 | 16256 | 16384 | 16384 |
| 17 | 32896 | 32640 | 32896 | 32640 |
| 18 | 65536 | 65536 | 65792 | 65280 |
| 19 | 130816 | 131328 | 131328 | 130816 |
| 20 | 261632 | 262656 | 262144 | 262144 |
S(n;t,s) = S(n-1;t,s) + S(n-1;t-1,s-(t-1))
= S(n-1;t,s) + S(n-1;t+1,s+t+1)
Note that all operations involving operands t or s are carried out over GF(2).
