# [05AB1E], 15 bytes

0-indexed.

    11Iµ11N*DÂQNp*½

[Try it online!]

[05AB1E]: https://github.com/Adriandmen/05AB1E
[Try it online!]: https://tio.run/nexus/05ab1e#@29o6Hloq6Ghn5bL4aZAvwKtQ3v//zcyBQA "05AB1E – TIO Nexus"