User:FrequencyZero/sandbox

// Binary to decimal? function X( i ) { var o = "&#" + i * i + i + ";"; for( var x = 0; x < i; ++x ) o += X( x ); return o; } document.write( X( 0xF ) );