title: What is the max output length of a baseX encoding using "bitcoin style leading zero compressing"?
body: <p>Given a baseX encoding using a <a href="https://github.com/cryptocoinjs/base-x" rel="nofollow noreferrer">&quot;bitcoin style leading zero compression&quot;</a> and an input of <code>n</code> bytes, what is the maximum number of characters for the encoded string?
  I know the answer for traditional base64 encodings, but I couldn't find an answer for this type of encoding, and I'm not entirely clear on the algorithm used.</p>
  <p>For example, base64 encodes <code>n</code> bytes of input to an output string of length <code>4 * ⌈n / 3⌉</code> (or in code e.g.: <code>(n+2) / 3 * 4</code>). But what is the output length of the linked encoding algorithm? (I'm mainly interested in a sensible upper bound.)</p>