login
Number of 8's when n is written in base b for 2<=b<=n+1.
10

%I #8 Nov 14 2012 18:08:45

%S 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,

%T 2,2,1,3,1,2,2,2,1,4,1,2,2,3,1,3,1,3,3,2,1,4,1,3,2,3,1,4,2,3,2,2,1,6,

%U 1,2,3,4,3,5,2,4,3,5,2,8,2,3,4,4,3,5,2,7,5,3

%N Number of 8's when n is written in base b for 2<=b<=n+1.

%t f[n_] := Count[Flatten@ Table[ IntegerDigits[n, b], {b, 2, n + 1}], 8]; Array[f, 90] (* _Robert G. Wilson v_, Nov 14 2012 *)

%Y Cf. A033093, A033095, A033097, A033099, A033101, A033103, A033105, A033107, A033110, A033111.

%K nonn,base

%O 1,26

%A _Clark Kimberling_