Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Generating function
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Example 1: Formula for sums of harmonic numbers==== Generating functions give us several methods to manipulate sums and to establish identities between sums. The simplest case occurs when {{math|''s<sub>n</sub>'' {{=}} Ξ£{{su|b=''k'' {{=}} 0|p=''n''}} ''a<sub>k</sub>''}}. We then know that {{math|''S''(''z'') {{=}} {{sfrac|''A''(''z'')|1 β ''z''}}}} for the corresponding ordinary generating functions. For example, we can manipulate <math display="block">s_n=\sum_{k=1}^{n} H_{k}\,,</math> where {{math|''H<sub>k</sub>'' {{=}} 1 + {{sfrac|1|2}} + β― + {{sfrac|1|''k''}}}} are the [[harmonic number]]s. Let <math display="block">H(z) = \sum_{n = 1}^\infty{H_n z^n}</math> be the ordinary generating function of the harmonic numbers. Then <math display="block">H(z) = \frac{1}{1-z}\sum_{n = 1}^\infty \frac{z^n}{n}\,,</math> and thus <math display="block">S(z) = \sum_{n = 1}^\infty{s_n z^n} = \frac{1}{(1-z)^2}\sum_{n = 1}^\infty \frac{z^n}{n}\,.</math> Using <math display="block">\frac{1}{(1-z)^2} = \sum_{n = 0}^\infty (n+1)z^n\,,</math> [[#Convolution (Cauchy products)|convolution]] with the numerator yields <math display="block">s_n = \sum_{k = 1}^{n} \frac{n+1-k}{k} = (n+1)H_n - n\,,</math> which can also be written as <math display="block">\sum_{k = 1}^{n}{H_k} = (n+1)(H_{n+1} - 1)\,.</math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)