For example,
f(10111010) = 186
f(101110101101001) = 23913
Correspondingly, is there an inverse function to this?
On
The function exists, because you just defined it. I believe what you meant to ask is, "does a simple formula exist for this function?" I don't think that there is a formula much simpler than performing the algorithm to do the conversion. I expect it would be a mess of fractions and floor functions and modulo reductions.
There is a standard algorithm to convert between the representations of a number in different bases.