login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A033105
Number of 6's when n is written in base b for 2<=b<=n+1.
10
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, 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, 6, 5, 3, 6, 3, 5, 4, 7, 2, 9, 3, 4, 5, 5, 5, 6, 3, 8, 5, 4, 3, 10
OFFSET
1,20
MATHEMATICA
f[n_] := Count[Flatten@ Table[ IntegerDigits[n, b], {b, 2, n + 1}], 6]; Array[f, 90] (* Robert G. Wilson v, Nov 14 2012 *)
KEYWORD
nonn,base
STATUS
approved