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.

A185586 EKG sequence (A064413) written clockwise as a square spiral and read counterclockwise.

Original entry on oeis.org

2, 1, 6, 4, 18, 15, 5, 10, 8, 12, 9, 3, 24, 21, 7, 14, 36, 39, 13, 26, 28, 35, 25, 30, 27, 33, 11, 22, 20, 16, 38, 42, 51, 17, 34, 32, 58, 70, 65, 55, 60, 63, 49, 56, 54, 52, 50, 48, 69, 23, 46, 44, 40, 45, 57, 19, 64, 72, 93, 31, 62, 66, 87, 29, 141, 47, 94, 92, 100
Offset: 1

Views

Author

Paul Curtz, Feb 04 2011

Keywords

Comments

A permutation of the natural numbers.
The subsequence of primes (A000040) begins: 2, 5, 3, 7, 13, 11, 17, 23, 19, 31, 29, 47, 43, 41, 37, 53, ...

Examples

			1,2,4,6,3,9,12,8,10,5,15,18,... are written clockwise as a square spiral, then read counterclockwise: 2,1,6,4,18,15,5,10,8,12,9,3,...
The square spiral begins:
.
  33--27--30--25--35--28
   |                   |
  11  12---8--10---5  26
   |   |           |   |
  22   9   1---2  15  13
   |   |       |   |   |
  20   3---6---4  18  39
   |               |   |
  16--24--21---7--14  36
                       |
  38--42--51--17--34--32
		

Crossrefs

Cf. A064413.