Stirling Numbers
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Print a 10x10 triangular array of Stirling numbers of the first kind.
From Wikipedia:
s(n+1,k) = -n*s(n,k) + s(n,k-1)
k>0, n>0
s(0,0) = 1
s(x,0) = s(0,x) = 0
(Shout out to Dr Francis L. Miksa published the 25x25 array in 1956 on a typewriter!)
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
*NOTHING*
Sample output:
1
-1,1
2,-3,1
-6,11,-6,1
24,-50,35,-10,1
-120,274,-225,85,-15,1
720,-1764,1624,-735,175,-21,1
-5040,13068,-13132,6769,-1960,322,-28,1
40320,-109584,118124,-67284,22449,-4536,546,-36,1
-362880,1026576,-1172700,723680,-269325,63273,-9450,870,-45,1
Ranking
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 51 | 0.0150 | 2025/01/15 18:04:28 | 0B / 17B / 33B |
| 2 | tails | 47 | 0.0152 | 2025/01/22 08:32:55 | 0B / 17B / 29B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | xnor | 76 | 0.0518 | 2025/01/15 20:10:06 | 0B / 37B / 35B |
| 2 | lynn | 76 | 0.0472 | 2025/01/17 02:10:59 | 0B / 37B / 35B |
| 3 | b185 | 107 | 0.0684 | 2025/01/21 01:00:32 | 0B / 50B / 49B |
| 4 | test | 337 | 0.0461 | 2025/01/15 02:19:35 | 0B / 148B / 72B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 20 | 0.0682 | 2025/01/15 18:09:52 | 10B / 8B / 2B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 12 | 0.0225 | 2025/01/16 12:31:16 | 8B / 4B / 0B |
Language Ranking_
| Rank | Lang | User | Size | Score |
| 1 | Nibbles | tails | 12 | 10000 |
| 2 | iogii | darrenks | 14 | 8571 |
| 3 | gs2 | tails | 20 | 6000 |
| 4 | Perl | tails | 47 | 2553 |
| 5 | Ruby | rotary-o | 48 | 2500 |
| 6 | Ruby2 | rotary-o | 49 | 2448 |
| 7 | Python3 | xnor | 76 | 1578 |
| 8 | C | rotary-o(tails) | 77 | 1558 |
| 9 | Scala | rotary-o | 82 | 1463 |
| 10 | Java | rotary-o | 120 | 1000 |
| 11 | C# | rotary-o | 146 | 821 |
| 12 | Whitespace | rotary-o | 159 | 754 |
| 13 | sed | McBusLuck | 245 | 489 |
return to the top page