Plots of Various Number Theory Functions

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration plots various number theory functions.


A perfect number has the property that equals the sum of the divisors of . (For example, 6 is perfect because .) It is not known if there are infinitely many perfect numbers.

Every positive integer can be expressed as the sum of four squares. The numbers to be squared can be positive, negative, or zero and we count different orderings of the summands as different sums. There are some positive integers that cannot be expressed as the sum of three squares; those that can are of the form .

Goldbach conjectured that every even number is the sum of two primes.


Contributed by: Abigail Nussey (March 2011)
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.