DigitCount

WMA link


DigitCount[n, b, d]

returns the number of times digit d occurs in the base b representation of n.

DigitCount[n, b]

returns a list indicating the number of times each digit occurs in the base b representation of n.

DigitCount[n, b]

returns a list indicating the number of times each digit occurs in the decimal representation of n.

Ceiling
Floor