Skip to main content
clarification (addendum) added
Source Link
Richard Stanley
  • 50.8k
  • 14
  • 155
  • 279

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.

Addendum. I should clarify that the number above is the number of subsets $S$ of $\mathbb{F}_p^*$ satisfying $\sum_{s\in S}s^2=0$. To get the number of such subsets of $\mathbb{F}_p$, multiply by two.

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.

Addendum. I should clarify that the number above is the number of subsets $S$ of $\mathbb{F}_p^*$ satisfying $\sum_{s\in S}s^2=0$. To get the number of such subsets of $\mathbb{F}_p$, multiply by two.

added 165 characters in body
Source Link
Richard Stanley
  • 50.8k
  • 14
  • 155
  • 279

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.

Source Link
Richard Stanley
  • 50.8k
  • 14
  • 155
  • 279

According to Theorem 5.1 of http://math.mit.edu/~rstan/pubs/pubfiles/35.pdf, the number is $$ \frac 1p\left[ 2^{p-1}+\frac{p-1}{2}(\epsilon^{4h} + \epsilon^{-4h})\right], $$ where $h$ is the class number of $\mathbb{Q}(\sqrt{p})$ and $\epsilon>1$ the fundamental unit of $\mathbb{Q}(\sqrt{p})$.