# Experiments Gallery A compact, image-first overview of the experiments in **py-mathx-lab**.
Truncation error, convergence behavior, and error landscapes for Taylor approximations.
Explore perfect numbers via the sum-of-divisors function and the Euclid–Euler characterization.
Study the abundancy index $\sigma(n)/n$ and how it separates number classes.
Compute $\sigma(n)$, test multiplicativity, and explore divisor-sum structure.
Constraints, known results, and computational checks related to odd perfect numbers.
Definitions, examples, and experiments around near-perfect (and related) integers.
Bits and digits of Mn = 2n − 1: fast size estimates for planning feasible bounds.
Scan prime exponents with the Lucas–Lehmer test and visualize scaling and outcomes.
Pre-sieve Mp candidates by finding small structured factors before expensive primality tests.
Generate even perfect numbers via Euclid–Euler and visualize growth and validation checks.
Compare observed Mersenne-prime counts to a simple heuristic expectation curve.
Counterexamples to naive Fermat primality testing: base-a pseudoprimes and Carmichael numbers.
Turn “prime-generating polynomials” folklore into a crisp counterexample (Euler’s n²+n+41).
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
Render an Ulam spiral and highlight primes on the spiral grid to make diagonal structure (prime-rich diagonals) visible, then compare how that structure changes as the spiral size increases.
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
This is a thin wrapper that follows the standard experiment template and delegates the actual computation to…
Pépin test classification and bounded factor search, showing the classic counterexample at F₅.
Enumerate 3-prime-factor Carmichael numbers via Korselt’s criterion and verify Fermat-test failure modes.
Search for base-2 Wieferich primes and visualize the quotient-like distribution; recovers 1093 and 3511 under default bounds.
Compute primorial ± 1 and show they are usually composite; produce small factor witnesses for early k.
Generate small semiprimes and compare Pollard-rho factorization timings for balanced vs. unbalanced cases.
Visual structure in \varphi(n)/n and primorial effects
How often does a value occur as \varphi(n)?
Estimate the squarefree density using \mu(n)^2
Summatory Möbius M(x)=\sum_{n\le x}\mu(n) as a random-walk-like object
Compare summatory \lambda(n) and \mu(n)
Histogram of \Omega(n) and normal approximation
Record values of \tau(n) and highly composite behavior
Plot \sigma(n)/n and connect to perfect / abundant numbers
Normalize J_k(n) by n^k for small k
Compute \psi(x)=\sum_{n\le x}\Lambda(n) and compare to x
Compare λ(n) and φ(n) via ratios and distributions
Validate classic identities like \mu*1=\varepsilon and \mu*\mathrm{id}=\varphi
Enumerate Dirichlet characters modulo a small q and visualize character values on residues a=0..q-1.
Compute the character inner-product matrix modulo q and visualize orthogonality errors.
Study partial sums S(N)=sum_{n<=N} chi(n) and measure maximum growth for small moduli.
Compute Gauss sums for characters modulo q and compare magnitudes to sqrt(q).
For Re(s)>1, compare partial Dirichlet series and partial Euler products for L(s,chi).
Investigate slow convergence near s=1 and compare naive partial sums to smoothed/accelerated variants.
Count primes in selected reduced residue classes modulo q and compare class-to-class differences.
Compare prime counts in arithmetic progressions to the PNT(AP) main term Li(x)/phi(q).
Track the classic mod-4 prime race and visualize the running lead and sign changes.
Compare the two reduced residue classes modulo 3 and study lead changes over x.
Track four residue classes modulo 8 and visualize which class leads most often.
Study a normalized race statistic on a log-grid and compare its empirical distribution to heuristics.
Compute theta(x;q,a) for residue classes and compare growth and fluctuations across classes.
Use character orthogonality to express an indicator of a residue class and verify numerically.
For each character modulo q, compute max_{1<=N<=Nmax} |S(N)| and compare across the character table.
Classify characters by conductor (smallest modulus they factor through) and visualize primitive vs. imprimitive structure.
For a prime race difference D(x), compute the fraction of x where D(x)>0 and visualize bias as x grows.
Track sign changes of a prime race difference D(x) and record early crossing points in a compact table.
Compare partial sums of the Dirichlet series for ζ(s) across regions of the complex plane.
Numerically compare ζ(s) via truncated Dirichlet series versus truncated Euler product.
Sample magnitudes of ζ(1/2+it) to visualize typical size variations along the critical line.
Use the alternating η(s) series to evaluate ζ(s) in Re(s)>0 and compare truncation errors.
Plot Hardy’s Z-function around known zeros and inspect local sign changes and oscillations.
Compute Gram points and visualize the spacing and the Gram law heuristic numerically.
Compare numerical zero counts with the Riemann–von Mangoldt formula across heights.
Render a heatmap of log|ζ(s)| over a rectangle to reveal poles, zeros, and ridges.
Heatmap of the functional-equation residual R(s)=ζ(s)-χ(s)ζ(1−s) on a grid.
Compare ζ(1/2+it) to partial Euler products as the prime cutoff grows.
Compare 1/ζ(s) to partial sums Σ_{n≤N} μ(n)/n^s for Re(s)>1.
Compare −ζ′(s)/ζ(s) to partial sums Σ_{n≤N} Λ(n)/n^s for Re(s)>1.
Compare ω(n) and Ω(n) distributions and their Erdős–Kac normalizations.
Use μ(n) as a squarefree indicator and verify ω(n)=Ω(n) on that subset.
Track running maxima of τ(n) up to N and visualize growth of record values.
Visualize σ(n)/n and classify integers using σ(n) compared to 2n.
For α on a grid, find n≤N maximizing σ(n)/n^α and show regime changes.
Compute J_k(n), verify J_1=φ, and visualize ratios J_k(n)/n^k.
Compare λ(n) and φ(n) and visualize λ(n)/φ(n) over a finite range.
List reduced residues mod q, verify count=φ(q), and summarize simple structure checks.
Verify classic convolution identities numerically on 1..N (μ*1=ε, φ*1=id, 1*1=τ).
Plot ψ(x) and highlight jump contributions coming from prime powers.
Visualize where Λ(n) is nonzero (prime powers) and summarize basic statistics.
Plot M(x)=∑_{n≤x} μ(n) and rescalings such as M(x)/√x.
Compare value-sets of Dirichlet characters and count real-valued characters.
Compute conductors and separate primitive from imprimitive characters.
Visualize orthogonality relations via inner-product matrices.
Compute Gauss sums τ(χ) and compare |τ(χ)| to √q.
Compare partial Dirichlet series behavior near s=1 and on the critical line.
Compare truncated Euler products and truncated series for L(s,χ).
Compute prime counts in residue classes and plot difference curves for representative pairs.
For each reduced residue a (mod q), find the smallest prime p≡a (mod q) and visualize results.
Study stability of ζ(1/2+it) via η-acceleration under truncation changes.
Scan Hardy Z(t), bracket sign changes, and visualize candidate zeros.
Compare Gram-point heuristics and simple zero-counting diagnostics over a finite range.
Compare π(x) to li(x) and related approximations and visualize signed error.
Measure how often one residue class leads another and visualize lead-time statistics.
Plot Φ(x)=∑_{n≤x} φ(n) and compare to the main-term scaling 3x²/π².
Explore partial sums of the Liouville function and simple parity correlations.
Recover a function from its Dirichlet convolution with 1 via Möbius inversion.
Average χ(p) over primes in arithmetic progressions and compare to equidistribution heuristics.
Compare π(x;q,a) to a baseline x/(φ(q) log x) and visualize deviations.
Rows between consecutive squares; highlight primes to reveal vertical streaks.
Polar spiral r=√n, θ=2π√n; primes plotted as points often form dense spiral fragments.
Centered hex-grid spiral; plot primes only to explore lattice-aligned structure.
Heatmap of initial prime-run lengths for f(n)=n^2+an+b over a small coefficient grid.
Roots of f(n)≡0 (mod p) for small primes p; explains why prime streaks must fail.
Compare n^2+n+b for classical 'lucky' b; visualize prime indicators and streak lengths.