Sierpi?ski, W.. "Chapter IX Legendre's Symbol and Jacobi's Symbol." North-Holland Mathematical Library 31 (1988): 340-359.