Rating:

Just math

Original writeup (https://github.com/qsctr/ctf/tree/master/FwordCTF-2020/Secret_Array).