Anonymous user
Faulhaber's triangle: Difference between revisions
→{{header|Maxima|}}
(→{{header|ALGOL 68}}: Tweak and andle the stretch goal) |
imported>Maxima enthusiast |
||
Line 2,329:
else if k >= 2 and k <= n + 1 then (n/k) * faulhaber_fraction(n-1, k-1)
else if k = 1 then 1 - sum(faulhaber_fraction(n, i), i, 2, n+1)
else 0
faulhaber_row(n):=makelist(faulhaber_fraction(n,k),k,1,n+1)
/* Example */
</syntaxhighlight>
[[File:Faulhaber.png|thumb|center]]
=={{header|Nim}}==
|