OFFSET
1,1
COMMENTS
Sequence has 5191475 terms. The numbers of occurrences of digits 0-9 are 3589309, 4812817, 4977431, 4564762, 3741602, 3738734, 3599425, 3599878, 3598956, 3589537.
This sequence first differs from the original "True so far" sequence A102357 at a(351) = 920 because this is the first term that is less than the previous term, 1002.
The sequence is injective (no term appears twice) as consequence of the definition, while this is imposed through monotonicity in A102357. - M. F. Hasler, Nov 18 2019
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..10000, Nov 18 2019
EXAMPLE
a(10) = 20 because up to this point there are two 0 digits in the sequence, including the 0 in 20.
a(5191476) doesn't exist. 35893100 would yield a total of 3589311 0's, while 35893110 or 35893120 would yield 3589310 0's. Similar reasons prevent other terms ending with other digits.
PROG
(PARI) c=Vec(0, 10); for(n=1, 351, a=vecmin(c)*10+10; while(a\10<=c[a%10+1] || a\10 != c[a%10+1]+#select(d->d==a%10, digits(a)), a++); [c[d+1]++|d<-digits(a)]; print1(a", ")) \\ M. F. Hasler, Nov 18 2019
CROSSREFS
KEYWORD
base,easy,fini,nonn,less
AUTHOR
David Wasserman, Feb 28 2005
STATUS
approved