In[7]:=
  basebform[ 137,2]

Out[7]=

  10001001

Up to Base b Representation