The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A365344 a(0) = 0; for n > 0, a(n) is the largest distance squared on a square spiral between a(n-1) and any previous occurrence of a(n-1). If a(n-1) has not previously occurred then a(n) = 0. 2
0, 0, 1, 0, 2, 0, 4, 0, 4, 4, 9, 0, 10, 0, 10, 4, 18, 0, 16, 0, 20, 0, 20, 4, 20, 16, 29, 0, 26, 0, 34, 0, 34, 4, 26, 20, 41, 0, 40, 0, 40, 4, 34, 72, 0, 45, 0, 41, 61, 0, 74, 0, 58, 0, 50, 0, 61, 50, 5, 0, 58, 32, 0, 85, 0, 113, 0, 89, 0, 73, 0, 89, 16, 53, 0, 85, 68, 0, 89, 61, 65, 0, 145, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
EXAMPLE
The spiral begins:
.
41--20--26--4---34--0---34 .
| | .
0 18--4---10--0---10 0 50
| | | | |
40 0 2---0---1 0 26 0
| | | | | | |
0 16 0 0---0 9 0 58
| | | | | |
40 0 4---0---4---4 29 0
| | | |
4 20--0---20--4---20--16 74
| |
34--72--0---45--0---41--61--0
.
.
a(4) = 2 as a(3) = 0 and the largest square distance between a(3) and a previous occurrence of 0 is 2 - between a(3) and a(1).
a(47) = 41 as a(46) = 0 and the largest square distance between a(46) and a previous occurrence of 0 is 41 - between a(46) and a(37). This is the first term to differ from A365343.
CROSSREFS
Sequence in context: A337599 A322337 A211008 * A366543 A286663 A114402
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Oct 16 2023
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 19 07:43 EDT 2024. Contains 372666 sequences. (Running on oeis4.)