3 Sums of sequences
3.1 Preparation
word(ss,s)F …
\(\mathsf{pr}\)abbr …
\(\langle X , Y \rangle\) ≈
\(\mathsf{pr} ( X , Y )\) word((s,s)s,s) …
\(|\)Rest. …
\(F | _ X = \{ \langle x , F ( x ) \rangle \mid x \in X \}\) word(ss,p) …
\(\le\)≤. …
\(m , n \in \mathbb{Z} \Longrightarrow ( m \le n \Longleftrightarrow - m + n \in \mathbb{M} )\) L≤r …
\(n \in \mathbb{Z} \Longrightarrow n \le n\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,AxℤL≤t …
\(a , b , c \in \mathbb{Z} , a \le b \le c \Longrightarrow a \le c\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤword(ss,s) …
\(\mathinner{\ldotp\ldotp}\)... …
\(m \mathinner{\ldotp\ldotp} n = \{ i \in \mathbb{Z} \mid m \le i \le n \}\) Induction over the range \(m \le N \le n\) (for equalities)
IND≤ …
\(m , n \in \mathbb{Z} , {G} ( m ) = {H} ( m ) , \forall N \in \mathbb{Z} . ( m \le N , N + 1 \le n , {G} ( N ) = {H} ( N ) \Longrightarrow {G} ( N + 1 ) = {H} ( N + 1 ) ) \Longrightarrow \forall N \in \mathbb{Z} . ( m \le N \le n \Longrightarrow {G} ( N ) = {H} ( N ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ3.2 Sums of sequences
word(s,s) …
\(\sum\)abbr …
\(\sum_{ x \in X } T\) ≈
\(\sum ( \lceil x \mapsto T \rfloor | _ { X } )\) schema AxΣ(?f;i) :=
\(\begin{cases} m \in \mathbb{Z} \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} m } {f} ( i ) = {f} ( m ) \\ m , n \in \mathbb{Z} , m \le n \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} ( n + 1 ) } {f} ( i ) = \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) + {f} ( n + 1 ) \end{cases}\) T∑= …
\(\forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {f} ( i ) = {g} ( i ) ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) = \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {g} ( i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣT∑∈ …
\(( V , [+] ) :\underline{2} \Longrightarrow \forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {f} ( i ) \in V ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) \in V )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣSum with shifted indices
T∑s …
\(\forall m , n \in \mathbb{Z} . ( m \le n \Longrightarrow \sum_{ i \in ( m + 1 ) \mathinner{\ldotp\ldotp} ( n + 1 ) } {f} ( i ) = \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i + 1 ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣSplitting off the first term
T∑h …
\(( V , [+] ) :\underline{2}\mathsf{A} \Longrightarrow \forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le ( n + 1 ) \Longrightarrow {f} ( i ) \in V ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} ( n + 1 ) } {f} ( i ) = {f} ( m ) + \sum_{ i \in ( m + 1 ) \mathinner{\ldotp\ldotp} ( n + 1 ) } {f} ( i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣSum of sums
T∑+ …
\(( V , [+] ) :\underline{2}\mathsf{C}\mathsf{A} \Longrightarrow \forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {u} ( i ) , {w} ( i ) \in V ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} n } ( {u} ( i ) + {w} ( i ) ) = \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {u} ( i ) + \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {w} ( i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣSum of a constant (the number of terms is \(n + 1 - m\)).
T∑c …
\(\forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {f} ( i ) = c ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) = ( ( n + 1 ) - m ) \cdot c )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣSum in reverse order
T∑r …
\(( V , [+] ) :\underline{2}\mathsf{C}\mathsf{A} \Longrightarrow \forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {f} ( i ) \in V ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) = \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( ( m + n ) - i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣThe recurrence for the 0-based sum, with terms \(g(k, i)\) carrying an index, \(\sum_{i=0}^{n} g(k, i)\) (the range of values of \(g\) is arbitrary). It also applies to terms such as \(n - i\), which are natural numbers only when \(i \le n\).
Constant multiple: if \(c f(i) = g(i)\) termwise, then \(c \sum_{i=m}^{n} f(i) = \sum_{i=m}^{n} g(i)\).
T∑⋅ …
\(( V , [+] ) :\underline{2} , \forall x , y \in V . c \cdot ( x + y ) = c \cdot x + c \cdot y \Longrightarrow \forall m , n \in \mathbb{Z} . ( m \le n , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {f} ( i ) \in V , c \cdot {f} ( i ) = {g} ( i ) ) \Longrightarrow c \cdot \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) = \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {g} ( i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣ3.3 #68a Sum of an arithmetic progression (induction)
From \(\sum_{i=1}^{n+1} (a + i d) = \sum_{i=1}^{n} (a + i d) + (a + (n+1)d)\)
G68 …
\(( X , [+] ) :\underline{2}\mathsf{C}\mathsf{A} , a , d \in X \Longrightarrow \forall n \in \mathbb{M} ^{\times} . 2 \cdot \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } ( a + i \cdot d ) = n \cdot ( 2 \cdot a + ( n + 1 ) \cdot d )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣ3.4 #68b Sum of an arithmetic progression (using the reversed sum: Gauss) forget
The sum \(S(n) = \sum_{i=1}^{n} (a + i d)\) written in reverse order equals \(S(n)\). Pairing the terms gives \((a + i d) + (a + (n + 1 - i) d) = 2a + (n + 1) d\) for each of the \(n\) pairs, so \(2 S(n) = S(n) + S(n) = n (2a + (n + 1) d)\).
\(( X , [+] ) :\underline{2}\mathsf{C}\mathsf{A} , a , d \in X , n \in \mathbb{M} ^{\times} \Longrightarrow 2 \cdot \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } ( a + i \cdot d ) = n \cdot ( 2 \cdot a + ( n + 1 ) \cdot d )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣ