Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you get $[\frac{3}{8}]$? Answer is -1, but how do you get that?

share|cite|improve this question
I thought Jacobi symbol $\left(\frac an\right)$ is defined only for odd $n$. – Martin Sleziak Dec 3 '11 at 10:50
That's true but when you input "Jacobi symbol(3,8)" in the you get -1. Might be false. – alvoutila Dec 3 '11 at 10:52
Maybe that's supposed to be a Kronecker symbol instead of a Jacobi symbol... – J. M. Dec 3 '11 at 10:55
@alvoutila: Mathematica actually generalizes JacobiSymbol[] to effectively act like KroneckerSymbol[]. – J. M. Dec 3 '11 at 10:56
Dear @Martin: +1 for your comment, and thanks for all your editing work!!! – Pierre-Yves Gaillard Dec 3 '11 at 11:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.