Platform
Resources
Pricing
Sign in
Contact us
Michaël Guitton
Over 2 decades of experience on the Web…
Workspace
Fork
Public
Integer Sequences
By
Michaël Guitton
Edited
Feb 19, 2024
Paused
ISC
1 star
Integer Sequences
Factorials
Fibonacci Numbers
Triangular Numbers, aka Termials
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fib
(
10
)
Insert cell
fib
=
{
let
stash
=
[
0n
,
1n
]
;
return
function
(
n
)
{
for
(
let
i
=
stash
.
length
;
i
<=
n
;
i
++
)
{
stash
.
push
(
stash
[
i
-
1
]
+
stash
[
i
-
2
]
)
;
}
return
{
n
,
sequence
:
stash
,
tail
:
stash
[
n
]
+
""
}
;
}
;
}
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Q
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
result
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
fib
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
format
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML