|
|
|
|
|
|
|
|
CTK Exchange
ddixonslc
Member since Jun-19-08
|
Jun-19-08, 01:18 PM (EST) |
|
"An Interesting Formula And Algorithm"
|
Back in the 80’s I worked out a formula that gives me a sequence of numbers specific to any power p, (p = any positive integer grater than 0), so that when I add together the first n members of the sequence it gives me n to the power p. (Of course, the well known procedure of adding up the first n odd numbers to get the second power of n falls out of this formula for p = 2.) Using this formula to generate the sequence of numbers for any power p, I then worked out an algorithm to calculate any root r, (r = any positive integer grater than 0) to any specified number of decimal places for any number n, (n = any positive integer grater than 0). For the past 25 years, I have wondered if this formula and algorithm are something interesting, or if they are already well know, but I have never been able to find any reference to them. I am hoping that someone on this forum might be able to help me answer this question, or might be able to refer me to someone who can. The formula that I devised for generating the nth member of the sequence (starting counting at 0) for power p is: p(n^(p-1))+((p(p-1))/2!)(n^(p-2))+((p(p-1)(p-2))/3!)(n^(p-3))+...+((p(p-1)(p-2)....(p-(p-1)))/p!)(n^(p-p)) Using this formula: For p = 1, the sequence is 1,1,1,1,.... For p = 2, the sequence is 1,3,5,7,.... For p = 3, the sequence is 1,7,19,37,.... For p = 4, the sequence is 1,15,65,175,.... Any help with determining whether the use of this formula is already well known for generate the sequence of numbers for any power p, would be greatly appreciated.
|
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
alexb
Charter Member
2237 posts |
Jun-19-08, 01:44 PM (EST) |
|
1. "RE: An Interesting Formula And Algorithm"
In response to message #0
|
Well, let's denote your formula by f(n, p). Then, if I am not altogether wrong, by the binomial formula, f(n, p) = (n + 1)p - np, so it telescopes into the pth powers of successive integers: f(0, p) + f(1, p) + ... + f(n - 1, p) = np because (1)p - (0)p + (2)p - (1)p + (3)p - (2)p + ... (n)p - (n-1)p = (n)p
|
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
Copyright © 1996-2018 Alexander Bogomolny
|
|