<?php $intero = 500; do { $mezzo = $intero / 2; echo "<p>".$mezzo."</p>"; $intero = $mezzo; } while ($mezzo > 1); ?>