OFFSET
1,6
COMMENTS
Here 0.k means the decimal fraction obtained by writing k after the decimal point, e.g. 0.12 = 12/100 = 3/25.
The first few values of Sum_{k=1..n} 0.k are: 1/10, 3/10, 3/5, 1, 3/2, 21/10, 14/5, 18/5, 9/2, 23/5, ...
Conjecture: function ((Sum_{k=1..n} 0.k) / n) is bounded above by values 0.55.
LINKS
Jaroslav Krizek, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=12; a(12) = floor(Sum_{k=1..12} 0.k) = floor(0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 0.6 + 0.7 + 0.8 + 0.9 + 0.10 + 0.11 + 0.12 = 4.83) = floor(483/100) = 4.
PROG
(Magma) [Floor(&+[k / (10^(#Intseq(k))): k in [1..n]]): n in [1..1000]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Sep 09 2016
STATUS
approved