Next Article in Journal
Group-Valued Multisets
Previous Article in Journal
About Stabilization of the Controlled Inverted Pendulum Under Stochastic Perturbations of the Type of Poisson’s Jumps
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analytical Relations and Statistical Estimations for Sums of Powered Integers

Independent Researcher, Minneapolis, MN 55305, USA
Axioms 2025, 14(1), 30; https://doi.org/10.3390/axioms14010030
Submission received: 22 November 2024 / Revised: 17 December 2024 / Accepted: 31 December 2024 / Published: 1 January 2025

Abstract

:
Finding analytical closed-form solutions for the sums of powers of the first n positive integers is a classical problem of number theory. Analytical methods of constructing such sums produce complicated formulae of polynomials of a higher order, but they can be presented via the first two power sums. The current paper describes new presentations of the power sums and their extensions from polynomial to algebraic functions. Particularly, it shows that power sums of any higher order can be expressed just by a value of the arithmetic progression of the first power sum, or by the second power sum, or approximately by any another power sum. Regression modeling for the estimation of the powered sums is also considered, which is helpful for finding approximate values of long sums for big powers. Several problems based on the relations between sums of different powers in explicit forms are suggested for educational purposes.

1. Introduction

The sum of the first n positive integers in power p can be written as follows [1,2]:
S p , n = k = 1 n k p = 1 p + 2 p + + n p ,
where p is a natural number. For p = 1, it is an arithmetic progression with the formula
S 1 , n = k = 1 n k 1 = 1 + 2 + + n = n n + 1 2 ,
related to the triangular numbers and known by the Pythagorean school several centuries BC. For p = 2, the closed-form solution is
S 2 , n = k = 1 n k 2 = 1 2 + 2 2 + + n 2 = n n + 1 2 n + 1 6 ,
that was described already in around 250 BC by Archimedes. For p = 3, the sum equals
S 3 , n = k = 1 n k 3 = 1 3 + 2 3 + + n 3 = n 2 ( n + 1 ) 2 4 .
As it was proved by Nicomachus (c. 60–c. 120 AD), the sum S3,n (4) can be reduced to the square of the sum S1,n (2):
S 3 , n = n ( n + 1 ) 2 2 = S 1 , n 2 .
This relation is known as Nicomachus theorem [3]. An inspiring visual interpretation of the relations (2)–(5) is presented in [4].
From the 17th century and later, general solutions for sums with any power p were obtained and applied by T. Harriot, J. Faulhaber, J. Bernoulli, P. Fermat, J. Roberval, B. Pascal, C. Jacobi, L. Euler, and many others in form of the p + 1 order polynomial function by n, with the coefficients expressed via the binomial and Bernoulli numbers [1]. The basic formulae were published by German mathematician and astronomer Johann Faulhaber in 1631, also proved by Jacob Bernoulli, and later by Carl Jacobi. Additional to the first sums (2)–(4), the next several examples of sums can be presented in the factorized forms of Faulhaber polynomials [1]:
S 4 , n = k = 1 n k 4 = 1 4 + 2 4 + + n 4 = n n + 1 2 n + 1 30 3 n 2 + 3 n 1 ,
S 5 , n = k = 1 n k 5 = 1 5 + 2 5 + + n 5 = n 2 ( n + 1 ) 2 12 ( 2 n 2 + 2 n 1 ) ,
S 6 , n = k = 1 n k 6 = 1 6 + 2 6 + + n 6 = n n + 1 2 n + 1 42 3 n 4 + 6 n 3 3 n + 1 ,
S 7 , n = k = 1 n k 7 = 1 7 + 2 7 + + n 7 = n 2 ( n + 1 ) 2 24 3 n 4 + 6 n 3 n 2 4 n + 2 .
Various analytical methods of building such sums for any p-power, including matrix techniques, calculus, and the theory of numbers, have been developed in modern times, and an extensive body of the literature is devoted to this and related problems [5,6,7,8,9,10,11,12,13,14,15,16,17,18]. For example, in the work [19], it is shown how the power sums are linked to Bernoulli polynomials and which recurrent formula can be applied for finding sums of higher powers. In the work [20], it is proven that a sum of higher-order powered integers can be derived in the subsequent application of the recurrent integral relations between expressions of a lower order. Some large reviews on the history and formulae on this topic can be found in [21,22]. In the last decade, the work on these numbers and their connections to other problems has continued as well [23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38].
The current paper considers several new presentations of the power sums, relations between them, and their extensions in explicit forms. Some interesting problems based on these expressions are suggested, and they can be employed for educational purposes. Statistical modeling for the estimation of the powered sums, which is especially useful for finding approximate values of long sums with big n values, is also considered. This paper does not present a general theory but mostly concerns the relationships between the obtained forms given as special cases. These specific cases are analyzed, and the obtained results are completed by numerical methods and statistical calculations.
This paper is structured as follows. After the Introduction, Section 2 describes polynomials for the sums of positive integers in some transformations, Section 3 presents several examples of the relations between different sums, Section 4 considers regression models of the sums by their characteristics of power and length, and Section 5 summarizes the results.

2. Faulhaber Polynomials in Different Transformations

Faulhaber showed that all higher power sums can be expressed via the first two sums S1,n (2) and S2,n (3). Indeed, for the sums (6)–(9), they can be shown straightforwardly.
For p = 4, the expression (6) can be presented as follows:
S 4 , n = n n + 1 2 n + 1 30 3 n n + 1 1 = 1 5 S 2 , n 6 S 1 , n 1 .
For p = 5, Formula (7) can be expressed as follows:
S 5 , n = n 2 ( n + 1 ) 2 12 2 n n + 1 1 = 1 3 S 1 , n 2 4 S 1 , n 1 .
For p = 6, Formula (8) yields the following result:
S 6 , n = n n + 1 2 n + 1 42 3 n 2 n + 1 2 3 n n + 1 + 1 = 1 7 S 2 , n ( 12 S 1 , n 2 6 S 1 , n + 1 ) .
And for p = 7, the Formula (9) can be presented as follows:
S 7 , n = n 2 ( n + 1 ) 2 24 3 n 2 n + 1 2 4 n n + 1 + 2 = 1 3 S 1 , n 2 6 S 1 , n 2 4 S 1 , n + 1 .
Similar relations can be continued for the sums of higher order p. It is easy to notice that if p equals an even number, the sums have the first term S 2 , n , and if p equals an odd number, the sums have the squared first term S 1 , n 2 . The second terms for p = 4 and p = 5, shown in parentheses in (10)–(11), are presented by the first-degree polynomials by the first sum S 1 , n . For p = 6 and p = 7 in sums (12)–(13), the terms in parentheses are presented by the second-degree polynomials by S 1 , n . This sequence continues for the higher power sums as well; for example, the next sums with p = 8 and p = 9 are presented via the third-degree polynomials by S 1 , n , etc.
Let us consider some other presentations for the polynomials of the power sums in closed-form solutions. As it is shown in the work [39], the polynomials can be built using decompositions by the first two sums S 1 , n and S 2 , n in different powers. For example, besides (11), the formula for S 5 , n can be given as a combination of the first sum squared and the second sum squared:
S 5 , n = 3 2 S 2 , n 2 1 2 S 1 , n 2 ,
which can also be resolved as
S 2 , n 2 = 1 3 S 3 , n + 2 3 S 5 , n .
It is useful to note that in the last section of the article [2], this relation is given with an error (there, it is written with S 4 , n in place of S 3 , n ), but the correct expression is (15).
As it was shown by Faulhaber, and we can see it by the formulae given above, for the odd p values, the power sums are expressed via the first sum only, such as in (5), (11), or (13), and for the even p, the formulae also contain the multiplier S 2 , n . Let us consider a new algebraic form for the powered sums.
Theorem 1. 
All power sums can be presented via the first sum S 1 , n only, and these sums are polynomials or algebraic functions.
Proof of Theorem 1. 
To prove this, consider the following transformation. The relation (2) can be represented in the quadratic equation by n as follows:
n 2 + n 2 S 1 , n = 0 .
Solving Equation (16) with respect to a positive n yields the following root:
n = 1 + 1 + 8 S 1 , n 2 ,
succeeding with the relation:
2 n + 1 = 8 S 1 , n + 1 .
Using (18), we express the second power sum (3) via the first power sum:
S 2 , n = n ( n + 1 ) ( 2 n + 1 ) 6 = 8 S 1 , n + 1 3 S 1 , n .
The expression (19) for S 2 , n can be substituted into all formulae for the even values of power p. Thus, not only for the odd p values are the power sums expressed via the first sum, but now, the formulae for the even p can also be represented only via S 1 , n . Indeed, using the relation (19) for p = 4, substituting S 2 , n into (10) produces
S 4 , n = 1 5 S 2 , n 6 S 1 , n 1 = 8 S 1 , n + 1 15 S 1 , n 6 S 1 , n 1 .
Similarly, for p = 6, substituting S 2 , n (19) into (12) yields
S 6 , n = 1 7 S 2 , n 12 S 1 , n 2 6 S 1 , n + 1 = 8 S 1 , n + 1 21 S 1 , n 12 S 1 , n 2 6 S 1 , n + 1 .
By the same pattern, the sums for the next even powers can be obtained just as algebraic functions of only one value of the first sum S 1 , n . Therefore, if a value of the arithmetic progression (2) is known, all the other higher power sums can be expressed via it as well. □
Corollary 1. 
Another representation of the power sums in more symmetric forms can be achieved in the following approach. Let us denote the square root in (18) as a new variable
m = 8 S 1 , n + 1 .
Then the expression (18) reduces to the following relations:
2 n + 1 = m , n = m 1 2 ,         n + 1 = m + 1 2 .
The first sum (2) can be rewritten via the number m as
S 1 , n = n ( n + 1 ) 2 = m 2 1 2 3 .
With Relations (22)–(23), the second power sum (19) becomes
S 2 , n = n ( n + 1 ) ( 2 n + 1 ) 6 = m ( m 2 1 ) 2 3 3 .
The next several sums in these notations are as follows. From (5), we obtain the third sum:
S 3 , n = n 2 ( n + 1 ) 2 4 = ( m 2 1 ) 2 2 6 .
From (20), we obtain the fourth sum:
S 4 , n = 1 5 S 2 , n 6 S 1 , n 1 = m ( m 2 1 ) 2 3 3 5 3 m 2 1 4 1 = m ( m 2 1 ) ( 3 m 2 7 ) 2 5 3 5 .
The fifth sum (11) is
S 5 , n = 1 3 S 1 , n 2 4 S 1 , n 1 = ( m 2 1 ) 2 2 6 3 m 2 1 2 1 = ( m 2 1 ) 2 ( m 2 3 ) 2 7 3 .
The sum (21) for p = 6 becomes
S 6 , n = 1 7 S 2 , n 12 S 1 , n 2 6 S 1 , n + 1 = m ( m 2 1 ) 2 3 3 7 3 ( m 2 1 ) 2 16 3 m 2 1 4 + 1 .
The sum for p = 7 equals
S 7 , n = 1 3 S 1 , n 2 6 S 1 , n 2 4 S 1 , n + 1 = ( m 2 1 ) 2 2 6 3 3 ( m 2 1 ) 2 32 m 2 1 2 + 1 .
In a similar process, the next sums can be built. Formulae (24)–(30) present more compact forms as alternatives to the original (2)–(9) expressions. While Relations (19)–(21) correspond to the algebraic functions depending on the first sum S 1 , n and the square root of its linear form (18)–(19), the expressions (24)–(30) are given as the polynomials by the square root of the first sum (22), which by the first equation, (23), coincides with the bigger than n odd number m.
Theorem 2. 
All power sums can be presented via the second sum S 2 , n only, and these sums are algebraic functions.
Proof of Theorem 2. 
Let us represent Formula (3) of the second sum as the following equation by n:
2 n 3 + 3 n 2 + n 6 S 2 , n = 0 ,
which corresponds to a general form of the cubic equation a n 3 + b n 2 + c n + d = 0 . The substitution
n = t b 3 a = t 1 2
transforms the general form into the so-called depressed cubic equation t 3 + p t + q = 0 by the new variable t, with the parameters defined as follows [40]:
p = 3 a c b 2 3 a 2 = 6 9 12 = 1 4 ,       q = 2 b 3 9 a b c + 27 a 2 d 27 a 3 = 54 54 27 4 6 S 2 , n 27 8 = 3 S 2 , n .
The positive expression
Δ = q 2 4 + p 3 27 = 9 S 2 , n 2 4 1 12 3 > 0
corresponds to the condition of existence of only one real root of the depressed cubic equation, which equals:
t = q 2 + Δ 3 + q 2 Δ 3
Using the expressions (32)–(34) in Formula (35) yields the unique solution of the original Equation (31):
n = 3 2 S 2 , n + 9 4 S 2 , n 2 1 12 3 3 + 3 2 S 2 , n 9 4 S 2 , n 2 1 12 3 3 1 2 .
Substituting n (36) into Formulae (2), (5)–(9), or into any other sum of the powered integers expresses them via the second sum S 2 , n as algebraic functions. □
Corollary 2. 
Formula (36) can be simplified to the approximate solution: it is evident that  9 4 S 2 , n 2 1 12 3  for any n value, so the small constant  1 12 3 = 0.000579  can be omitted, which reduces (36) to the following simple formula:
n = 3 S 2 , n 3 1 2 .
This can be used for the approximate presentation of powered sums, especially for big n values, via the sum of the power p = 2 with good precision.
It is interesting to note that a similar expression to (37) for the first sum with p = 1 can be obtained from the simplified relation (17):
n = 1 + 1 + 8 S 1 , n 2 = 2 2 S 1 , n + 0.25 2 1 2 = 2 S 1 , n 1 2 ,
where the constant 0.25 is small in comparison with always a bigger value of 2 S 1 , n , so it can be omitted. Also, for p = 3, the expression (38) with help of (5) can be represented via the sum S 3 , n :
n = 2 S 1 , n 1 2 = 2 S 3 , n 1 2 = 4 S 3 , n 4 1 2 .
Comparing Relations (37)–(39), it is easy to notice that they all correspond to the same formula
n = ( p + 1 ) S p , n p + 1 1 2 ,
taken for the first three values p = 1, 2, 3. Naturally, this raises a question—could this relation be true for any bigger power p?
The answer is—yes. To prove it, let us present several first sums (2)–(6) in their explicit form as regular polynomials:
S 1 , n = n 2 2 + n 2 ,         S 2 , n = n 3 3 + n 2 2 + n 6 ,           S 3 , n = n 4 4 + n 3 2 + n 2 4 ,           S 4 , n = n 5 5 + n 4 2 + n 3 3 n 30 .  
It is easy to notice that any sum S p , n in (41) is a polynomial by n of the degree p + 1, so the leading item is n p + 1 and the first coefficient is 1/(p + 1). The second item in these polynomial sums is n p with the constant coefficient ½, and the intercept equals zero. The same features are true for the sums in (7)–(9) and for higher order sums as well [1,2]. These properties are discussed in [41] (with some changes in signs defined by different limits in summation). The next items contain different coefficients defined by the Bernoulli polynomials, so the sum of powered integers (41) and other sums of any order can be presented in the following general form:
S p , n = a p + 1 n p + 1 + a p n p + a p 1 n p 1 + + a 1 n = n p + 1 p + 1 + n p 2 + a p 1 n p 1 + + a 1 n .
The main contribution to the total sum is given by the first two items, and the input from all the next items in (42) becomes negligible with big n values.
Theorem 3. 
The sum of powered integers (42) can be approximated by the first item of the depressed polynomial, and this estimate leads to the expression (40).
Proof of Theorem 3. 
Similar to the change in variable in cubic Equation (32), in the general case of polynomial (42), the substitution of the variable
n = t a p ( p + 1 ) a p + 1 = t 1 2
leads to the depressed polynomial by t without the second item and with the new coefficients b, which can be presented as follows:
S p , t = t p + 1 p + 1 + b p 1 t p 1 + + b 1 t + b 0 t p + 1 p + 1 1 + b p 1 ( p + 1 ) t 2 + + b 1 ( p + 1 ) t p + b 1 ( p + 1 ) t p + 1 .
It is useful to note that the quotient a p ( p + 1 ) a p + 1 in (43) is related to a specific feature, where the mean value of a polynomial root equals the mean value of the locations of its critical points such as the extrema and inflection points [42]. For big n values and the correspondingly big t values (43), the sum (44) can be approximated by its first item because all the others decrease by the inverted t powers, which yields
S p , t = t p + 1 p + 1
Returning from t to the original variable (43) transforms (45) into the following expression:
S p , n = n + 1 2 p + 1 p + 1 .
Solving Equation (46) with respect to n yields the expression (40). □
Corollary 3. 
The obtained approximation (46) can be applied for the express analysis of the powered sums, permitting their immediate evaluation. The precision of this estimate is growing with bigger n values, so for the longer sums where the simple calculation by (46) is especially useful. Concerning the expression (40), choosing the power p value and substituting n (40) into the powered sums presents any of them only via the sum S p , n of the taken p.

3. Several Explicit Examples of Relations Between the Sums

The considered formulae produce various interesting relations between the sums of different powers, which could be useful for instructors in educational purposes. Let us describe several such problems for exercises formulated with the sums of the p-th powers of the first n positive integers.
The expressions (10)–(11), taking (5) into account, can be rewritten as
S 1 , n = 5 S 4 , n 6 S 2 , n + 1 6   ,             S 1 , n = 3 S 5 , n 4 S 3 , n + 1 4 .
With Equation (47), a problem can be formulated in explicit form, for example, for any positive integer n, to prove the equality, or to simplify the following expression:
6 1 + 2 + + n 5 1 4 + 2 4 + + n 4 1 2 + 2 2 + + n 2 = 1 .
Combining both Equation (47) forms into their product yields the following expression:
1 2 1 6 5 S 4 , n 6 S 2 , n + 1 3 S 5 , n 4 S 3 , n + 1 = S 1 , n ,
which corresponds to the following problem: for any positive integer n, prove the equality
1 2 1 6 5 1 4 + 2 4 + + n 4 1 2 + 2 2 + + n 2 + 1 3 1 5 + 2 5 + + n 5 1 3 + 2 3 + + n 3 + 1 = 1 + 2 + + n .
Excluding sum S 1 , n from Equation (47) produces another relation:
10 S 4 , n S 2 , n 9 S 5 , n S 3 , n = 1 ,
which leads to the following problem: prove the equality, or simplify the expression at the left-hand side:
10 1 4 + 2 4 + + n 4 1 2 + 2 2 + + n 2 9 1 5 + 2 5 + + n 5 1 3 + 2 3 + + n 3 = 1 .
Substituting S 1 , n (49) into the relation (18) produces another problem to prove the equality, or to simplify the given left-hand side,
1 2 1 + 4 1 6 5 1 4 + 2 4 + + n 4 1 2 + 2 2 + + n 2 + 1 3 1 5 + 2 5 + + n 5 1 3 + 2 3 + + n 3 + 1 1 = n .
From Formulas (11) and (13), we have the following equations:
3 S 5 , n S 3 , n = 4 S 1 , n 1 ,       3 S 7 , n S 3 , n = 6 S 1 , n 2 4 S 1 , n + 1 ,
and adding them produces the relation
S 5 , n + S 7 , n S 3 , n = 2 S 1 , n 2 .  
It can be suggested for proving the equality in different explicit forms, for example,
( 1 5 + 2 5 + + n 5 ) + ( 1 7 + 2 7 + + n 7 ) ( 1 3 + 2 3 + + n 3 ) 2 = 2 .
Also, Formulas (10) and (12) can be presented as the equations
5 S 4 , n S 2 , n = 6 S 1 , n 1 ,       7 S 6 , n S 2 , n = 12 S 1 , n 2 6 S 1 , n + 1 ,
and adding them yields the relation
5 S 4 , n + 7 S 6 , n S 2 , n = 12 S 1 , n 2 ,
which in turn can be presented as a problem of proving the following identity:
5 ( 1 4 + 2 4 + + n 4 ) + 7 ( 1 6 + 2 6 + + n 6 ) 6 ( 1 2 + 2 2 + + n 2 ) ( 1 3 + 2 3 + + n 3 ) = 2 .
Equalizing Relations (55) and (58) as
2 S 1 , n 2 = S 5 , n + S 7 , n S 3 , n = 5 S 4 , n + 7 S 6 , n 6 S 2 , n ,
leads to another problem to prove the equality for any given positive integer n:
6 1 5 + 2 5 + + n 5 + 6 1 7 + 2 7 + + n 7 5 1 4 + 2 4 + + n 4 + 7 1 6 + 2 6 + + n 6 = 1 3 + 2 3 + + n 3 1 2 + 2 2 + + n 2 .
From the expression (15), we can write the next problem in the following explicit form:
3 ( 1 2 + 2 2 + + n 2 ) 2 1 1 + 2 1 + + n 1 2 = 2 1 5 + 2 5 + + n 5 .
Equations (11) and (15) present two forms for the sum S 5 , n :
S 5 , n = 4 3 S 1 , n S 3 , n 1 3 S 3 , n = 3 2 S 2 , n 2 1 2 S 3 , n ,
then, excluding S 5 , n leads to the relation
9 S 2 , n 2 = 8 S 1 , n 3 + S 1 , n 2 ,
which can also be obtained by squaring the relation (19). The expression (64) divided by S 1 , n 2 can be simplified and presented explicitly for proving the following equality:
9 1 2 + 2 2 + + n 2 1 + 2 + + n 2 8 ( 1 + 2 + + n ) = 1 .
Combining various equations, it is easy to obtain other interesting problems for proving identities among the sums of power integers, which can be useful in classrooms.

4. Numerical Evaluation and Statistical Estimation for the Powered Sums

Additional to the analytical relations for the powered sums described above, let us consider regression modeling for their estimation. Although the straightforward calculation of sum (1) is not a hard task for a computer for given numbers of integers and power values, it is useful to obtain statistical characteristics and regression models for the dependence of different sums on the n and p values. It can be helpful for the practical express analysis of an approximate estimation of long sums with big n and big power p values. When power p is above several units, the items with bigger n values grow exponentially, and their contribution defines the main input to the total value of the sums. Statistical modeling permits us to estimate such a main portion of the sums by the biggest items.
Let us consider an approximation of the sum (1) by the corresponding integral under the assumption of continuous k values:
S p , n = k = 1 n k p 1 n k p d k = k p + 1 p + 1 n | 1 = n p + 1 1 p + 1 n p + 1 p + 1 .
The last subtraction of one in the numerator (66) is negligible in comparison with the n and p values of several units. The dependence (66) of the exponential kind can be linearized by a logarithmic transformation:
ln ( S p , n ) = p + 1 ln n l n p + 1 ,
which can be related to the Lambert function [43].
For statistical experiments, a data set was generated for the sums S p , n with the n values running from 2 to 20 and the values of p from 1 to 12. This data set is presented in Table 1 in the approximated form for the big p and n values, which produce huge powered sums.
Using y = ln ( S p , n ) as the dependent variable and items at the right-hand side (67) as two independent variables x 1 = p + 1 ln ( n ) and x 2 = ln ( p + 1 ) , we can build a model of linear regression y = a 0 + a 1 x 1 + a 2 x 2 by the data in Table 1, with the total number of observations p × n = 12 × 20 = 240. The obtained regression model is
ln ( S p , n ) = 0.941 p + 1 ln n 0.083 ln p + 1 0.608 ,
with the residual standard deviation std = 0.193 and the coefficient of multiple determination R2 = 0.9996, so it is of a high quality of fit. This model can be simplified by skipping the second variable, so the regression becomes
ln ( S p , n ) = 0.945 p + 1 ln n 0.506
with std = 0.195 and R2 = 0.9996, so this model has a high quality of fit as well. However, exponentiating the relation (68) or (69) produces more noticeable deviations from the original data from the sums.
To keep the prediction results closer to the actual values of the sums in Table 1, instead of the logarithmic transformation, it is possible to obtain a convenient-for-modeling relation by taking the first two items in polynomial (42) and dividing by the first term np, which yields a model:
S p , n n p = n p + 1 + 1 2 + ε
where epsilon denotes all the smaller items in (42) corresponding to division by n in growing powers. The same model (70) can be obtained by using integration in place of summing by the more accurate Euler–Maclaurin formula [1,44], where, in place of (66), we obtain
S p , n = k = 1 n k p 1 n k p d k + 1 p + n p 2 = n p + 1 p + 1 + n p 2 1 p + 1 + 1 2 .
Dividing (71) by the term np and skipping the last two items quickly diminishing with bigger n values yields the main items coinciding with Formula (70).
With the function (70), we construct the linear regression model
S p , n n p = 0.971 n p + 1 + 0.637
with residual std = 0.072 and R2 = 0.998 and another often used characteristic of the mean absolute error MAE = 0.051, so this model demonstrates a high quality of fit. It approximately reproduces theoretical relation (70), but with the coefficients 0.971 and 0.637 in place of 1.0 and 0.5, respectively. This model can be slightly improved by adding the predictors n and 1/(p + 1) to its mix effect, which yields
S p , n n p = 0.017 n 0.698 1 p + 1 + 1.037 n p + 1 + 0.816
where the quality of fit is defined by std = 0.048, R2 = 0.999, and MAE = 0.036, so it is better than the previous model (72).
A few other regressions were based on the analytical approximation (46), which was tried in several versions of the transformed response variable and its possible predictors with unknown coefficients and an intercept added for enhancing the quality of fit. The model with the best characteristics was obtained using a division of relation (46) by the term n + 1 2 p , which corresponds to the following dependent and independent variables:
y = S p , n n + 1 2 p , x = n + 1 2 p + 1
The values of quotients y (74) are shown in Table 2.
To check the behavior of the function y (74) by the n values, we construct graphs by the data from Table 2 and present them in Figure 1, which demonstrates an almost perfect linear dependence for any given p value.
Similarly, the behavior of the function y (74) by the p values is presented in Figure 2. It shows a hyperbolic dependence by p for the given example of n values. Thus, the dependence assumed in (46) and (74) should be of a good quality of fit.
The constructed regression model with variables (74) has the following equation:
S p , n n + 1 2 p = a 1 n + 1 2 p + 1 + a 0 ,   a 1 = 1.0105 ,   a 0 = 0.0566
where the quality of fit is of std = 0.0237, R2 = 0.9998, and MAE = 0.018, so it is the best one of all considered models. If we were to round the slope to 1 and the intercept to 0, this regression coincides with the derived relation (46). For the prediction of the sums, this regression produces values that can be found by the model represented in the following explicit form:
S p , n = n + 1 2 p 1.0105 n + 1 2 p + 1 0.0566 .
This model incorporates the influence of the skipped items of the polynomials (42) and suggests the optimal estimator for the sums of powered integers in cases of various p and n values. The obtained models permit us to estimate the approximate values of the sums of powered integers, and they are convenient, especially in the cases of big n and p numbers. The prediction intervals can be defined as a predicted value plus–minus a critical t-statistics value (for example, t = 1.96 for 95% of the confidence level or a level of significance of 5%) multiplied by the error estimate [45], and more detail on the interval prediction by regression models can be found in any book on regression analysis.
Table 3 presents quotients of the predicted values (76) to the original exact values of the sums from Table 1. The last two columns show the means and the standard deviation of the values in each row (so for each n value). Similarly, the last two rows demonstrate the mean and std of the values in each column for each p value. The last two values in the south-east corner of the table present the mean and std across the deviations of all data. The quotients are close to one, and the std values are rather small, so the approximation (76) is very good, especially for the big n values, for which the prediction by models is especially useful. All characteristics of the regressions’ quality indicate that the models are valuable, but of course, they give just approximations of the powered sums, so they can serve for a quick estimation, while finding an exact result requires the calculation of the sums by their definition or the analytical closed-form solutions described above.

5. Summary

This paper considers a classical problem of the number theory about the sums of integers in different powers and the relations between them. Some new transformations are described, particularly with the extension of polynomials to algebraic functions. It is shown that by using these algebraic functions, the power sums of any higher order can be expressed just by a value of the arithmetic progression of the first power sum or any other taken sum. Problems based on the relations between sums of different powers in explicit forms are suggested for educational purposes. Statistical evaluations and regression modeling for an approximation of the sums of powered integers are performed as well, and such models have good precision, especially for long sums. Future research can be focused on other possible transformations of polynomials of sums of powered integers in different extended forms with relations between them both in analytical and statistical models.

Funding

This research received no external funding.

Data Availability Statement

There are no external data.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Power Sum. Available online: https://mathworld.wolfram.com/PowerSum.html (accessed on 25 December 2024).
  2. Faulhaber’s Formula. Available online: https://en.wikipedia.org/wiki/Faulhaber%27s_formula (accessed on 25 December 2024).
  3. Squared Triangular Number. Available online: https://en.wikipedia.org/wiki/Squared_triangular_number (accessed on 25 December 2024).
  4. Cooper, H. Visual Sum of Cubes. 2022. Available online: https://x.st/visual-sum-of-cubes/ (accessed on 25 December 2024).
  5. Burrows, B.L.; Talbot, R.F. Sums of powers of integers. Am. Math. Mon. 1984, 91, 394–403. [Google Scholar] [CrossRef]
  6. Edwards, A.W.F. A quick route to sums of powers. Am. Math. Mon. 1986, 93, 451–455. [Google Scholar] [CrossRef]
  7. Crilly, T.; Millward, S. Sums of powers of integers—A general method. Math. Gaz. 1988, 471, 205–207. [Google Scholar] [CrossRef]
  8. Acu, D. Some algorithms for the sums of integer powers. Math. Mag. 1988, 61, 189–191. [Google Scholar] [CrossRef]
  9. Knuth, D.E. Johann Faulhaber and sums of powers. Math. Comput. 1993, 61, 277–294. [Google Scholar] [CrossRef]
  10. Beardon, A. Sums of powers of integers. Am. Math. Mon. 1996, 103, 201–213. [Google Scholar] [CrossRef]
  11. Wu, D.W. Bernoulli numbers and sums of powers. Int. J. Math. Educ. Sci. Technol. 2001, 32, 440–443. [Google Scholar] [CrossRef]
  12. Guo, V.J.W.; Zeng, J. A q-analogue of Faulhaber’s formula for sums of powers. arXiv 2005, arXiv:math/0501441. [Google Scholar] [CrossRef] [PubMed]
  13. Shevelev, V. A short proof of a known relation for consecutive power sums. arXiv 2007, arXiv:0711.3692. [Google Scholar]
  14. Apostol, T.M. A primer on Bernoulli numbers and polynomials. Math. Mag. 2008, 81, 178–190. [Google Scholar]
  15. Tsao, H.P. Explicit polynomial expressions for sums of powers of an arithmetic progression. Math. Gaz. 2008, 92, 87–92. Available online: https://www.cambridge.org/core/journals/mathematical-gazette/article/abs/9209-explicit-polynomial-expressions-for-sums-of-powers-of-an-arithmetic-progression/168A1844CADBE7C16A599B44E80385A7 (accessed on 25 December 2024). [CrossRef]
  16. Chen, W.Y.; Fu, A.M.; Zhang, I.F. Faulhaber’s theorem on power sums. Discret. Math. 2009, 309, 2974–2981. [Google Scholar] [CrossRef]
  17. Swetz, F.J.; Katz, V.J. Mathematical Treasures—Johann Faulhaber’s Academia Algebrae. Convergence. January 2011. Available online: https://old.maa.org/press/periodicals/convergence/mathematical-treasures-johann-faulhabers-academia-algebrae (accessed on 25 December 2024).
  18. MacMillan, K.; Sondow, J. Proofs of power sum and binomial coefficient congruences via Pascal’s identity. Am. Math. Mon. 2011, 118, 549–551. [Google Scholar] [CrossRef]
  19. Bazsó, A.; Pintér, A.; Srivastava, H. A refinement of Faulhaber’s theorem concerning sums of powers of natural numbers. Appl. Math. Lett. 2012, 25, 486–489. Available online: https://www.sciencedirect.com/science/article/pii/S089396591100454X (accessed on 25 December 2024). [CrossRef]
  20. Johnson, J. Summing the powers of the integers using calculus. Math. Teach. 1986, 79, 218–219. [Google Scholar] [CrossRef]
  21. Coen, L.E. Sums of Powers and the Bernoulli Numbers. April 1996. Available online: https://thekeep.eiu.edu/theses/1896 (accessed on 25 December 2024).
  22. Beery, J. Sums of Powers of Positive Integers. Convergence. 2009. Available online: https://old.maa.org/press/periodicals/convergence/sums-of-powers-of-positive-integers (accessed on 25 December 2024).
  23. Alt, A. Variations on a theme: The sum of equal powers of natural numbers (II). Crux Math. 2014, 40, 10. Available online: https://www.academia.edu/34314987/Variations_on_a_theme_The_sum_of_equal_powers_of_natural_numbers_II (accessed on 25 December 2024).
  24. Coffey, M.W.; Lettington, M.C. On Fibonacci polynomial expressions for sums of mth powers, their implications for Faulhaber’s formula and some theorems of Fermat. arXiv 2015, arXiv:1510.05402. [Google Scholar]
  25. Merca, M. An alternative to Faulhaber’s formula. Am. Math. Mon. 2015, 122, 599–601. Available online: https://www.researchgate.net/publication/278726859_An_Alternative_to_Faulhaber%27s_Formula (accessed on 25 December 2024). [CrossRef]
  26. Schumacher, R. An Extended version of Faulhaber’s formula. J. Integer Seq. 2016, 19, 16.4.2. Available online: https://cs.uwaterloo.ca/journals/JIS/VOL19/Schumacher/schu3.pdf (accessed on 25 December 2024).
  27. Singh, J. Defining sums of products of power sums. J. Integer Seq. 2016, 19, 1–16. Available online: https://www.academia.edu/90914310/Defining_Sums_of_Products_of_Power_Sums (accessed on 15 December 2024).
  28. Si, D.T. Sums of powers of integers and Bernoulli numbers clarified. Appl. Phys. Res. 2017, 9, 12–20. [Google Scholar] [CrossRef]
  29. Orosi, G.A. Simple derivation of Faulhaber’s formula. Appl. Math. E-Notes 2018, 18, 124–126. Available online: https://www.math.nthu.edu.tw/~amen/2018/AMEN-170803.pdf (accessed on 25 December 2024).
  30. Ho, C.; Mellblom, G.; Frodyma, M. On the sum of powers of consecutive integers. Coll. Math. J. 2018, 45, 1–7. [Google Scholar] [CrossRef]
  31. Duran, U.; Acikgoz, M. Some computations between sums of powers of consecutive integers and alternating sums of powers of consecutive integers. J. Univers. Math. 2019, 2, 137–143. [Google Scholar] [CrossRef]
  32. Litvinov, S.; Marco, F. Sums of powers of consecutive integers and Pascal’s triangle. Coll. Math. J. 2019, 45, 1–7. Available online: https://www.researchgate.net/publication/338249827_Sums_of_Powers_of_Consecutive_Integers_and_Pascal%27s_Triangle (accessed on 25 December 2024). [CrossRef]
  33. Pietrocola, G. From Twin Theorems on Matrices Obtainable from the Pascal Triangle to the Problem of Sums of Successive Integers Extended to Any Arithmetic Progression. 2019. Available online: http://www.pietrocola.eu/EN/fromtwintheoremstoFaulhaber.pdf (accessed on 25 December 2024).
  34. Cereceda, J.L. Bernoulli and Faulhaber. Fibonacci Q. 2021, 59, 145–149. [Google Scholar] [CrossRef]
  35. Casinillo, L.F. Some new remarks on power sums. J. Fundam. Math. Appl. 2022, 5, 9–16. [Google Scholar] [CrossRef]
  36. Cereceda, J.L. Sums of Powers of Integers and the Sequence A304330. arXiv 2024, arXiv:2405.05268. [Google Scholar]
  37. Zielinski, R. Faulhaber’s formula, odd Bernoulli numbers, and the method of partial sums. Integers 2022, 22, A78. [Google Scholar]
  38. Kumar, V.R.K.; Sivaraman, R. Novel way of determining sum of k-th powers of natural numbers. Int. J. Res. 2024, 12, 49–54. [Google Scholar] [CrossRef]
  39. Miller, S.J.; Trevino, E. On the sum of k-th powers in terms of earlier sums. Coll. Math. J. 2022, 53, 220–225. Available online: https://arxiv.org/pdf/1912.07171v2 (accessed on 25 December 2024). [CrossRef]
  40. Cubic Equation. Available online: https://en.wikipedia.org/wiki/Cubic_equation (accessed on 25 December 2024).
  41. Simsek, Y.; Kim, D.; Kim, T.; Rim, S.-H. A note on the sums of powers of consecutive q-integers. arXiv 2005, arXiv:math/0503073. [Google Scholar]
  42. Lipovetsky, S. Specific Features of Polynomials in Several Examples. Axioms 2024, 13, 43. [Google Scholar] [CrossRef]
  43. Lambert Function. Available online: https://en.wikipedia.org/wiki/Lambert_W_function (accessed on 25 December 2024).
  44. Euler-Maclaurin Formula. Available online: https://mathworld.wolfram.com/Euler-MaclaurinIntegrationFormulas.html (accessed on 25 December 2024).
  45. Confidence Intervals. Available online: https://real-statistics.com/regression/confidence-and-prediction-intervals/ (accessed on 25 December 2024).
Figure 1. Dependence of y = S p , n ( n + 0.5 ) p by n for a dozen p values.
Figure 1. Dependence of y = S p , n ( n + 0.5 ) p by n for a dozen p values.
Axioms 14 00030 g001
Figure 2. Dependence of y = S p , n ( n + 0.5 ) p by p for a set of even n values.
Figure 2. Dependence of y = S p , n ( n + 0.5 ) p by p for a set of even n values.
Axioms 14 00030 g002
Table 1. Sums S p , n for p = 1, 2, …, 12, and n = 2, 3, …, 20.
Table 1. Sums S p , n for p = 1, 2, …, 12, and n = 2, 3, …, 20.
p123456789101112
n
2359173365129257513102520494097
361436982767942316681820,19660,074179,196535,538
410301003541300489018,70072,354282,3401,108,6504,373,50017,312,754
51555225979442520,51596,825462,9792,235,46510,874,27553,201,625261,453,379
62191441227512,20167,171376,7612,142,59512,313,16171,340,451415,998,6812,438,235,715
728140784467629,008184,8201,200,3047,907,39652,666,768353,815,7002.393 × 1091.628 × 1010
8362041296877261,776446,9643,297,45624,684,612186,884,4961,427,557,5241.098 × 10108.4999 × 1010
945285202515,333120,825978,4058,080,42567,731,333574,304,9854,914,341,9254.236 × 10103.6743 × 1011
1055385302525,333220,8251,978,40518,080,425167,731,3331,574,304,98514,914,341,9251.424 × 10111.3674 × 1012
1166506435639,974381,8763,749,96637,567,596382,090,2143,932,252,67640,851,766,5264.277 × 10114.5059 × 1012
1278650608460,710630,7086,735,95073,399,404812,071,9109,092,033,0281.02769 × 10111.171 × 10121.3422 × 1013
1391819828189,2711,002,00111,562,7591.36 × 1081.628 × 1091.9697 × 10102.40628 × 10112.963 × 10123.672 × 1013
14105101511,025127,6871,539,82519,092,2952.42 × 1083.104 × 1094.0358 × 10105.29882 × 10117.012 × 10129.3414 × 1013
15120124014,400178,3122,299,20030,482,9204.12 × 1085.666 × 1097.8801 × 10101.10653 × 10121.566 × 10132.2316 × 1014
16136149618,496243,8483,347,77647,260,1366.81 × 1089.961 × 1091.4752 × 10112.20604 × 10123.325 × 10135.0464 × 1014
17153178523,409327,3694,767,63371,397,7051.09 × 1091.694 × 10102.6611 × 10114.22204 × 10126.753 × 10131.0873 × 1015
18171210929,241432,3456,657,2011.05 × 1081.7 × 1092.796 × 10104.6447 × 10117.79251 × 10121.318 × 10142.2441 × 1015
19190247036,100562,6669,133,3001.52 × 1082.6 × 1094.494 × 10107.8716 × 10111.39236 × 10132.483 × 10144.4574 × 1015
20210287044,100722,6661.2 × 1072.16 × 1083.88 × 1097.054 × 10101.2992 × 10122.41636 × 10134.531 × 10148.5534 × 1015
Table 2. Quotients y = S p , n ( n + 0.5 ) p .
Table 2. Quotients y = S p , n ( n + 0.5 ) p .
p123456789101112
n
21.200.800.580.440.340.270.210.170.130.110.090.07
31.711.140.840.650.530.430.360.300.260.220.190.16
42.221.481.100.860.700.590.500.430.370.330.290.25
52.731.821.351.070.880.740.640.550.490.430.380.34
63.232.151.611.271.050.890.770.670.590.530.480.43
73.732.491.861.481.221.040.900.790.700.630.570.51
84.242.822.111.681.391.191.030.910.810.730.660.60
94.743.162.361.881.561.331.161.020.910.820.740.68
105.243.492.612.081.731.481.281.141.010.920.830.76
115.743.832.862.291.901.621.411.251.121.010.920.84
126.244.163.122.492.071.771.541.361.221.101.010.92
136.744.493.372.692.231.911.671.481.321.201.091.00
147.244.833.622.892.402.051.791.591.421.291.181.08
157.745.163.873.092.572.201.921.701.531.381.261.16
168.245.494.123.292.742.342.041.811.631.471.351.24
178.745.834.373.492.902.492.171.931.731.571.431.32
189.246.164.623.693.072.632.302.041.831.661.521.40
199.746.504.873.893.242.772.422.151.931.751.601.47
2010.246.835.124.093.412.922.552.262.031.841.691.55
Table 3. Quotients of the predicted values to the exact values of the sums S p , n .
Table 3. Quotients of the predicted values to the exact values of the sums S p , n .
p123456789101112meanstd
n
20.990.970.991.021.071.131.211.311.441.591.771.971.290.34
30.990.970.970.991.001.031.061.101.151.201.271.341.090.12
40.990.970.970.980.981.001.011.031.051.081.121.151.030.06
50.990.980.970.980.980.980.991.001.021.031.051.071.000.03
60.990.980.980.980.980.980.980.991.001.011.021.030.990.02
70.990.980.980.980.980.980.980.980.991.001.001.010.990.01
80.990.980.980.980.980.980.980.980.980.990.991.000.980.01
90.990.980.980.980.980.980.980.980.980.980.990.990.980.01
100.990.990.980.980.980.980.980.980.980.980.980.990.980.00
110.990.990.980.980.980.980.980.980.980.980.980.980.980.00
120.990.990.990.980.980.980.980.980.980.980.980.980.980.00
130.990.990.990.980.980.980.980.980.980.980.980.980.980.00
140.990.990.990.980.980.980.980.980.980.980.980.980.980.01
150.990.990.990.990.980.980.980.980.980.980.980.980.980.01
160.990.990.990.990.980.980.980.980.980.980.980.980.980.01
170.990.990.990.990.980.980.980.980.980.980.980.980.980.01
180.990.990.990.990.990.980.980.980.980.980.980.980.980.01
190.990.990.990.990.990.980.980.980.980.980.980.980.980.01
201.000.990.990.990.990.980.980.980.980.980.980.980.990.01
mean0.990.980.980.980.990.991.001.011.021.031.051.071.01
std0.000.010.010.010.020.040.050.080.110.140.190.24 0.11
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.

Share and Cite

MDPI and ACS Style

Lipovetsky, S. Analytical Relations and Statistical Estimations for Sums of Powered Integers. Axioms 2025, 14, 30. https://doi.org/10.3390/axioms14010030

AMA Style

Lipovetsky S. Analytical Relations and Statistical Estimations for Sums of Powered Integers. Axioms. 2025; 14(1):30. https://doi.org/10.3390/axioms14010030

Chicago/Turabian Style

Lipovetsky, Stan. 2025. "Analytical Relations and Statistical Estimations for Sums of Powered Integers" Axioms 14, no. 1: 30. https://doi.org/10.3390/axioms14010030

APA Style

Lipovetsky, S. (2025). Analytical Relations and Statistical Estimations for Sums of Powered Integers. Axioms, 14(1), 30. https://doi.org/10.3390/axioms14010030

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop