Skip to content

Commit

Permalink
simplify A001105
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Ferris committed Jul 11, 2024
1 parent da72ed2 commit 6abc9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oeis/A001105.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// a(n) = 2*n^2.
export default function* A001105(): Generator<bigint> {
for (let n = 0n; /*∞*/; n++) {
yield 2n * BigInt(Number(n) ** 2)
yield 2n * n ** 2n
}
}

0 comments on commit 6abc9c5

Please sign in to comment.