Public
Edited
Jul 8, 2023
Paused
1 star
FactorialsFibonacci Numbers
Triangular Numbers, aka Termials
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
termial(18)
Insert cell
termial = {
let stash = [0n, 1n];

return function (n) {
for (let i = stash.length; i <= n; i++) {
stash.push(BigInt(i) + stash[i - 1]);
}
return {
n,
sequence: stash,
tail: stash[n] + ""
};
};
}
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.
Learn more