Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
14
Task/Bell-numbers/EasyLang/bell-numbers.easy
Normal file
14
Task/Bell-numbers/EasyLang/bell-numbers.easy
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
func bell n .
|
||||
len list[] n
|
||||
list[1] = 1
|
||||
for i = 2 to n
|
||||
for j = 1 to i - 2
|
||||
list[i - j - 1] += list[i - j]
|
||||
.
|
||||
list[i] = list[1] + list[i - 1]
|
||||
.
|
||||
return list[n]
|
||||
.
|
||||
for i = 1 to 15
|
||||
print bell i
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue