Андрій1994,
<p></p>
<script>
var n = 1,
l = 9,
arr = [],
i = 0;
(function gen() {
arr[i] || (arr[i] = []);
arr[i].push(n++);
arr[i].length == l ? i = l - 1 : i--;
0 > i && (i++, i = arr[i].length);
document.querySelector("p").innerHTML = arr.join("<br>");
82 > n&& window.setTimeout(gen, 400)
})();
</script>