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.

A047931 Number of new penny-penny contacts when putting pennies on a table following a spiral pattern.

Original entry on oeis.org

0, 1, 2, 2, 2, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 2, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3
Offset: 1

Views

Author

Keywords

Examples

			From _Omar E. Pol_, Nov 16 2016: (Start)
The sequence written as a spiral begins:
.
.                2 - 3 - 3 - 3 - 3 - 2
.               /                     \
.              3   2 - 3 - 3 - 3 - 2   3
.             /   /                 \   \
.            3   3   2 - 3 - 3 - 2   3   3
.           /   /   /             \   \   \
.          3   3   3   2 - 3 - 2   3   3   3
.         /   /   /   /         \   \   \   \
.        3   3   3   3   2 - 2   3   3   3   3
.       /   /   /   /   /     \   \   \   \   \
.      2   2   2   2   2   0 - 1   2   2   2   2
.       \   \   \   \   \         /   /   /   /
.        3   3   3   3   2 - 3 - 2   3   3   3
.         \   \   \   \             /   /   /
.          3   3   3   2 - 3 - 3 - 2   3   3
.           \   \   \                 /   /
.            3   3   2 - 3 - 3 - 3 - 2   3
.             \   \                     /
.              3   2 - 3 - 3 - 3 - 3 - 2
.               \
.                2 - 3 - 3 - 3 - 3 - 3
(End)
		

Crossrefs

Cf. A047932.

Formula

The n-th "chunk" consists of 2 3{n-2} 2 3{n-1} 2 3{n-1} 2 3{n-1} 2 3{n-1} 2 3{n}, where a{b} symbolizes b repetitions of a.