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 (for equations) over the range \(m \le N \le n\): from \(G(m) = H(m)\) and \(N + 1 \le n,\ G(N) = H(N) \Rightarrow G(N+1) = H(N+1)\), we get, for all \(N\) in the range, \(G(N) = H(N)\).
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ΣA sum over a range is an element of \(V\): if \(m \le n\) and all terms in the range are elements of \(V\), then \(\sum_{i=m}^{n} f(i) \in V\).
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 {f} ( i ) \in V ) \Longrightarrow \sum_{ i \in m \mathinner{\ldotp\ldotp} n } {f} ( i ) \in V )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣShifting the index of a sum: \(\sum_{i=m+1}^{n+1} f(i) = \sum_{i=m}^{n} f(i + 1)\).
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: \(\sum_{i=m}^{n+1} f(i) = f(m) + \sum_{i=m+1}^{n+1} f(i)\).
T∑h …
\(( 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 + 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: \(\sum_{i=m}^{n} (u(i) + w(i)) = \sum_{i=m}^{n} u(i) + \sum_{i=m}^{n} w(i)\).
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 ) \in V ) , \forall i \in \mathbb{Z} . ( m \le i \le n \Longrightarrow {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: \(\sum_{i=m}^{n} c = (n + 1 - m)\, c\) (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: \(\sum_{i=m}^{n} f(i) = \sum_{i=m}^{n} f(m + n - i)\).
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ΣFor terms \(g(k, i)\) with an index, the recurrence for the sum \(\sum_{i=0}^{n} g(k, i)\) starting at 0 (the range of values of \(g\) is arbitrary). It also applies to terms such as \(n - i\) that 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}\mathsf{C}\mathsf{A} , \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 terms gives pairs \((a + i d) + (a + (n + 1 - i) d) = 2a + (n + 1) d\), \(n\) of them, 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Σ