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!)
A370959 Indices of high points in A245340. 4
0, 1, 2, 4, 5, 14, 52, 82, 356, 392, 688, 704, 751, 1325, 1748, 6683, 12570, 24740, 28291, 28307, 45136, 77226, 128419, 135993, 341522, 362992, 643110 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
PROG
(Python)
from itertools import count, islice
def A370959_gen(): # generator of terms
a, aset, b, c = 0, set(), 0, -1
for n in count(1):
aset.add(a)
if a==b:
if n-1>c:
c = n-1
yield a
while b in aset:
b += 1
a = next(a for a in count(a%n, n) if a not in aset)
A370959_list = list(islice(A370959_gen(), 20)) # Chai Wah Wu, Mar 28 2024
CROSSREFS
The companion to A370956.
Cf. A245340.
Sequence in context: A306919 A295031 A178436 * A328230 A229131 A359050
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, Mar 28 2024
EXTENSIONS
a(17)-a(23) from Michael S. Branicky, Mar 28 2024
a(24)-a(27) from Chai Wah Wu, Mar 28 2024
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 31 23:52 EDT 2024. Contains 373008 sequences. (Running on oeis4.)