# Quadratic Reciprocity problem.. help! [closed]

If $p$ is an odd prime, evaluate $\left(\frac{1\times2}{p}\right)+\left(\frac{2\times3}{p}\right)+\cdots+\left(\frac{(p-2)\times(p-1)}{p}\right)$

## closed as off-topic by José Carlos Santos, Saad, Martin Sleziak, Jose Arnaldo Bebita-Dris, NamasteMay 27 '18 at 13:27

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – José Carlos Santos, Saad, Jose Arnaldo Bebita-Dris, Namaste
If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to MSE. It will be more likely that you will get an answer if you show us that you made an effort. – José Carlos Santos May 27 '18 at 7:59
• umm.. I tried ((p-2)(p-1)/p)=(1x2/p), and thought there is (p-1)/2 quadratic residue and quadratic nonresidue.. but it didn't help to evaluate that. I think the answer is -1. – 박윤수 May 27 '18 at 8:05
• – Martin Sleziak May 27 '18 at 9:07
• – Martin Sleziak May 27 '18 at 9:07

This is $$S=\sum_{k=1}^{p-1}\left(\frac{k(k+1)}p\right) =\sum_{k=1}^{p-1}\left(\frac{k^*(k+1)}p\right) =\sum_{k=1}^{p-1}\left(\frac{k^*+1}p\right)$$ where $k^*$ denotes the modulo $p$ inverse of $k$.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://math.stackexchange.com/questions/2797672/quadratic-reciprocity-problem-help", "fetch_time": 1571661415000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2019-43/segments/1570987773711.75/warc/CC-MAIN-20191021120639-20191021144139-00556.warc.gz", "warc_record_offset": 599062916, "warc_record_length": 28811, "token_count": 484, "char_count": 1547, "score": 3.90625, "int_score": 4, "crawl": "CC-MAIN-2019-43", "snapshot_type": "latest", "language": "en", "language_score": 0.8611531257629395, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00033-of-00064.parquet"}