A naive absolute bound on the original derivative would be , which is not integrable on . Instead make the change of variable , valid for :
The integral is absolutely convergent for every positive lower endpoint. Its integrand is continuous there, so the fundamental theorem of calculus gives
The product rule now yields
This proves differentiability and the equation without an unjustified differentiation of a conditionally convergent derivative integral.
For , expand . Multiplying by gives nonnegative terms, so the monotone convergence theorem permits termwise integration. Put to obtain
where scaling followed by two integrations by parts evaluates the last integral. Hence
The finite value also establishes integrability at both endpoints.
Apply the monotone convergence theorem to . Its limit satisfies
Thus is finite almost everywhere, which proves absolute convergence of almost everywhere. Define its sum there, and set on the exceptional null set. Then , so is integrable. The partial sums of are also dominated by ; dominated convergence gives
The series of integrals converges absolutely, since .
Part (ii), with exponent , shows that a prime fails to divide the sum precisely when divides . The positive divisors are . Adding one gives , of which the primes are
For these primes the sum is modulo ; for every other prime it is zero.
Let be the sum of the nonzero quadratic residues. Each has two square roots by part (iii), so
where part (ii) applies because makes not divide . Since is invertible modulo , .
The sum of all nonzero classes is . Subtracting shows that the sum of quadratic nonresidues is also zero. Consequently both requested sums vanish modulo .
The Legendre symbol equal to says that is a nonzero square modulo . Choose one root . Then is another root, distinct because is odd. Any solution satisfies
in the field , so or . Thus there are
For , the zero residue contributes zero. Write . Multiplication by any nonzero permutes these residues, so in . If , choose a primitive root ; then , and forces .
If , every nonzero has , so . Therefore
The source also lists , although its premise assumes . For that separate case, the integer sum has terms each equal to one, so it is zero modulo .
A primitive root modulo is a residue class generating the cyclic multiplicative group , so its order is . If is one generator, all generators are with . Thus the number is
where is Euler's totient function. This includes , with .

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact