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

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

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

%T 1,3,1,3,2,2,2,5,2,3,3,5,2,6,2,4,4,3,2,7,4,4,3,4,2,6,4,7,3,3,2,8,3,4,

%U 6,5,3,6,3,5,4,7,2,9,3,4,5,5,5,6,3,8,5,4,3,10

%N Number of 6'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}], 6]; Array[f, 90] (* _Robert G. Wilson v_, Nov 14 2012 *)

%Y Cf. A033093, A033095, A033097, A033099, A033101, A033103, A033106, A033107, A033109, A033111.

%K nonn,base

%O 1,20

%A _Clark Kimberling_