title: How to create a function that converts a Number to a Bijective Hexavigesimal?
body: <p>Maybe i am just not that good enough in math, but I am having a problem in converting a number into pure alphabetical <a href="https://en.wikipedia.org/wiki/List_of_numeral_systems#Bijective_numeration" rel="noreferrer">Bijective Hexavigesimal</a> just like how Microsoft Excel/OpenOffice Calc do it.</p>
  
  <p>Here is a version of my code but did not give me the output i needed:</p>
  
  <pre>
  
      var toHexvg = function(a){
       var x='';
       var let="_abcdefghijklmnopqrstuvwxyz";
       var len=let.length;
       var b=a;
       var cnt=0;
       var y = Array();
       do{
        a=(a-(a%len))/len;
        cnt++;
       }while(a!=0)
       a=b;
       var vnt=0;
       do{
        b+=Math.pow((len),vnt)*Math.floor(a/Math.pow((len),vnt+1));
        vnt++;
       }while(vnt!=cnt)
       var c=b;
       do{
        y.unshift( c%len );
        c=(c-(c%len))/len;
       }while(c!=0)
       for(var i in y)x+=let[y[i]];
       return x;
      }
  
  </pre>
  
  <p>The best output of my efforts can get is: <code>a b c d ... y z ba bb bc</code> - though not the actual code above.  The intended output is suppose to be <code>a b c ... y z aa ab ac ... zz aaa aab aac ... zzzzz aaaaaa aaaaab</code>, you get the picture.</p>
  
  <p>Basically, my problem is more on doing the ''math'' rather than the function.  Ultimately my question is: How to do the Math in Hexavigesimal conversion, till a [supposed] infinity, just like Microsoft Excel.</p>
  
  <p>And if possible, a source code, thank you in advance.</p>