# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a357149
Showing 1-1 of 1
%I A357149 #17 Nov 18 2022 03:39:44
%S A357149 1,2,3,4,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,14,14,14,14,14,14,14,
%T A357149 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,45,45,45,45,
%U A357149 45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45
%N A357149 a(n) = smallest missing number in A357082(k) for k = 0..n.
%H A357149 Michael De Vlieger, Table of n, a(n) for n = 0..16384
%H A357149 Michael De Vlieger, Plot of a(n), n = 1..2^10 in gold, with A357082(n) = b(n) in black, records in b(n) in red, local minima in b(n) in blue.
%H A357149 Rémy Sigrist, PARI program
%t A357149 nn = 2^10; c[_] = False; j = a[0] = 0; u = 1; w = "0"; Do[k = u; While[Or[c[k], StringContainsQ[w, Set[v, IntegerString[j + k, 2]]]], k++]; Set[{a[n], c[k], b[n]}, {k, True, u}]; Set[{j, w}, {k, w <> IntegerString[k, 2]}]; If[k == u, While[c[u], u++]], {n, nn}]; Array[b, nn] (* _Michael De Vlieger_, Sep 15 2022 *)
%o A357149 (PARI) See Links section.
%Y A357149 Cf. A357082.
%K A357149 nonn
%O A357149 0,2
%A A357149 _Michael De Vlieger_, Sep 15 2022
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE