login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A300154 Consider a spiral on an infinite hexagonal grid. a(n) is the number of cells in the part of the spiral from 1st to n-th cell that are on the same column or diagonal (in any of three directions) as the n-th cell along the spiral, including that cell itself. 1
1, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 6, 7, 7, 8, 7, 8, 9, 8, 9, 8, 9, 10, 9, 10, 11, 9, 10, 11, 10, 11, 12, 10, 11, 12, 13, 11, 12, 13, 11, 12, 13, 14, 12, 13, 14, 15, 12, 13, 14, 15, 13, 14, 15, 16, 13, 14, 15, 16, 17, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A138099 and A280026 are analogs for the square grid. - Andrey Zabolotskiy, Mar 05 2018
LINKS
Code Golf Stack Exchange, What can you see on a hexagonal spiral?
Emily Chitwood, Example of cell sight
Emily Chitwood, Example of spiral path
Emily Chitwood, Example of initial terms
EXAMPLE
a(3) = 3 because the third hexagon is on the same diagonal as itself, the second hexagon, and the original hexagon.
a(7) = 5 because the 7th cell is on the same columns/diagonals as cells No. 2 (in one direction), 6 (in another direction), 1 and 4 (in the third direction), plus itself.
CROSSREFS
Sequence in context: A000267 A249728 A060020 * A166127 A143502 A070984
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 05:18 EDT 2024. Contains 372290 sequences. (Running on oeis4.)