This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A102683 #30 Jul 24 2023 02:36:53 %S A102683 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0, %T A102683 0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, %U A102683 0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0 %N A102683 Number of digits 9 in decimal representation of n. %H A102683 Reinhard Zumkeller, <a href="/A102683/b102683.txt">Table of n, a(n) for n = 0..10000</a> %F A102683 a(A007095(n)) = 0; a(A011539(n)) > 0. - _Reinhard Zumkeller_, Dec 29 2011 %F A102683 From _Hieronymus Fischer_, Jun 10 2012: (Start) %F A102683 a(n) = Sum_{j=1..m+1} (floor(n/10^j + 1/10) - floor(n/10^j)), where m=floor(log_10(n)). %F A102683 G.f.: g(x) = (1/(1-x))*Sum_{j>=0} (x^(9*10^j) - x^(10*10^j))/(1-x^10^(j+1)). (End) %F A102683 a(A235049(n)) = 0. - _Reinhard Zumkeller_, Apr 16 2014 %p A102683 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]>=9 then ct:=ct+1 else ct:=ct fi od: ct: end: seq(p(n),n=0..116); # _Emeric Deutsch_, Feb 23 2005 %t A102683 a[n_] := DigitCount[n, 10, 9]; Array[a, 100, 0] (* _Amiram Eldar_, Jul 24 2023 *) %o A102683 (Haskell) %o A102683 a102683 = length . filter (== '9') . show %o A102683 -- _Reinhard Zumkeller_, Dec 29 2011 %Y A102683 Cf. A007095, A011539, A027868, A054899, A055640, A055641, A102669-A102685, A117804, A122840, A122841, A160093, A160094, A196563, A196564, A235049. %Y A102683 Cf. A102684 (partial sums). %Y A102683 Cf. A000120, A000788, A023416, A059015 (for base 2). %K A102683 nonn,base,easy %O A102683 0,100 %A A102683 _N. J. A. Sloane_, Feb 03 2005 %E A102683 More terms from _Emeric Deutsch_, Feb 23 2005