

A102850


Nonmonotonic "True so far" sequence: In the first n terms, the digit (a(n) mod 10) occurs floor(a(n)/10) times. a(n) is chosen to be the smallest number that meets this condition.


2



10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 23, 24, 25, 26, 27, 28, 29, 30, 34, 35, 36, 37, 38, 39, 40, 45, 46, 47, 48, 49, 50, 56, 57, 58, 59, 60, 67, 68, 69, 70, 78, 79, 80, 89, 90, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114, 115, 116, 117, 118, 119, 123, 124
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


COMMENTS

Sequence has 5191475 terms. The numbers of occurrences of digits 09 are 3589309, 4812817, 4977431, 4564762, 3741602, 3738734, 3599425, 3599878, 3598956, 3589537. This sequence first differs from A102357 at a(351) = 920 because this is the first term that is less than the previous term, 1002.


LINKS

Table of n, a(n) for n=1..63.


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 another term ending with any other digit.


CROSSREFS

Cf. A102357.
Sequence in context: A280824 A261907 A102357 * A043493 A105959 A059504
Adjacent sequences: A102847 A102848 A102849 * A102851 A102852 A102853


KEYWORD

base,easy,fini,nonn,less


AUTHOR

David Wasserman, Feb 28 2005


STATUS

approved



