• + 1 comment

    The introduction is wrong; it does not mention that the index needs to be modulo by the n parameter, as described in the explanation. :@@@@@