<script> for (var i=500; i<1051; i+=25) { document.write(i +" => "+((i-500)/100|0)+ "<br>") } </script>