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!)
A353710 Smallest missing number when A353709(n) is being calculated. 5

%I #14 May 10 2022 09:54:55

%S 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,

%T 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,

%U 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

%N Smallest missing number when A353709(n) is being calculated.

%H Rémy Sigrist, <a href="/A353710/b353710.txt">Table of n, a(n) for n = 0..16384</a>

%H Rémy Sigrist, <a href="/A353710/a353710.gp.txt">PARI program</a>

%o (PARI) See Links section.

%o (Python)

%o from itertools import count, islice

%o def A353710_gen(): # generator of terms

%o s, a, b, c, ab = {0,1}, 0, 1, 2, 1

%o yield from (0,1)

%o while True:

%o for n in count(c):

%o if not (n & ab or n in s):

%o yield c

%o a, b = b, n

%o ab = a|b

%o s.add(n)

%o while c in s:

%o c += 1

%o break

%o A353710_list = list(islice(A353710_gen(),20)) # _Chai Wah Wu_, May 10 2022

%Y Cf. A084937, A353709.

%K nonn,base

%O 0,3

%A _N. J. A. Sloane_, May 06 2022

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 17 19:53 EDT 2024. Contains 372607 sequences. (Running on oeis4.)