login
The numbers formed by removing the required digits to form the number from a set of digits which is initially empty and that has digits added via the addition of numbers which cannot be created from the digits currently in the set. Start by trying to create the number 0.
2

%I #11 Jan 02 2023 12:30:54

%S 10,12,13,15,17,19,22,24,26,28,30,32,34,35,37,39,41,44,46,48,50,52,54,

%T 56,57,59,61,63,66,68,70,72,74,76,78,79,81,83,85,88,90,92,94,96,98,

%U 101,103,105,107,109,111,113,115,117,119,122,124,126,128,130,132,134,135,137,139,141,144,146,148,150,152

%N The numbers formed by removing the required digits to form the number from a set of digits which is initially empty and that has digits added via the addition of numbers which cannot be created from the digits currently in the set. Start by trying to create the number 0.

%C Consider an initially empty set of digits whose digits are used to create a given number where each time a number is created those digits are removed from the set. If a number cannot be created as all its required digits are not currently in the set then all the digits of that number are instead added to the set. Start by trying to create the number 0 followed by all other integers. This sequence list the numbers that are created.

%C For the first 10 million terms the largest gap between terms is 7, between a(38984) = 77978 and a(38985) = 77985. No other gap of 7 or larger is present. The 10 millionth term is created after the addition of the number 20000017. The fact this is almost twice the number of terms implies that this ratio approaches two as n goes to infinity. After the 10 millionth term the number of digits, from 0 to 9, in the set is 2,2,4,0,10,0,8,0,11,11.

%C This sequence was inspired by the 'Bag of digits' post given in the links.

%H Jonathan Stauduhar, <a href="http://list.seqfan.eu/oldermail/seqfan/2019-December/018950.html">Bag of digits</a>, SeqFan Mailing List, Dec 10 2019.

%e a(1) = 10 as the first ten numbers 0 to 9 had to be added to the set as none of their digits were currently in the set. The number 10 is the first number whose digits, 0 and 1, were in the set. After this number the set now contains 2,3,4,5,6,7,8,9.

%e a(2) = 12 as the previous number 11 was unable to be created as the set contained no 1's, so those two 1's were added to the set. This allowed 12 to be created, after which the set contains 1,3,4,5,6,7,8,9.

%e a(3) = 13 as the set contained both a 1 and 3, so 13 could be created. After this the set contains 4,5,6,7,8,9.

%Y Cf. A007376.

%K nonn

%O 1,1

%A _Scott R. Shannon_, Jan 13 2020