Preprint
Article

Recursive Formula for Sum of Powers of Natural Numbers and Its Generalization to Arithmetic Progression

Altmetrics

Downloads

79

Views

73

Comments

0

A peer-reviewed article of this preprint also exists.

This version is not peer-reviewed

Submitted:

13 July 2024

Posted:

22 July 2024

You are already at the latest version

Alerts
Abstract
In this paper, we derive a formula for sum of powers of integers from Abel’s Summation Formula. This formula enables us to generate the formula for the sum of k-th power of integers, denoted by Sk(n), given the formulas of S1(n), S2(n), ..., Sk−1(n). Furthermore, we shall extend this formula to compute the sum of powers of an arithmetic progression. Moreover, we can combine the formula with the result of Bernoulli to derive another result which enables us to find Bernoulli Numbers recursively.
Keywords: 
Subject: Computer Science and Mathematics  -   Algebra and Number Theory

1. Notation

For the sake of convenience, we shall denote the sum of powers of the first n natural numbers as follows
S m ( n ) = i = 1 n i m
As we shall see in the following sections, the notation will reduce the need to write the sum notation which could be cumbersome to work with.

2. The Evaluation of Special Kind of Integral Involving Floor Function

As we will see in the proof of the recursive formula, the proof will involve the evaluation of the following integral.
1 n t α t d t
where α and n are positive integers
The above integral cannot be evaluated by using the regular approach, namely, by the product rule, since the function f ( x ) = x has discontinuities. Thus, in order to evaluate the integral, there is one important property of floor function that we must consider. That is, t = k for all t ( k , k + 1 ) . The property then motivates us to use another approach to calculate the area under the curve of the integrand that we have above. The idea is to calculate separately the area under the curve on interval ( k , k + 1 ) for k = 1 , 2 , . . . , n 1 then we sum them up. Also note that if k is any integer that we choose from { 1 , 2 , . . . , n 1 } then for all t in the interval ( k , k + 1 ) , t = k which is a constant.
Lemma 1.
For the above integral, we have
1 n t α t d t = 1 α + 1 i = 1 α + 1 α + 1 i 1 S i 1 ( n 1 )
Proof. 
For the sake of convenience, let us denote the area of the integrand on ( k , k + 1 ) as I k . More precisely,
I k = k k + 1 t α t d t
Recall that t = k for all t ∈ (k, k+1) so we can take it out of the integral. Now,
I k = k k k + 1 t α d t = k ( k + 1 ) α + 1 k α + 1 α + 1
Therefore, if I denotes the integral that we are evaluating, then
I = k = 1 n 1 I k = k = 1 n 1 k ( k + 1 ) α + 1 k α + 1 α + 1 = 1 α + 1 k = 1 n 1 ( k ( ( k + 1 ) α + 1 k α + 1 ) )
By Binomial Theorem, now we have
( k + 1 ) α + 1 = i = 0 α + 1 α + 1 i k i = i = 1 α + 2 α + 1 i 1 k i 1
Substituting (2) to (1), we have
I = 1 α + 1 k = 1 n 1 ( i = 1 α + 2 α + 1 i 1 k i 1 k α + 1 ) = 1 α + 1 k = 1 n 1 ( k α + 1 + i = 1 α + 1 α + 1 i 1 k i 1 k α + 1 ) = 1 α + 1 k = 1 n 1 ( i = 1 α + 1 α + 1 i 1 k i 1 )
Interchanging the sum and applying our notation, now we find that
I = 1 α + 1 i = 1 α + 1 ( k = 1 n 1 α + 1 i 1 k i 1 ) = 1 α + 1 i = 1 α + 1 α + 1 i 1 S i 1 ( n 1 )

3. Main Results

3.1. Recursive Formula of Sum of Powers and Bernoulli Numbers

Theorem 1.
Let S m ( n ) = i = 1 n i m then,
S m ( n ) = 1 m + 1 ( n ( n + 1 ) m i = 1 m 1 m i 1 S i ( n ) )
Proof. 
Let us begin with Abel’s Summation Formula [2]. We assume that n is a positive integer. Hence, n = n
i = 1 n f ( i ) = n f ( n ) 1 n f ( t ) t d t
Let f ( i ) = i m
i = 1 n i m = n . n m 1 n m t m 1 t d t = n m + 1 m 1 n t m 1 t d t
The integral above is the special case of the integral that we have solved in the previous section shown in Lemma 1 where α = m 1
S m ( n ) = n m + 1 m ( 1 m i = 1 m m i 1 S i ( n 1 ) ) = n m + 1 i = 1 m m i 1 S i ( n 1 )
Let k = n 1
S m ( k + 1 ) = ( k + 1 ) m + 1 i = 1 m m i 1 S i ( k ) S m ( k + 1 ) = ( k + 1 ) m + 1 m m 1 S m ( k ) i = 1 m 1 m i 1 S i ( k ) S m ( k ) + ( k + 1 ) m = ( k + 1 ) m + 1 m S m ( k ) i = 1 m 1 m i 1 S i ( k ) S m ( k ) + m S m ( k ) = ( k + 1 ) m + 1 ( k + 1 ) m i = 1 m 1 m i 1 S i ( k )
Hence,
S m ( k ) = 1 m + 1 ( k ( k + 1 ) m i = 1 m 1 m i 1 S i ( k ) )
The formula above directly implies a formula to find Bernoulli numbers. In this section, we shall derive such formula. The first thing we need to note is that B 2 n + 1 always equals zero for all positive integer n. Another observation is that B 2 n always appears as the coefficient of the first power of n in the polynomial S 2 m ( n ) .
Theorem 2.
For B 2 k , we have
B 2 k = 1 2 k + 1 ( 1 2 m = 1 k 1 2 k 2 m 1 B 2 m )
Proof. 
From Theorem 1, we have
S m ( n ) = 1 m + 1 ( n ( n + 1 ) m i = 1 m 1 m i 1 S i ( n ) )
Now we can expand the formula as follows
S m ( n ) = 1 m + 1 ( n ( n + 1 ) m n ( n + 1 ) 2 i = 2 m 1 m i 1 S i ( n ) )
Let m = 2 k
S 2 k ( n ) = 1 2 k + 1 ( n ( n + 1 ) 2 k n ( n + 1 ) 2 i = 2 2 k 1 2 k i 1 S i ( n ) )
Now, we separate the summation of the even terms and the odd terms
S 2 k ( n ) = 1 2 k + 1 ( n ( n + 1 ) 2 k n ( n + 1 ) 2 m = 1 k 1 2 k 2 m 1 S 2 m ( n ) m = 2 k 2 k ( 2 m 1 ) 1 S 2 m 1 ( n ) )
Now, we only need to consider the coefficient of the first power of n. In the following, we now write B 2 k instead of S 2 k ( n ) and we only write the coefficient of the first power of each polynomial we find.Therefore, the coefficient of n in the expansion n ( n + 1 ) 2 k is 1 and the coefficient of n in n ( n + 1 ) 2 is 1 2 . Therefore, we write
B 2 k = 1 2 k + 1 ( 1 1 2 m = 1 k 1 2 k 2 m 1 B 2 m m = 2 k 2 k ( 2 m 1 ) 1 B 2 m 1 )
Since B 2 m 1 = 0 for all positive integers m > 1 , the second summation term vanishes. Therefore,
B 2 k = 1 2 k + 1 ( 1 2 m = 1 k 1 2 k 2 m 1 B 2 m )

3.2. Generalization of Theorem 3.1

We shall generalize Theorem 1 to compute the sum of powers of some arithmetic progression. Firstly, we define S k a , b ( n ) : = i = 1 n ( a i + b ) k . S 1 a , b ( n ) can be easily computed by using the usual arithmetic series formula. In this subsection, we will show that we can compute S k a , b ( n ) given S 1 a , b ( n ) , S 2 a , b ( n ) , ... S k 1 a , b ( n ) . However, we should firstly evaluate the more general form of the integral in Lemma 1 to prove the generalization. We will use the same approach as in the proof of Lemma 1.
Lemma 2.
For the following integral, we have
1 n ( a t + b ) α t d t = 1 α + 1 i = 1 α + 1 α + 1 i 1 ( S i a , b ( n 1 ) b S i 1 a , b ( n 1 ) )
Proof. 
Using the same approach as the proof of Lemma 1, we have
I = k k + 1 ( a t + b ) α t d t = k = 1 n 1 k k k + 1 ( a t + b ) α d t
I = k = 1 n 1 k ( a k + b + a ) α + 1 ( a k + b ) α + 1 a ( α + 1 ) = 1 a ( α + 1 ) k = 1 n 1 ( k ( ( a k + b + a ) α + 1 ( a k + b ) α + 1 ) )
Applying Binomial Expansion, we obtain
I = 1 α + 1 k = 1 n 1 i = 1 α + 1 α + 1 i 1 k a α i + 1 ( a k + b ) i 1 = 1 α + 1 i = 1 α + 1 α + 1 i 1 a α i + 1 k = 1 n 1 k ( a k + b ) i 1 = 1 α + 1 i = 1 α + 1 α + 1 i 1 a α i k = 1 n 1 ( a k + b b ) ( a k + b ) i 1 = 1 α + 1 i = 1 α + 1 α + 1 i 1 a α i k = 1 n 1 ( a k + b ) i b ( a k + b ) i 1
Finally, we have
1 n ( a t + b ) α t d t = 1 α + 1 i = 1 α + 1 α + 1 i 1 a α i ( S i a , b ( n 1 ) b S i 1 a , b ( n 1 )
Theorem 3.
Let S m a , b ( k ) = i = 1 k ( a i + b ) m , then
S m a , b ( k ) = 1 m + 1 ( k ( a k + a + b ) m + b m S m 1 a , b ( k ) i = 1 m 1 a m i m i 1 ( S i a , b ( k ) b S i 1 a , b ( k ) )
Proof. 
Let f ( x ) = ( a x + b ) m . By Abel Summation Formula,
i = 1 n ( a i + b ) m = n ( a n + b ) m m a 1 n ( a t + b ) m 1 t d t
Using Lemma 2, we rewrite the integral as follows
S m a , b ( n ) = n ( a n + b ) m m a ( 1 m i = 1 m a m i 1 m i 1 ( S i a , b ( k ) b S i 1 a , b ( k ) ) )
Now, let
n = k + 1
S m a , b ( k + 1 ) = ( k + 1 ) ( a k + a + b ) m a i = 1 m a m i 1 m i 1 ( S i a , b ( k ) b S i 1 a , b ( k ) )
S m a , b ( k ) + ( a k + a + b ) m = ( k + 1 ) ( a k + a + b ) m m S m a , b ( k ) + b m S m 1 a , b ( k ) i = 1 m 1 a m i m i 1 ( S i a , b ( k ) b S i 1 a , b ( k ) )
( m + 1 ) S m a , b ( k ) = k ( a k + a + b ) m + b m S m 1 a , b ( k ) i = 1 m 1 a m i m i 1 ( S i a , b ( k ) b S i 1 a , b ( k ) )
Hence, we get
S m a , b ( k ) = 1 m + 1 ( k ( a k + a + b ) m + b m S m 1 a , b ( k ) i = 1 m 1 a m i m i 1 ( S i a , b ( k ) b S i 1 a , b ( k ) )
As a quick check, when a = 1 and b = 0 , the formula reduces to the formula in Theorem 1.

3.3. Alternative Proof of Theorem 3.1

Alternatively, Theorem 1 can be also derived from Pascal’s Sum of Powers Identity [3]
Theorem 4
(Pascal’s Sum of Powers Identity). Let S m ( n ) = i = 1 n i m then,
( n + 1 ) m + 1 1 = i = 0 m m + 1 i S i ( n )
Alternative Proof of Theorem 1.
For m = k , we have
( n + 1 ) k + 1 1 = ( k + 1 ) S k ( n ) + i = 0 k 1 k + 1 i S i ( n )
While for m = k 1 , we have
( n + 1 ) k 1 = i = 0 k 1 k i S i ( n )
Substracting Equation (4) from Equation (3),
( n + 1 ) k + 1 ( n + 1 ) k = ( k + 1 ) S k ( n ) + i = 0 k 1 ( k + 1 i k i ) S i ( n )
By Pascal’s Binomial Coefficient Identity,
k + 1 i k i = k i 1
n ( n + 1 ) k = ( k + 1 ) S k ( n ) + i = 1 k 1 k i 1 S i ( n )
Rearranging,
S k ( n ) = 1 k + 1 ( n ( n + 1 ) k i = 1 k 1 k i 1 S i ( n ) )

4. Corollaries

Corollary 1.
For all odd numbers 2m-1, we have S 1 ( n ) S 2 m 1 ( n )
Proof. 
By Theorem 1,
S 2 m 1 ( n ) = 1 2 m ( n ( n + 1 ) 2 m 1 i = 1 2 m 2 2 m 1 i 1 S i ( n ) )
The above expression can be written as follows
S 2 m 1 ( n ) = n ( n + 1 ) 2 m 1 2 m i = 1 2 m 2 2 m 1 i 1 S i ( n ) 2 m
While for the sum of even power 2 m we have
S 2 k ( n ) = n ( n + 1 ) 2 k 2 k + 1 i = 1 2 k 1 2 k i 1 S i ( n ) 2 k + 1
We see that if the above equation is multiplied by 1 2 m , it will be divisible by S 1 ( n ) = n ( n + 1 ) 2 . Therefore, if we substitute (6) to (5), it will be clear that S 1 ( n ) divides S 2 m 1 ( n )
Remark 1.
The fact that S 1 ( n ) S 2 m 1 ( n ) is the underlying idea of Faulhaber’s Formula for the sum of odd powers [4]
Corollary 2
(Nicomachus’ Theorem). The sum of first n cubes equals the square of the sum of the first n natural numbers
Proof. 
It is generally known that S 1 ( n ) = n ( n + 1 ) 2 = n 2 2 + n 2 . Now we shall apply Theorem 1 to find the formula for the sum of squares and the formula for the sum of cubes.
S 2 ( n ) = 1 3 ( n ( n + 1 ) 2 i = 1 1 2 i 1 S i ( n ) ) = n 3 3 + 2 n 2 3 + n 3 n 2 6 n 6 = n 3 3 + n 2 2 + n 6
Once again, we apply the formula to obtain the sum of cubes
S 3 ( n ) = 1 4 ( n ( n + 1 ) 3 i = 1 2 3 i 1 S i ( n ) ) = n ( n + 1 ) 3 4 n ( n + 1 ) 8 n 3 4 3 n 2 8 n 8
Collecting the like terms and simplifying,
S 3 ( n ) = n 4 4 + n 3 2 + n 2 4 = ( n ( n + 1 ) 2 ) 2

References

  1. Beardon, A.F. Sums of Powers of Integers. The American Mathematical Monthly 1996, 103, 201–213. [Google Scholar] [CrossRef]
  2. Apostol, T.M. Introduction to Analytic Number Theory; Springer Science and Business Media, 2013. [Google Scholar]
  3. Pascal, B., Sommation des puissances numriques; 1964; Vol. III, Oeuvres Compltes, pp. 341–367.
  4. Knuth, D.E. Johann Faulhaber and sums of powers. Mathematics of Computation 1993, 61, 277–294. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated