In[2]:=
  basebdigits[ 137,10]

Out[2]=

  {1, 3, 7}

Up to Base b Representation