Post Reply 
Funny Factorials and Slick Sums
08-05-2019, 03:06 PM (This post was last modified: 08-07-2019 12:39 PM by Albert Chan.)
Post: #2
RE: Funny Factorials and Slick Sums
(08-05-2019 12:21 AM)Albert Chan Wrote:  s6(n) = n7/7 + 15 n6/6 + 65 n5/5 + 90 n4/4 + 31 n3/3 + n2/2

After simplify, s6(n) = n^7/7 - n^6/2 + n^5/2 - n^3/6 + n/42

We can automate the process of simplifying.

For s6(n), polynomial linear coefficent = limit(s6(n)/n, n=0):

(-1)6/7 + 15 (-1)5/6 + 65 (-1)4/5 + 90 (-1)3/4 + 31 (-1)2/3 + (-1)1/2
= -1*(1/2 - 2*(31/3 - 3*(90/4 - 4*(65/5 - 5*(15/6 - 6*(1/7))))))
= -1*(1/2 - 2*(31/3 - 3*(90/4 - 4*(65/5 - 5*(23/14)))))
= -1*(1/2 - 2*(31/3 - 3*(90/4 - 4*(67/14))))
= -1*(1/2 - 2*(31/3 - 3*(47/14)))
= -1*(1/2 - 2*(11/42))
= -1*(-1/42)
= 1/42

→ s6(n) / n = (1/7) n6 + (23/14) n5 + (67/14) n4 + (47/14) n3 + (11/42) n2 + (-1/42) n1 + 1/42

We divide n repeatedly, collecting remainder terms, until quotient is linear, since a n1 + b n0 = a n + b

Code:
Synthetic Division, falling factorial form to polynomial
      6 105 546 945 434  21   0   0  // 42*s6, falling factorial coefficients
-6 0> 6  69 201 141  11  -1   1      // -6*6+105=69, -5*69+546=201 ...
-5 0> 6  39  45   6  -1   0          // -5*6+69=39, -4*39+201=45 ...
-4 0> 6  15   0   6  -7
-3 0> 6  -3   6   0
-2 0> 6 -15  21
-1 0> 6 -21
Note: 0> signalled first column numbers treated as stack, "popped" when used.

→ s6(n) = (6 n^7 - 21 n^6 + 21 n^5 - 7 n^3 + n) / 42

see threads: Bernoulli Numbers, Sum of Powers
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Funny Factorials and Slick Sums - Albert Chan - 08-05-2019 03:06 PM



User(s) browsing this thread: 1 Guest(s)