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!)
A366869 a(n) = A366470(A366864(n)). 1
1, 4, 15, 26, 81, 158, 417, 990, 2491, 6402, 17363, 44450, 119773, 326786, 659957, 1845500, 4779649, 9921002, 27575339, 67458614, 187615521, 515594444, 1433794185, 3989181038, 11160791967, 31287537756 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Terms of A366470 at the beginning of a segment (except for the first segment).
LINKS
PROG
(Python)
from itertools import count, islice
from sympy import nextprime
def A366869_gen(): # generator of terms
a, aset, p = 1, {0, 1}, 2
for i in count(3):
for b in count(a, p):
if b not in aset:
aset.add(b)
c = b%(p:=nextprime(p))
if c > a:
yield c
a = c
break
A366869_list = list(islice(A366869_gen(), 20))
CROSSREFS
Sequence in context: A017437 A281264 A372237 * A267103 A030553 A304567
KEYWORD
nonn,more
AUTHOR
Chai Wah Wu, Oct 25 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 21 21:53 EDT 2024. Contains 372738 sequences. (Running on oeis4.)