login
A275624
a(n) = minimal m such that Sum_{k=1..m} 0.k >= n.
4
4, 6, 8, 9, 14, 20, 24, 28, 31, 34, 37, 40, 42, 45, 47, 49, 51, 53, 55, 56, 58, 60, 62, 63, 65, 66, 68, 69, 71, 72, 73, 75, 76, 77, 79, 80, 81, 82, 84, 85, 86, 87, 88, 89, 90, 92, 93, 94, 95, 96, 97, 98, 99, 104, 113, 122, 130, 137, 144, 151, 157, 164, 170
OFFSET
1,1
COMMENTS
Here 0.k means the decimal fraction obtained by writing k after the decimal point, e.g. 0.12 = 12/100 = 3/25.
LINKS
EXAMPLE
a(7) = 20 because .1 + .2 + ... + .9 + .10 + .11 + ... + .20 = 141/20 = 7.05 is the first time the sum reaches 7.
MAPLE
b:= proc(n) option remember;
n/10^length(n)+`if`(n<2, 0, b(n-1))
end:
a:= proc(n) option remember; local k; for k from
`if`(n=1, 1, a(n-1)) while b(k)<n do od; k
end:
seq(a(n), n=1..100); # Alois P. Heinz, Aug 17 2016
CROSSREFS
Sequence in context: A118951 A262389 A254755 * A228019 A228020 A163282
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Aug 07 2016
EXTENSIONS
More terms from Alois P. Heinz, Aug 17 2016
STATUS
approved