cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A345440 Represent the ring R = {x+y*sqrt(-2): x, y rational integers} by the cells centered at the points (x,y) of a square grid, as in A345437; number the cells of the grid along a counterclockwise square spiral, with the cells at (0,0) and (1,0) numbered 0, 1; then a(n) is the norm x^2+2*y^2 of the element of R occupying the n-th cell.

Original entry on oeis.org

0, 1, 3, 2, 3, 1, 3, 2, 3, 6, 4, 6, 12, 9, 8, 9, 12, 6, 4, 6, 12, 9, 8, 9, 12, 17, 11, 9, 11, 17, 27, 22, 19, 18, 19, 22, 27, 17, 11, 9, 11, 17, 27, 22, 19, 18, 19, 22, 27, 34, 24, 18, 16, 18, 24, 34, 48, 41, 36, 33, 32, 33, 36, 41, 48, 34, 24, 18, 16, 18, 24
Offset: 0

Views

Author

N. J. A. Sloane, Jun 25 2021

Keywords

Crossrefs

Programs

  • PARI
    See Links section.

Formula

a(n) = A174344(n+1)^2 + 2*A274923(n+1)^2. - Rémy Sigrist, Jun 26 2021

Extensions

More terms from Rémy Sigrist, Jun 26 2021