In[3]:=
basebdigits[ 137,2]
Out[3]=
{1, 0, 0, 0, 1, 0, 0, 1}
Up to
Base b Representation