This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# DigitCount

 DigitCountgives the number of d digits in the base-b representation of n. DigitCountgives a list of the numbers of , , ..., , digits in the base-b representation of n. DigitCount[n]gives a list of the numbers of , , ..., , digits in the base-10 representation of n.
• Integer mathematical function, suitable for both symbolic and numerical manipulation.
Binary representation:
Number of 1s in binary representation:
Number of 1s and 0s:
Number of each digit 1, 2, 3, ..., 0 in 100!:
Plot the number of 1s in the base-2 representation:
Binary representation:
 Out[1]=
Number of 1s in binary representation:
 Out[2]=
Number of 1s and 0s:
 Out[3]=

Number of each digit 1, 2, 3, ..., 0 in 100!:
 Out[1]=

Plot the number of 1s in the base-2 representation:
 Out[1]=
 Scope   (1)
Count the number of digits 1 and 2 in ternary representation:
 Applications   (2)
Thue-Morse sequence
Number of black cells at step t in the rule 90 cellular automaton (binomial coefficients mod 2):
New in 4