Jump to content

Bell numbers: Difference between revisions

Replaced "shallowCopy" with "move".
(Bell numbers in MSX Basic)
(Replaced "shallowCopy" with "move".)
Line 2,553:
for i in 1..newRow.high:
newRow[i] = newRow[i - 1] + row[i - 1]
row.shallowCopy = move(newRow)
yield row[^1] # The last value of the row is one step ahead of the first one.
 
Line 2,565:
for i in 1..newRow.high:
newRow[i] = newRow[i - 1] + row[i - 1]
row.shallowCopy = move(newRow)
yield row
 
Line 2,635:
4140 5017 6097 7432 9089 11155 13744 17007 21147
21147 25287 30304 36401 43833 52922 64077 77821 94828 115975</pre>
 
=={{header|PARIGP}}==
From the code at OEIS A000110,
256

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.