hopen[)
\defineshorthand” \babelhyphennobreak
\useshorthands”
\titlehead
An alternating colouring function on strings
Abstract
An alternating colouring function is defined on strings over the alphabet . It divides the strings in colourable and non-colourable ones. The points in the subshift of finite type defined by forbidding all non-colourable strings of a certain length alternate between states of one colour and states of the other colour. In other words, the points in the 2nd power shifts all have the same colour.
The number of non-colourable strings of length is shown to be where is the sequence of Jacobsthal numbers. The number of sources and sinks in the de Bruijn graph of dimension with non-colourable edges removed is shown each to be .
Preface
This paper is an extract from my master thesis ([(2)]) that I wrote during the spring semester 2020. As many will remember, that was when the covid-19 pandemic hit the world. I was lucky that all I had left to complete my major was the thesis while fellow students struggled with improvised online teaching as even Swedish universities closed their doors to mitigate the spread of the virus.
I started with a research question in the area of dynamical systems that I tried to tackle by looking at de Bruijn sequences. (They are named after Nicolaas Govert de Bruijn who 1 published his famous result regarding their number.) After a time however I noticed some symmetries of de Bruijn graphs that I tried to formalise. In particular, I noticed that by deleting palindromes I could categorise the remaining edges such that in any path an edge of one category would follow an edge of the other.
In the following weeks I was able to formalise that notion by defining the function . Theorem \zarabicsection.\zarabicthrm shows it actually has the property I was looking for. It can therefore be seen as the most important result, but it is not surprising as was made to fulfil that property. However, observation \zarabicsection.\zarabicthrm came as a disappointment: The set of strings that does not assign a colour to is identical with the set of palindromes only up to a string length of and theorem \zarabicsection.\zarabicthrm shows that the definition of cannot easily be improved. Corollary \zarabicsection.\zarabicthrm instead shows that in the limit of all strings are not colourable. Surprisingly however, the number of non-colourable strings of certain length turns out to be an integer sequence so far unknown even to the On-Line Encyclopedia of Integer Sequences oeis (3) that had been a great help in finding that sequence.
While for strings of even length the definition of is rather straight-forward, for strings of odd length the definition first requires two other functions and . Those two functions feature some remarkable relations. Theorem \zarabicsection.\zarabicthrm, which establishes a relation between and being equal to zero, to me is the most surprising result of my master thesis.
For personal reasons some time has passed between my master thesis and this paper. I beg pardon for the delay. I am grateful for my supervisor Jörg Schmeling for having introduced me into the subject and especially for my examiner Tomas Persson who has put more effort in supporting the production of my thesis and this paper than I would have dared to ask for.
Cologne, Autumn 2024
Jonathan Garbe
\zarabicsection Notation
Notation.
Define ††margin: – , , , , , , by
Remark.
are prefix and suffix with length of . is the proper infix of length . is the reverse of (meaning that is a palindrome if and only if ) while is its complement. are the strings of length starting with respectively and alternating between and .
Example.
Observation \zarabicsection.\zarabicthrm.
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
\zarabicsection The function
Definition.
††margin: – the functionis defined recursively by
0 | 0 | 0 | 0 | 1 | -1 | 0 | ||
0 | 1 | 0 | 1 | -1 | 0 | -1 | 0 |
Remark.
The function tells on which side of the vertical axis a vertex appears in a de Bruijn graph when drawn as is done in the examples given in this thesis. In figures \zarabicfigure to \zarabicfigure the background is coloured according to the value of evaluated on the vertices. The vertices for which are found in the centre. The letter was chosen with the word x-axis in mind.




Lemma \zarabicsection.\zarabicthrm.
(\zarabicsection-\zarabicequation) |
Proof.
By induction on .
Now assume, the statement holds for . Let .
If , the statement follows directly from the definition of . Otherwise,
∎
Corollary \zarabicsection.\zarabicthrm.
Let be a palindrome. Then
(\zarabicsection-\zarabicequation) |
Proof.
Since for a palindrome , , equation (\zarabicsection-\zarabicequation) becomes
which establishes the statement. ∎
Counterexample.
is an example for a string that is not a palindrome although
Corollary \zarabicsection.\zarabicthrm.
Let be odd. Then
(\zarabicsection-\zarabicequation) |
Proof.
Since are palindromes the statement follows directly from corollary \zarabicsection.\zarabicthrm. ∎
Observation \zarabicsection.\zarabicthrm.
Let .
(\zarabicsection-\zarabicequation) |
Corollary \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
From corollary \zarabicsection.\zarabicthrm it follows that , so the statement follows from observation \zarabicsection.\zarabicthrm. ∎
Remark.
When , it is equivalent to say or . For aesthetic reasons, the latter formulation will be preferred, also in future occasions.
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Proof.
From it follows that , so
Now if one of the summands is non-zero, must either equal that summand or be zero. ∎
Lemma \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
Induction on . , which establishes the statement for . Now assume the statement holds for . Let .
where by the induction hypothesis at least one of the summands is 1 while the other cannot be negative either. The statement follows. ∎
Corollary \zarabicsection.\zarabicthrm.
(\zarabicsection-\zarabicequation) |
Proof.
∎
Lemma \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Proof.
By induction on . Note first, that the statement holds for . Assume then that it holds for a certain .
Case is even:
Case is odd:
∎
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Proof.
Induction on . For there are only finitely many cases to consider. Now assume the statements holds for . Let , which means that by observation \zarabicsection.\zarabicthrm
If , the statement follows from lemma \zarabicsection.\zarabicthrm. Otherwise, the above equation can be rewritten the following way:
Some playing with the minus sign yields:
Hence, one of the following three statements must hold:
However, since , the strict inequalities cannot hold, meaning that the equality does. Then
so by the induction hypothesis
and since ,
∎
Remark.
The argument used in this proof, considering and of a certain string and using the fact that the functions and only attain three different values will be important also for the proof of lemma \zarabicsection.\zarabicthrm.
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
If the statement follows from corollary \zarabicsection.\zarabicthrm so assume it is not. by observation \zarabicsection.\zarabicthrm implies that . By lemma \zarabicsection.\zarabicthrm either or or . However, the first case can be excluded since . In the second case, . In the third case
which can be reformulated to
so
It follows that . ∎
Remark.
The number \zarabicsection is omitted in numbering the results to keep section \zarabicsection and \zarabicsection having the same structure. There is nothing equivalent to say about the function as is said about the function in corollary \zarabicsection.\zarabicthrm.
Theorem \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
First of all, note that , as otherwise . For , , so . Assume now that and start with considering the case . Then , so . Similarly, the cases can be considered. In all other cases, assume . Then
(\zarabicsection-\zarabicequation) |
so
From it follows by lemma \zarabicsection.\zarabicthrm that . However, then
a contradiction. ∎
Remark.
One could try to redefine in an attempt to shrink the subset of on which is . However theorem \zarabicsection.\zarabicthrm shows that that is not easily possible: Already now is zero only for vertices in the de Bruijn graph that have preceding and succeeding vertices with different -value.
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) | |||
(\zarabicsection-\zarabicequation) | |||
(\zarabicsection-\zarabicequation) | |||
(\zarabicsection-\zarabicequation) | |||
(\zarabicsection-\zarabicequation) | |||
(\zarabicsection-\zarabicequation) | |||
(\zarabicsection-\zarabicequation) |
Proof.
- (\zarabicsection-\zarabicequation), (\zarabicsection-\zarabicequation), (\zarabicsection-\zarabicequation)
- (\zarabicsection-\zarabicequation), (\zarabicsection-\zarabicequation)
-
Similarly one finds in these cases that .
- (\zarabicsection-\zarabicequation), (\zarabicsection-\zarabicequation)
-
Assume . Then
which according to theorem \zarabicsection.\zarabicthrm implies that , a contradiction. Also, must not be a palindrome, leaving exactly these four cases.
∎
Remark.
Already at this point, could be investigated. However, that result shall be postponed until section \zarabicsection, as the relevance of that set and its size will be more obvious by then.
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then .
Proof.
Note that as anything else would contradict lemma \zarabicsection.\zarabicthrm. By lemma \zarabicsection.\zarabicthrm
but only satisfies . ∎
Theorem \zarabicsection.\zarabicthrm.
Let and be such that
Then
Proof.
Induction on . As it suffices to consider cycles in the ” dimensional de Bruijn graph (instead of any closed walk represents), there are only finitely many cases to consider for . Now assume the statement holds for a certain . Let such that
If then , which would already establish the statement and if then . Otherwise so either . In any case either the statement is already established or there is a substring of length to which assigns the value .
Define by replacing any occurrence of in by , meaning that is not a substring of . Set . Note that
(in words: any substring of length of is also a substring of ), however
(In words: the only substring of length that has been removed by constructing from is .) Since , it follows that still . This also shows that and hence .
First, consider the case . That implies , which is possible only if , so and hence . By the induction hypothesis,
(\zarabicsection-\zarabicequation) |
If , the induction hypothesis directly gives . If , one can also pick , so also in this case equation (\zarabicsection-\zarabicequation) holds.
Then by lemma \zarabicsection.\zarabicthrm
where the third option is excluded by the definition of . The statement now follows from the fact that
(In words: any substring of length of is also a substring of .) ∎
Remark.
The statement also holds when switching the rolls of and ; the proof is analogous.
Using the notion of as defining a left, a centre and a right part of the de Bruijn graph, theorem \zarabicsection.\zarabicthrm tells that there are no non-empty closed walks in the right part. Figure \zarabicfigure does not contain non-trivial closed walks in the blue (or red) highlighted area.
The proof idea is simpler than it seems: A string representing a walk in a certain de Bruijn graph also represents a walk in the de Bruijn graph one dimension lower. If a walk passes a vertex for which of a graph by the construction of the function it will also do so in a higher dimensional de Bruijn graph – with one notable exception: The vertex for even . Take for example the walk in the -dimensional de Bruijn graph. Glancing at figure \zarabicfigure shows that this walk passes both the area with blue and the area with red background. Now consider the same string a walk through the -dimensional de Bruijn graph. A look at figure \zarabicfigure tells that the graph does not pass the area with red background. This one exception is what makes the construction of necessary.
Corollary \zarabicsection.\zarabicthrm.
Let . The sft generated by prohibiting the strings in
is empty.
Proof.
Assume, there were a point in the sft. Pick such that . By definition of the sft, . Set and . Then theorem \zarabicsection.\zarabicthrm contradicts the definition of the sft. ∎
\zarabicsection The function
Remark.
Section \zarabicsection has the same structure as the previous one. Each result but corollary \zarabicsection.\zarabicthrm can be compared with the result of the same number in section \zarabicsection. Often the proofs are similar.
Definition.
††margin: – the functionis defined recursively by
Remark.
In figures \zarabicfigure to \zarabicfigure the vertices and edges are coloured according to the value assigns to them.
0 | -1 | 1 | 0 | 1 | -1 | 0 | ||
-1 | 1 | -1 | -1 | 1 | 1 | -1 | 1 |
Lemma \zarabicsection.\zarabicthrm.
(\zarabicsection-\zarabicequation) |
Proof.
By induction on .
Now assume, the statement holds for . Let .
If , the statement follows directly from the definition of . Otherwise,
∎
Corollary \zarabicsection.\zarabicthrm.
Let be a palindrome. Then
Proof.
For a palindrome of even length, equation (\zarabicsection-\zarabicequation) becomes
which establishes the statement. ∎
Corollary \zarabicsection.\zarabicthrm.
Let be even. Then
(\zarabicsection-\zarabicequation) |
Proof.
Since are palindromes, the statement follows directly from corollary \zarabicsection.\zarabicthrm. ∎
Observation \zarabicsection.\zarabicthrm.
Let .
(\zarabicsection-\zarabicequation) |
Corollary \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
From corollary \zarabicsection.\zarabicthrm it follows that , so the statement follows from observation \zarabicsection.\zarabicthrm. ∎
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Proof.
From it follows that , so
Now if one of the summands is non-zero must either equal that summand or be zero. ∎
Lemma \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
Induction on . which establishes the statement for . Now assume the statement holds for . Let . Then
where
In both cases the statement holds. ∎
Corollary \zarabicsection.\zarabicthrm.
Proof.
∎
Lemma \zarabicsection.\zarabicthrm.
Let . Then .
Proof.
Induction on . . Now assume the statement holds for a certain . Then
∎
Lemma \zarabicsection.\zarabicthrm.
Proof.
Induction on . For there are only finitely many cases. Now assume the statement holds for . Let and , which means that
By the argument used in the proof of lemma \zarabicsection.\zarabicthrm, one gets that in fact
so by the induction hypothesis,
and since ,
must be odd because otherwise . ∎
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
If the statement follows from corollary \zarabicsection.\zarabicthrm so assume that it is not. implies that . By lemma \zarabicsection.\zarabicthrm either or . However, the first case can be excluded since . Hence
so
In both cases it follows that . ∎
Corollary \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
Induction on . For there are only finitely many cases to consider. Assume now, the statement is true for . Let and . Then , so is odd. ∎
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
Proof.
. Now let and . Then
(\zarabicsection-\zarabicequation) |
and by corollary \zarabicsection.\zarabicthrm is even so . Hence
which is impossible because is odd. ∎
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
Proof.
is established in lemma \zarabicsection.\zarabicthrm and corollary \zarabicsection.\zarabicthrm. To show assume but . Then and by corollary \zarabicsection.\zarabicthrm is even, so neither is . Hence
Since and are odd, both summands are non-zero. However, by lemma \zarabicsection.\zarabicthrm they cannot be equal either. Hence . ∎
\zarabicsection Relations between and
Lemma \zarabicsection.\zarabicthrm.
Let such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
By corollary \zarabicsection.\zarabicthrm is even. Then by lemmata \zarabicsection.\zarabicthrm and \zarabicsection.\zarabicthrm
Set . According to lemmata \zarabicsection.\zarabicthrm, \zarabicsection.\zarabicthrm, corollaries \zarabicsection.\zarabicthrm and \zarabicsection.\zarabicthrm
∎
Theorem \zarabicsection.\zarabicthrm.
Let .
(\zarabicsection-\zarabicequation) |
Proof.
Induction on . For there are only finitely many cases to consider. Now assume, the statement holds for . Let .
∎
Corollary \zarabicsection.\zarabicthrm.
Let be such that . Then
(\zarabicsection-\zarabicequation) |
Proof.
∎
Remark.
By giving a necessary and sufficient condition for the exceptions, corollary \zarabicsection.\zarabicthrm shows that usually . Later the alternating colouring function shall be introduced as an improvement of for which the inequality always hold.
Lemma \zarabicsection.\zarabicthrm.
Let such that
(\zarabicsection-\zarabicequation) |
Then
(\zarabicsection-\zarabicequation) |
Proof.
Note that , so
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Hence
∎
Lemma \zarabicsection.\zarabicthrm.
Let such that and
Then
(\zarabicsection-\zarabicequation) |
Proof.
Since , actually . The cases are covered by corollary \zarabicsection.\zarabicthrm and lemma \zarabicsection.\zarabicthrm respectively. Now let . Then by lemma \zarabicsection.\zarabicthrm
Taking into account the condition gives
In each of these cases the statement holds. ∎
Remark.
The proof idea is to determine those spots in the de Bruijn graph where several edges for which follow upon each other. By looking at the graphs one gets the impression that happens only around , and around the centre of odd-dimensional de Bruijn graphs, which lemma \zarabicsection.\zarabicthrm confirms. In all other cases the statement is already established by corollary \zarabicsection.\zarabicthrm and lemma \zarabicsection.\zarabicthrm.
\zarabicsection The alternating colouring function
Definition.
Define by
(\zarabicsection-\zarabicequation) |
is called the ††margin: – alternating colouring function alternating colouring function.
is called ††margin: – colourable string colourable if . For the sft generated by prohibiting the strings in is called the ††margin: – maximal ” colourable shift maximal ” colourable shift. Any subshift of the maximal ” colourable shift is called ††margin: – -colourable shift ” colourable.
Remark.
In figures \zarabicfigure to \zarabicfigure the vertices and edges are coloured according to the value assigns to them. Colourable are those vertices and edges that are coloured blue or red.
The maximal -colourable shift is the edge shift of the -dimensional de Bruijn graph of which all the non-colourable edges (the green ones in figures \zarabicfigure to \zarabicfigure that is) have been removed. Equivalently it is the vertex shift of the -dimensional de Bruijn graph of which all non-colourable vertices have been removed.
0 | 0 | 0 | 0 | 1 | -1 | 0 | ||
---|---|---|---|---|---|---|---|---|
0 | 1 | 0 | -1 | -1 | 0 | 1 | 0 |




Lemma \zarabicsection.\zarabicthrm.
(\zarabicsection-\zarabicequation) |
Proof.
∎
Lemma \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
∎
Remark.
Lemma \zarabicsection.\zarabicthrm will often be used without explicit reference. Saying that is colourable should always be understood as . To show colourability, of course the easier condition will be used.
Corollary \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
The statement follows directly from lemma \zarabicsection.\zarabicthrm and the definition of . ∎
Theorem \zarabicsection.\zarabicthrm.
Let such that and
Then
(\zarabicsection-\zarabicequation) |
Proof.
The statement can be seen as a corollary to lemma \zarabicsection.\zarabicthrm. First let be even. Then
Now let be odd. Then
∎
Remark.
Theorem \zarabicsection.\zarabicthrm states that in an infinite string, a colourable substring always has a different ” colour than the preceding colourable substring of the same length – no matter how many non-colourable substrings there are in between.
Corollary \zarabicsection.\zarabicthrm.
Let be such that are colourable. Then .
Proof.
The statement follows from theorem \zarabicsection.\zarabicthrm by regarding as the beginning of an infinite string and setting . ∎
Remark.
Compare corollary \zarabicsection.\zarabicthrm with corollary \zarabicsection.\zarabicthrm. While there were some special cases in which would not hold, always does.

Remark.
Consider a de Bruijn graph of which all non-colourable vertices have been removed. Corollary \zarabicsection.\zarabicthrm states that the colour of the vertices a walk passes alternates between blue and red. For the resulting vertex shift that result will be expressed in corollary \zarabicsection.\zarabicthrm.
In the even powers of such a graph there are only walks from vertices of one colour to vertices of the same colour. Figure \zarabicfigure shows the \nth2 power of the -dimensional de Bruijn subgraph without non-colourable edges.
Corollary \zarabicsection.\zarabicthrm.
Let such that are colourable. Set
Then
(\zarabicsection-\zarabicequation) |
Proof.
Strong induction on . For the statement is trivial. Now assume the statement holds whenever for a certain . Set
Note that , so
(\zarabicsection-\zarabicequation) |
Hence
∎
Corollary \zarabicsection.\zarabicthrm.
Take as in corollary \zarabicsection.\zarabicthrm.
Let . Then
Proof.
By corollary \zarabicsection.\zarabicthrm . ∎
Corollary \zarabicsection.\zarabicthrm.
Let and be a point in an ” colourable shift. Then
(\zarabicsection-\zarabicequation) |
Proof.
The statement follows directly from corollary \zarabicsection.\zarabicthrm by noting that for an ” colourable shift, . ∎
Remark.
Corollary \zarabicsection.\zarabicthrm motivates the term alternating colouring.
Corollary \zarabicsection.\zarabicthrm.
Let and be a point in an ” colourable shift such that . Then is even.
Proof.
By corollary \zarabicsection.\zarabicthrm . ∎
Remark.
Corollary \zarabicsection.\zarabicthrm states that any closed walk among the colourable edges of a de Bruijn graph has even length.
Corollary \zarabicsection.\zarabicthrm.
Let . A non-empty, ” colourable shift is not mixing.
Proof.
For any natural number there is a larger odd number, but by corollary \zarabicsection.\zarabicthrm there is no walk of odd length from a word back to itself. ∎
\zarabicsection Counting the non-colourable strings
Observation \zarabicsection.\zarabicthrm.
A string of length is colourable if and only if it is not a palindrome.
Lemma \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
Corollary \zarabicsection.\zarabicthrm.
For set . Let . Then
(\zarabicsection-\zarabicequation) |
Proof.
∎
Definition.
For the ††margin: – Jacobsthal number Jacobsthal number is defined as
(\zarabicsection-\zarabicequation) |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | |
0 | 1 | 1 | 3 | 5 | 11 | 21 | 43 | 85 | 171 | 341 | 683 |
Fact \zarabicsection.\zarabicthrm.
Let .
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Remark.
The definition of the Jacobsthal numbers, the values in table \zarabictable and fact \zarabicsection.\zarabicthrm have been taken from wiki:jacobsthal (4).
Theorem \zarabicsection.\zarabicthrm.
Let .
(\zarabicsection-\zarabicequation) |
Proof.
By induction on . For there are only two cases to consider. Now assume the statement holds for a certain .
∎
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | |
1 | 2 | 2 | 4 | 4 | 8 | 12 | 24 | 44 | 88 | 172 | 344 |
Corollary \zarabicsection.\zarabicthrm.
Let . Then
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Proof.
∎
Corollary \zarabicsection.\zarabicthrm.
Let be even. Then
(\zarabicsection-\zarabicequation) |
Proof.
∎
Corollary \zarabicsection.\zarabicthrm.
Proof.
This follows immediately from corollary \zarabicsection.\zarabicthrm. ∎
Remark.
Since there are strings of length , corollary \zarabicsection.\zarabicthrm tells that in the limit 1 out of 6 strings is not colourable.
Corollary \zarabicsection.\zarabicthrm.
Let . Then
Proof.
\zarabicsection Colourability sources and sinks
Definition.
Let . If are not colourable, is called a ††margin: – colourability sink colourability sink; if are not colourable, is called a ††margin: – colourability source colourability source. is called the ††margin: – trivial colourability sink and source trivial colourability sink and source.
Observation \zarabicsection.\zarabicthrm.
The reverse of a colourability source is a colourability sink and vice versa.
Corollary \zarabicsection.\zarabicthrm.
Let . There are equally many colourability sinks as sources in .
Proof.
If is a colourability sink, is a colourability source and vice versa. Since is bijective, the statement follows. ∎
Lemma \zarabicsection.\zarabicthrm.
If is a colourability sink are colourable. If is a colourability source are colourable.
Proof.
Assume the contrary, say . Then by lemma \zarabicsection.\zarabicthrm , so . Hence a contradiction. Similarly if one gets that . ∎
Corollary \zarabicsection.\zarabicthrm.
The only string that is both a colourability sink and a colourability source is .
Proof.
Any non-trivial colourability sink is by lemma \zarabicsection.\zarabicthrm not a colourability source. ∎
Remark.
Corollary \zarabicsection.\zarabicthrm means that removing the non-colourable edges of a de Bruijn graph does not leave isolated vertices.
Lemma \zarabicsection.\zarabicthrm.
Any non-trivial colourability sink is colourable.
Proof.
Let not be colourable.
but similarly
so . ∎
Corollary \zarabicsection.\zarabicthrm.
Any non-trivial colourability source is colourable.
Proof.
Since the reverse of a colourability source is a colourability sink, the statement follows directly from lemmata \zarabicsection.\zarabicthrm and \zarabicsection.\zarabicthrm. ∎
Lemma \zarabicsection.\zarabicthrm.
If is a colourability sink,
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
If is a colourability source,
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) | ||||
(\zarabicsection-\zarabicequation) |
Proof.
Consider lemma \zarabicsection.\zarabicthrm, lemma \zarabicsection.\zarabicthrm and corollary \zarabicsection.\zarabicthrm. For (\zarabicsection-\zarabicequation) and (\zarabicsection-\zarabicequation) combine them with lemma \zarabicsection.\zarabicthrm, for (\zarabicsection-\zarabicequation) and (\zarabicsection-\zarabicequation) with lemma \zarabicsection.\zarabicthrm. The following establishes (\zarabicsection-\zarabicequation):
and the following (\zarabicsection-\zarabicequation):
∎
Theorem \zarabicsection.\zarabicthrm.
Let . Then
Proof.
If is a colourability sink or source, the statement is proven in lemma \zarabicsection.\zarabicthrm. Otherwise it follows from corollary \zarabicsection.\zarabicthrm. ∎


Remark.
Theorem \zarabicsection.\zarabicthrm makes it possible to define a function that assigns to the vertices of a de Bruijn graph a colour that corresponds to the colour of the incoming edges while differing from the colour of the outgoing ones. Lemma \zarabicsection.\zarabicthrm and corollary \zarabicsection.\zarabicthrm show that for odd-dimensional de Bruijn graphs that function is just . Figures \zarabicfigure and \zarabicfigure give examples for even-dimensional de Bruijn graphs.
Observation \zarabicsection.\zarabicthrm.
In there are no non-trivial colourability sinks or sources.
Theorem \zarabicsection.\zarabicthrm.
For let be the number of colourability sinks in . If ,
Proof.
Let and be a colourability sink. Then by lemma \zarabicsection.\zarabicthrm . First, let be odd. By lemma \zarabicsection.\zarabicthrm
so
Now let be even. Then by lemma \zarabicsection.\zarabicthrm
so
∎
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | |
1 | 0 | 0 | 0 | 0 | 4 | 8 | 20 | 40 | 84 | 168 | 340 |
Remark.
Theorem \zarabicsection.\zarabicthrm is a little bit more surprising than it looks at first glance: Due to the definition of a colourability sink focusing on and , rather says something about than about . in contrast should be seen as an information about .
References
- (1) Nicolaas Govert de Bruijn “A combinatorial problem” In Proceedings of the Section of Sciences of the Koninklijke Nederlandse Akademie van Wetenschappen te Amsterdam 49.7, 1946, pp. 758–764
- (2) Jonathan Garbe “Observations on de Bruijn Graphs”, 2020 URL: https://www.lunduniversity.lu.se/lup/publication/9016243
- (3) OEIS Community “The On-Line Encyclopedia of Integer Sequences”, 2024 URL: https://oeis.org/
- (4) Wikipedia contributors “Jacobsthal number”, 2020 Wikipedia, The Free Encyclopedia URL: https://en.wikipedia.org/w/index.php?title=Jacobsthal_number&oldid=954813000