proposed
approved
proposed
approved
editing
proposed
Contribution from _From _Hieronymus Fischer_, Jun 10 2012 : (Start):
approved
editing
proposed
approved
editing
proposed
a(n) = (1/2)*sum_Sum_{j=1..m+1} (floor(n/10^j + 3/5)*(2n + 2 + (1/5 - floor(n/10^j + 3/5))*10^j) - floor(n/10^j)*(2n + 2 - (1 + floor(n/10^j)) * 10^j)), where m = floor(log_10(n)).
a(n) = (n+1)*A102673(n) + (1/2)*sum_Sum_{j=1..m+1} ((0.2(1/5)*floor(n/10^j + 3/5) + floor(n/10^j))*10^j - (floor(n/10^j + 3/5)^2 - floor(n/10^j)^2)*10^j), where m = floor(log_10(n)).
a(10^m - 1) = 6*m*10^(m-1).
(this This is the total number of digits >= 4 occurring in all the numbers with <= m places).)
G.f.: g(x) = (1/(1-x)^2)*sum_Sum_{j>=0} (x^(4*10^j) - x^(10*10^j))/(1 - x^10^(j+1)). (End)
p:=proc(n) local b, ct, j: b:=convert(n, base, 10): ct:=0: for j from 1 to nops(b) do if b[j]>=4 then ct:=ct+1 else ct:=ct fi od: ct: end:seq(add(p(i), i=0..n), n=0..90); (_# _Emeric Deutsch_), Feb 22 2005
approved
editing
editing
approved
Accumulate[Table[Total[Drop[Most[DigitCount[n]], 3]], {n, 0, 80}]] (* Harvey P. Dale, Nov 27 2015 *)
approved
editing
proposed
approved
editing
proposed