# [Python](https://www.python.org), 53 bytes ÷ 2 = 26.5 <pre><code class="lang-python">lambda n:[n-i%-~n%(i//n-~n)for i in range(n*~n//2,0)]</code></pre> [Attempt This Online!](https://ato.pxeger.com/run?1=m72soLIkIz9vweI025ilpSVpuhY3TXMSc5NSEhXyrKLzdDNVdevyVDUy9fXzgAzNtPwihUyFzDyFosS89FSNPK26PH19Ix0DzViI5v0FRZl5JRppGgaaOmkahiDCCESYgggzTU2IqgULIDQA) #### [Python 2](https://docs.python.org/2/) version, 51 bytes ÷ 2 = 25.5 <pre><code class="lang-python2">lambda n:[n-i%-~n%(i/n-~n)for i in range(n*~n/2,0)]</code></pre> [Attempt This Online!](https://ato.pxeger.com/run?1=m728oLIkIz_PaMHiNNuYpaUlaboWN41zEnOTUhIV8qyi83QzVXXr8lQ1MvXzgLRmWn6RQqZCZp5CUWJeeqpGnlZdnr6RjoFmLETr_oKizLwSjTQNA02dNA1DEGEEIkxBhJmmJkTVggUQGgA) This uses ranges like many other answers here but groups them in pairs (longest,shortest);(2nd longest,2nd shortest) etc. That way we can use a closed form expression inside a flat loop.