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!)
A353710 Smallest missing number when A353709(n) is being calculated. 5
0, 1, 2, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 11, 11, 11, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Rémy Sigrist, PARI program
PROG
(PARI) See Links section.
(Python)
from itertools import count, islice
def A353710_gen(): # generator of terms
s, a, b, c, ab = {0, 1}, 0, 1, 2, 1
yield from (0, 1)
while True:
for n in count(c):
if not (n & ab or n in s):
yield c
a, b = b, n
ab = a|b
s.add(n)
while c in s:
c += 1
break
A353710_list = list(islice(A353710_gen(), 20)) # Chai Wah Wu, May 10 2022
CROSSREFS
Sequence in context: A361159 A184995 A136348 * A284397 A284374 A137847
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, May 06 2022
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 3 10:32 EDT 2024. Contains 372207 sequences. (Running on oeis4.)