# [J], <sup><s>13</s></sup> 12 bytes [$[:,1++/&i. [Try it online!][TIO-jwb2vwx0] [J]: http://jsoftware.com/ [TIO-jwb2vwx0]: https://tio.run/##PZG5TgQxEAVzvqKEEMtqD9yH55KIkIiISDdErICE/4@G8bwBqR3arqr@nm/PuytPEzuOFKblnM48v72@zJe7y3S0w@Hx/us8728@3j9/eMiRK7bnNGE4QVLp6BkYsYIZ5lhgiVWsw3pswEa84MsdxwNPvOId3uMDPhKFMGJ5MogkKtERPTEQI1lII51cfkyykh3ZkwM5bmhWysLm/2yNrvE1wsbYKBtnIxWrcEUsaHELXfQSkMOqsZlIRj5SkpXE5CY9Ga6Sm6dUZSthOUtb5pKX/5pgq6AQaqEcKqIo6qI0qtMCtallHfuLFUurWFtti9QytVAttd7Mvw "J – Try It Online"