Faulhaber's formula: Difference between revisions
m
→{{header|Python}}: (Updated note on invisibility of formulae to most browsers)
(→{{header|Python}}: Note that Python example formulae are invisible to most browsers) |
m (→{{header|Python}}: (Updated note on invisibility of formulae to most browsers)) |
||
Line 275:
One has then to expand the product <math>(m+1)_{k+1}</math> in order to get a polynomial in the variable <math>m</math>. Also, for the sum of <math>j^0</math>, the sum is too large by one (since we start at <math>j=0</math>), this has to be taken into account.
<lang python>from fractions import Fraction
|