title: Print the alphabet in bash
body: <p>I would like help with the following algorithm in bash (or anything accessible through bash shell): I give a number to some function, and based on that number I obtain a string of alphabet letters. Example:</p>
  
  <pre><code>1   - A
  2   - B
  ....
  26  - Z
  ....
  702 - ZZ
  703 - AAA
  </code></pre>
  
  <p>I do not wish to occupy more memory than I need, so approaches such as <code>for i in {A..Z}</code> or <code>echo {A..Z}</code> or <code>echo {A..Z}{A..Z}</code> are not viable here. The closest I've managed to get is to find out how long is the sequence of letters for a particular number through the following expression:</p>
  
  <pre><code>printf %.0f\\n $(echo '(scale=20;l($number)/l(26))+0.5000000000000000001' | bc -l)
  </code></pre>
  
  <p>After that, I am stuck. A little help?</p>