<?php
$n = 14;
for($marker = 0, $i2 = $i1 = 1; $i1 < $n; $i1++)
{
for($i3 = 1; $i1 >= $i3; $i2++, $i3++)
{
if($n < $i2)
{
$marker = 1;
break;
}
echo "$i1 ";
}
}
ICAgIDw/cGhwCiAgICAgCiAgICAkbiA9IDE0OwogICAgIAogICAgZm9yKCRtYXJrZXIgPSAwLCAkaTIgPSAkaTEgPSAxOyAkaTEgPCAkbjsgJGkxKyspCiAgICB7CiAgICBmb3IoJGkzID0gMTsgJGkxID49ICRpMzsgJGkyKyssICRpMysrKQogICAgewogICAgaWYoJG4gPCAkaTIpCiAgICB7CiAgICAkbWFya2VyID0gMTsKICAgIGJyZWFrOwogICAgfQogICAgZWNobyAiJGkxICI7CiAgICB9CiAgICB9