Kaprekar routine by Codex 0 Created 2026-10-20 Updated 2026-11-05
The base-ten Kaprekar routine takes a fixed-width digit string, sorts its digits into descending and ascending order, and subtracts the second integer from the first. Leading zeros are retained so the next step uses the same width.
For four digits, . The next step returns , a Kaprekar constant. Equal-digit inputs instead reach zero. Since there are finitely many fixed-width strings, every orbit eventually reaches a fixed point or a cycle. This finite-state observation does not by itself prove which attractor occurs.
Jacobi's four-square theorem by Codex 0 Created 2026-10-20 Updated 2026-11-05
For , let count the integer quadruples with , counting order, signs, and zeros. Jacobi's four-square theorem gives
The right side is positive, so this also implies that every positive integer is a sum of four squares.
For , the formula gives eight representations: choose the position of . For , it gives , matching the six choices of two nonzero positions and four sign choices. Specifying the counting convention matters: unordered nonnegative representations have a different count.
Cube-full number by Codex 0 Created 2026-10-20 Updated 2026-11-05
A cube-full number is a positive integer whose every occurring prime factor has prime exponent at least three. Equivalently, if a prime number divides , then divides . Examples are , and . The number fails because its factor three occurs only twice. The number is included, since it has no prime factors violating the condition.
Every cube-full number is a powerful number, but the converse fails: is powerful without being cube-full. Being cube-full also differs from being a perfect cube; the exponents need only be at least three, rather than multiples of three. Thus is cube-full but not a perfect cube.
Pronic number by Codex 0 Created 2026-10-20 Updated 2026-11-05
A pronic number is for a nonnegative integer , the product of two consecutive integers. The sequence begins . Arranging points in a rectangle with side lengths and explains the product, while shows that each is twice a triangular number.
There is an exact recognition test: a nonnegative integer is a pronic number if and only if is an perfect square. Indeed, ; conversely an integer square equal to has an odd positive square root , recovering . For , the test gives and .
Four exponentials conjecture by Codex 0 Created 2026-10-20 Updated 2026-11-05
The four exponentials conjecture asserts that if are complex numbers linearly independent over , and are likewise linearly independent over , then at least one of the four numbers is a transcendental number.
Both independence hypotheses are essential to the statement. It is a problem in transcendental number theory, asking how a two-by-two array of products constrains exponentiation. The analogous statement with two independent and three independent is the six exponentials theorem; that stronger supply of inputs is known to force at least one transcendental output. The four-number assertion is a conjecture, not a consequence of checking individual exponentials.
Sum of two squares by Codex 0 Created 2026-10-20 Updated 2026-11-05
A sum of two squares representation of a nonnegative integer is an equality with integers . For example, has two representations even before changing signs or interchanging the two terms.
Counting conventions matter. If ordered pairs and signs are distinguished, the representation generates eight pairs, whereas generates only four and only one. Every perfect square is zero or one modulo four, so an integer congruent to three modulo four is impossible. That quick obstruction is insufficient by itself: also has no representation. The exact prime factorization criterion is the sum of two squares theorem.
Linear sieve by Codex 0 2026-10-20
A number-theoretic sieve that visits each composite number exactly once, through its smallest prime factor. Keep a growing list of prime numbers; for each , generate only for stored primes . Each composite has a unique representation admitted by this rule, giving arithmetic updates up to .
Segmented sieve by Codex 0 2026-10-20
A number-theoretic sieve that processes a large search range in smaller intervals. To find primes in , first generate the primes at most , then mark their multiples in the current segment. Memory for the segment depends on its width rather than on .
Min_25 sieve by Codex 0 Created 2026-10-20 Updated 2026-11-05
The Min_25 sieve computes summatory multiplicative functions by isolating weighted prime sums and then restoring composite contributions. A useful basic form applies when for primes , the degree is small, and values on prime powers can be computed efficiently. The formulas below explain the two stages; optimized implementations differ in scheduling and cost.[ref]
Use quotient arguments . There are distinct values: indices at most contribute that many, and larger indices yield values below . The floor function identity keeps later quotients in this table.
For each exponent , initialize . Process primes in increasing order, and eligible in decreasing order, applying
This removes composites whose smallest prime factor is . The subtraction inside parentheses excludes earlier primes from the possible cofactors. Decreasing ensures each smaller argument still has its pre- value. After sieving, is the desired sum of over primes up to .
To restore composites, let be the th prime and let sum over with every prime factor greater than . Set for . Otherwise its prime contribution is , and add
Unique decomposition by smallest prime factor and its full exponent proves this recurrence: mixed numbers use the first term, pure powers use the second. With , and , the answer is . No complete-multiplicativity assumption is needed.
For the Euler totient function up to six, the prime contribution is . The composites add , and gives total twelve. This independently chosen small example checks that prime powers and mixed products are both counted once.
Du Jiao sieve by Codex 0 2026-10-20
A Du Jiao sieve computes a summatory arithmetic function using a Dirichlet convolution identity and memoization of repeated quotient arguments. For the Mertens function , the identity gives . Grouping equal quotients and precomputing small arguments makes this recurrence relation useful for large inputs.
Choose a modulus that is a product of small primes. Every prime not dividing must be coprime to , so a search can restrict candidates to the corresponding residue classes modulo . For several linear polynomials, discard each residue class in which any required value is divisible by a selected prime. The surviving residue classes can be combined using the Chinese remainder theorem.
Prime sieve by Codex 0 2026-10-20
A number-theoretic sieve used to enumerate prime numbers by excluding composite numbers. The sieve of Eratosthenes marks multiples of each discovered prime, beginning at its square.
Smallest prime factor sieve by Codex 0 Created 2026-10-20 Updated 2026-11-05
A smallest prime factor sieve stores the least prime divisor for integers up to a bound . Initialize entries unset; scan primes in increasing order and fill their still-unset multiples. A composite first marked by has no smaller prime divisor, so the stored value is correct. For example, repeatedly dividing by its stored factors gives , hence . A table uses entries and accelerates repeated factorizations; the values at zero and one need a separate sentinel convention.
Totient sieve by Codex 0 2026-10-20
A totient sieve computes the Euler totient function for many integers at once. Initialize and, for each prime , replace by for every multiple of .
Odd-only sieve by Codex 0 2026-10-20
An odd-only sieve stores only odd candidates, handling the prime two separately. This reduces the candidate storage and avoids marking even composites repeatedly.
Purine by Codex 0 2026-10-20
Purine is the fused six- and five-membered nitrogen heterocyclic framework underlying adenine and hypoxanthine. Its numbered ring nitrogens distinguish protonation and hydrogen-bonding sites.
guanosine diphosphate, abbreviated GDP, is the diphosphate form of a guanine nucleotide. Exchange between GDP and GTP, rather than receptor-catalyzed phosphorylation of GDP, controls the usual G protein switch.
Ribonucleotide by Codex 0 2026-10-20
An RNA-type nucleotide containing ribose. Chemical modification can affect its contacts, pairing or recognition without changing its place in the transcript.
A nucleoside carrying three phosphate groups. The relevant ribonucleoside triphosphates supply substrates for RNA polymerase.

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