On Describable Sequences
David Maksa
June 2024
Abstract
Sequences are *blank* to mathematics. They are ordered lists of numbers
that follow a certain pattern. We encounter many when we first learn about
numbers, counting by 2’s or 5’s (and eventually by n’s !) - these are basic
sequences, but sequences none the less. Later we begin describing and classifying
different kinds of sequences based on their mathematical properties. However,
we may also think to describe sequences with our respective native ’natural’
languages. In this paper we will be discussing sequences that can be described
by the number of occurrences of any given entry of the sequence.
Introduction
Let {Sn;f (m) } := {0, ..., 1, ..., 2, ...} be a sequence characterized by having
f (m) occurrences of any m ∈ Z+ . Now if
σ(n) =
n
X
f (m)
(1)
σ −1 (n) = Sn;f (m)
(2)
m=1
then
. Now, before we explicitly lay out a proof for this claim, we will show some
examples.
we have {Sn;1 } := {0, 1, 2, 3, ...} = N, therefore, σ(n) =
PnIf f (m) = 1 then
−1
(n), and so we have Sn;1 = n. This first example was quite
m=1 1 = n = σ
straightforward, which is nice and good for a first example. Now let us try
applying this to something less trivial.
If we let f (m) = m we have a sequence consisting of m occurrences of any
entry m, thus we have {Sn;m } := {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, ...}. So here we would
let
n
X
n(n + 1)
σ(n) =
m=
2
m=1
1
Then solving for n gives us
σ −1 (n) = ⌊
1+
√
8n − 7
⌋ = Sn;m
2
Let’s look at one more, slightly more complicated, example. We might think of
the sequence {0, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, ...} and come to realize that this sequence may be characterized by the property of having ⌈ m+1
2 ⌉
occurrences of any m in the sequence, thus, for Sn;⌈ m+1 ⌉ , we have
2
σ(n) =
n
X
n n
m+1
⌉ = ⌈ ⌉⌊ ⌋ + n
2
2 2
m=1
⌈
Now finding an appropriate inverse for this we can use the identities
n mod 2 =
1 − (−1)n
2
n
n = k⌊ ⌋ + n mod k
k
n
n+1
⌈ ⌉=⌊
⌋
2
2
in order to get
n n
n (−1)n − 1 n + 1 1 + (−1)n
⌈ ⌉⌊ ⌋ = ( +
)(
−
)
2 2
2
4
2
4
so that we now have
σ(n) = n +
n2
(−1)n − 1
+
4
8
and solving for n gives us
σ −1 (n) = ⌈−2(1 −
√
n − 1)⌉
Thus, after a little cleaning up, we have
√
Sn;⌈ m+1 ⌉ = ⌈2 n + 1⌉ − 2
2
1
Some Motivating Problems
What if we were wondering how we could describe the discrete space filling
spiral that begins at the origin of the plane and then visits all points by going
around in a kind of square spiral. Looking at this spiral (pictured in the margin;
sourced from WOLFRAM) we may notice that each point in the spiral, αn ,
follows a pattern relating to Sn;⌈ m+1 ⌉ . We are thus able to define it recursively
2
by
√
αn = αn−1 + i⌈2 n⌉−2
with
α0 = 0.
2
Where one may immediately see that we can rewrite this as
√
αn = αn−1 − i⌈2 n⌉
. Now if we expand this further
√
√
αn = αn−2 − i⌈2 n⌉ − i⌈2 n⌉
.
.
.
√
⌈2 n−k+1⌉
αn = αn−k − i
√
⌈2 n−k+2⌉
−i
√
√
− ... − i⌈2 n⌉ − i⌈2 n⌉
and now we let k = n, resulting in
√
√
√
αn = α0 − i⌈2 1⌉ − i⌈2 2⌉ − ... − i⌈2 n⌉
αn = −
n
X
√
i⌈2 k⌉
k=1
2
Other Sequences
Of course many other sequences fall under the class of ”sequences that are
easy to describe in words”. One interesting family of sequences can be described
by having k zeros before a 1, this pattern repeating forever (thus, this is clearly a
subclass of integer cycles).We may call this family Mn;k+1 , so for k = 1 we would
have {0, 1, 0, 1, 0, 1, ..} and this is obviously Mn;2 = n mod 2. Now what about
Mn;3 := {0, 0, 1, 0, 0, 1, 0, 0, 1, ...}? Well that would just be (n mod 3) mod 2.
We would then come to see that
Mn;k = ((...((n mod k) mod k − 1)...) mod 3) mod 2.
It can also be shown that
Mn;k = ⌊
(n + k − 2) mod k
⌋
k−1
∀(k ≥ 2) ∈ Z+ .
Now a curious little fact we can produce with this (let A(n, k) = Mn,k+2 ) is
√
∆(⌈2 x⌉) = A(x + 1, βx ),
√
−5 + 4n + 9
where
βn = ⌈
⌉,
2
and
∆(f (x)) = f (x + 1) − f (x).
We have, more specifically, that
n
X
√
A(k + 1, βk ) = ⌈2 n + 1⌉ − 3.
k=2
3
2.1
Relation to the Riemann Hypothesis
Another curious thing regarding A(n, k) is its relation to the Riemann Hypothesis. We have that
A(n, k) = ⌊
(n + k)mod(k + 2)
⌋
k+1
and we can view this as a matrix, let An be the nxn matrix whose (i, j)′ th entry
is defined by A(i, j). Then we may define the ”Redheffer matrix”, Rn as the 2
by 2 block matrix
A B
Rn =
C D
where
A = 1 ,B = 1
or
1
1
1
1
1
1
1
1
Rn =
1
1
.
.
.
1
1
... n , C =
1 , D = A(i, j)[2≤i,j≤n]
1
... n
1
1
0
0
0
0
0
1
0
1
0
0
0
0
1
1
0
1
0
0
0
1
0
0
0
1
0
0
1
1
1
0
0
1
0
1...
0...
0...
0...
0...
0...
1...
. (Another way to define Rn is by letting the (i,j)’th entry, rij , be 1 if i divides
j or j=1 and 0 otherwise).
Expressing Rn as the block matrix allows for
det(Rn ) = det(A)det(D − CA−1 B) = det(D − ⟨1⟩n−1 )
where ⟨1⟩n is the n by n matrix of all 1′ s. The Riemann Hypothesis is equivalent
to showing that
1
∀ε > 0.
det(Rn ) = O(n 2 +ε )
4
Looking at a small part of D − ⟨1⟩n−1 , or
0
−1
−1
−1
D − ⟨1⟩n−1 = A(i, j)[1≤i,j≤n−1] − ⟨1⟩n−1 =
−1
−1
.
.
.
−1
0
−1
−1
−1
−1
0
−1
0
−1
−1
−1
−1
−1
−1
0
−1
−1
0
0
−1
−1
0
−1
−1...
−1...
−1...
−1...
−1...
.
0...
1
It is known that this problem is equivalent to showing that M (x) = O(x 2 +ε ).
Where M (x) is the ”Mertens function” which is defined as
M (n) =
n
X
µ(k)
k=1
with µ(k) being the ”Möbius function”, we can define it as
1 if n = 1
µ(n) = (−1)k if n is the product of k distinct
0 if n is divisible by a square > 1
primes
We can count the number of nonzero entries, up to some n, in each row. Let
Rn [k] be the number of nonzero terms in the k’th row of Rn , then
Rn [1] = n
n
Rn [2] = ⌊ ⌋ + 1
2
n
Rn [3] = ⌊ ⌋ + 1
3
n
...Rn [k] = ⌊ ⌋ + 1 ∀k ≥ 2.
k
Therefore the number of nonzero terms in Rn would be
n
n
n
n
⌋ + 1) + (⌊ ⌋ + 1)
n + (⌊ ⌋ + 1) + (⌊ ⌋ + 1) + ... + (⌊
2
3
n−1
n
=n−1+
n
X
n
⌊ ⌋
k
k=1
. Now here we encounter a strange sum, which we can relate to the ”Harmonic
numbers”, Hn , because
n
n
X
X
n
nmodk
⌊ ⌋ = nHn −
.
k
k
k=1
k=1
5