

A300019


For any k, the cumulative sum a(1) + a(2) + a(3) + ... + a(k) shows at least a digit 5.


1



5, 10, 20, 15, 1, 2, 3, 9, 30, 40, 16, 4, 50, 45, 6, 19, 60, 17, 7, 26, 65, 8, 27, 18, 11, 12, 13, 14, 21, 22, 29, 25, 35, 66, 24, 70, 80, 28, 32, 67, 23, 75, 55, 46, 34, 68, 42, 56, 44, 31, 33, 36, 57, 43, 58, 52, 47, 53, 48, 62, 37, 63, 38, 72, 90, 39, 41, 59, 49, 51, 61, 100, 110, 120, 105, 85, 115, 95, 106, 54, 64, 76, 107, 73, 125, 101, 74, 126, 84, 116, 69, 71, 94, 130
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


COMMENTS

The sequence starts with a(1) = 5 and is always extended with the smallest integer not yet present that does not lead to a contradiction.
A permutation of the natural numbers


LINKS

JeanMarc Falcoz, Table of n, a(n) for n = 1..10001


EXAMPLE

5 shows a digit 5, of course (k = 1)
5 + 10 = 15 and 15 shows at least a digit 5 (k = 2)
5 + 10 + 20 = 35 and 35 shows at least a digit 5 (k = 3)
5 + 10 + 20 + 15 = 50 and 50 shows at least a digit 5 (k = 4)
5 + 10 + 20 + 15 + 1 = 51 and 51 shows at least a digit 5 (k = 5)
5 + 10 + 20 + 15 + 1 + 2 = 53 and 53 shows at least a digit 5 (k = 6)
...


CROSSREFS

Cf. A300015 (which is the lexicographic first sequence of positive integers without duplicate terms having this property).
Sequence in context: A325056 A147390 A331142 * A115825 A115774 A062052
Adjacent sequences: A300016 A300017 A300018 * A300020 A300021 A300022


KEYWORD

nonn,base


AUTHOR

Eric Angelini and JeanMarc Falcoz, Feb 23 2018


STATUS

approved



