Explore

Explore

Type a number and see what number theory says about it: its factorisation and the proof that the factors are prime, its divisors and their sums, how it splits into squares. Then try a modulus, a discriminant, an elliptic curve, a p-adic expansion, a number field, and the characters of a modulus.

A number

Any whole number: try a 40-digit one. Primes below 264 are proven by Baillie–PSW, larger ones by a certificate that a separate checker verifies.

Modulo m

A discriminant

The class group counts forms ax2+bxy+cy2ax^2 + bxy + cy^2 with b2−4ac=Db^2 - 4ac = D up to change of variables. For a positive non-square D the Pell line lists the first solutions of x2−Dy2=Nx^2 - Dy^2 = N; for D ≡ 2, 3 mod 4 the forms of discriminant 4D are the relevant ones.

An elliptic curve

Two coefficients a, b for y2=x3+ax+by^2 = x^3 + ax + b, or five for the long form a1,a2,a3,a4,a6a_1, a_2, a_3, a_4, a_6. The last lines reduce the curve modulo the prime p. Try -43, 166, 1, 0, 1, -19, 26 or -432, 8208.

A p-adic number

A number field

The coefficients of an irreducible polynomial, constant term first: -7, 0, 0, 1 is x3−7x^3 - 7. The class group and the units are proven; see Class groups for how.

Characters modulo q

Each row is one character χq(m,⋅)\chi_q(m, \cdot) with its order, conductor and parity, and an enclosure of L(s,χ)L(s, \chi) for real characters at the s given (a whole number or a fraction such as 1/2).

Try itEdit the code and run it with @ratmath/numtheory and Core's Rational in scope. The last line's value is shown; PRINT(…) adds lines, TEX(…) typesets math.
Ctrl/⌘ + Enter runs