{"title":"一种生成整数幂和公式的新算法","authors":"Maximilian J. Wang, S. Goel, Guifen Mao","doi":"10.1145/2638404.2638525","DOIUrl":null,"url":null,"abstract":"A new algorithm is proposed to generate a formula for the sum of integer powers Sp(n) = Σnk=1kp for an arbitrary positive integer p. This formula plays an important role in scientific computation, numerical analysis, complexity analysis, academic research, and even in teaching calculus. Faulhaber's formula indicates that Sp(n) can be expressed as a (p + 1)th degree polynomial. A special linear system is constructed and then solved to fit this polynomial through the Gaussian Elimination method. This study shows that this new algorithm is more efficient, having a polynomial time O(p3) complexity. In the implementation procedure, this algorithm does not use any complicated Bernoulli numbers, Stirling numbers, integrals, differentiations, or recursion methods. Maple software code is used to illustrate how the new algorithm works, and the coding of this algorithm has only five lines. For a power of 20 or 100, the computer execution CPU (Intel Processor running @ 3GHz) time takes only 0.062 seconds or 16.396 seconds respectively.","PeriodicalId":91384,"journal":{"name":"Proceedings of the 2014 ACM Southeast Regional Conference","volume":"21 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2014-03-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A new algorithm to generate a formula for the sum of integer powers\",\"authors\":\"Maximilian J. Wang, S. Goel, Guifen Mao\",\"doi\":\"10.1145/2638404.2638525\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"A new algorithm is proposed to generate a formula for the sum of integer powers Sp(n) = Σnk=1kp for an arbitrary positive integer p. This formula plays an important role in scientific computation, numerical analysis, complexity analysis, academic research, and even in teaching calculus. Faulhaber's formula indicates that Sp(n) can be expressed as a (p + 1)th degree polynomial. A special linear system is constructed and then solved to fit this polynomial through the Gaussian Elimination method. This study shows that this new algorithm is more efficient, having a polynomial time O(p3) complexity. In the implementation procedure, this algorithm does not use any complicated Bernoulli numbers, Stirling numbers, integrals, differentiations, or recursion methods. Maple software code is used to illustrate how the new algorithm works, and the coding of this algorithm has only five lines. For a power of 20 or 100, the computer execution CPU (Intel Processor running @ 3GHz) time takes only 0.062 seconds or 16.396 seconds respectively.\",\"PeriodicalId\":91384,\"journal\":{\"name\":\"Proceedings of the 2014 ACM Southeast Regional Conference\",\"volume\":\"21 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2014-03-28\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 2014 ACM Southeast Regional Conference\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2638404.2638525\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2014 ACM Southeast Regional Conference","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2638404.2638525","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A new algorithm to generate a formula for the sum of integer powers
A new algorithm is proposed to generate a formula for the sum of integer powers Sp(n) = Σnk=1kp for an arbitrary positive integer p. This formula plays an important role in scientific computation, numerical analysis, complexity analysis, academic research, and even in teaching calculus. Faulhaber's formula indicates that Sp(n) can be expressed as a (p + 1)th degree polynomial. A special linear system is constructed and then solved to fit this polynomial through the Gaussian Elimination method. This study shows that this new algorithm is more efficient, having a polynomial time O(p3) complexity. In the implementation procedure, this algorithm does not use any complicated Bernoulli numbers, Stirling numbers, integrals, differentiations, or recursion methods. Maple software code is used to illustrate how the new algorithm works, and the coding of this algorithm has only five lines. For a power of 20 or 100, the computer execution CPU (Intel Processor running @ 3GHz) time takes only 0.062 seconds or 16.396 seconds respectively.