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
Pascal's triangle
(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!
=== Calculating a row or diagonal by itself === There are simple algorithms to compute all the elements in a row or diagonal without computing other elements or factorials. To compute row <math>n</math> with the elements <math>\tbinom{n}{0}, \tbinom{n}{1}, \ldots, \tbinom{n}{n}</math>, begin with <math>\tbinom{n}{0}=1</math>. For each subsequent element, the value is determined by multiplying the previous value by a fraction with slowly changing numerator and denominator: :<math> {n\choose k}= {n\choose k-1}\times \frac{n+1-k}{k}.</math> For example, to calculate row 5, the fractions are <math>\tfrac{5}{1}</math>, <math>\tfrac{4}{2}</math>, <math>\tfrac{3}{3}</math>, <math>\tfrac{2}{4}</math> and <math>\tfrac{1}{5}</math>, and hence the elements are <math>\tbinom{5}{0}=1</math>, <math>\tbinom{5}{1}=1\times\tfrac{5}{1}=5</math>, <math>\tbinom{5}{2}=5\times\tfrac{4}{2}=10</math>, etc. (The remaining elements are most easily obtained by symmetry.) To compute the diagonal containing the elements <math>\tbinom{n}{0}, \tbinom{n+1}{1}, \tbinom{n+2}{2},\ldots,</math> begin again with <math>\tbinom{n}{0} = 1</math> and obtain subsequent elements by multiplication by certain fractions: :<math> {n+k\choose k}= {n+k-1\choose k-1}\times \frac{n+k}{k}.</math> For example, to calculate the diagonal beginning at <math>\tbinom{5}{0}</math>, the fractions are <math>\tfrac{6}{1}, \tfrac{7}{2}, \tfrac{8}{3}, \ldots</math>, and the elements are <math>\tbinom{5}{0}=1, \tbinom{6}{1}=1 \times \tfrac{6}{1}=6, \tbinom{7}{2}=6\times\tfrac{7}{2}=21</math>, etc. By symmetry, these elements are equal to <math>\tbinom{5}{5}, \tbinom{6}{5}, \tbinom{7}{5}</math>, etc. [[File:Fibonacci in Pascal triangle.png|thumb|[[Fibonacci sequence]] in Pascal's triangle]]
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)