function hailstone ($number
{
$result = array();
while ($number > 1) {
$result[] = $number
if ($number & 1)
$number = 3 * $number + 1;
else
$number = $number / 2;
}
$result[] = $number
return $result
}
function hailstone ($number
{
$result = array();
while ($number > 1) {
$result[] = $number
if ($number & 1)
$number = 3 * $number + 1;
else
$number = $number / 2;
}
$result[] = $number
return $result
}