Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Sylvesters-sequence/11l/sylvesters-sequence.11l
Normal file
15
Task/Sylvesters-sequence/11l/sylvesters-sequence.11l
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
F sylverster(lim)
|
||||
V result = [BigInt(2)]
|
||||
L 2..lim
|
||||
result.append(product(result) + 1)
|
||||
R result
|
||||
|
||||
V l = sylverster(10)
|
||||
print(‘First 10 terms of the Sylvester sequence:’)
|
||||
L(item) l
|
||||
print(item)
|
||||
|
||||
V s = 0.0
|
||||
L(item) l
|
||||
s += 1 / Float(item)
|
||||
print("\nSum of the reciprocals of the first 10 terms: #.17".format(s))
|
||||
Loading…
Add table
Add a link
Reference in a new issue