---
title: "Prime signs, wandering clocks, and the Jeffreys connection"
author: "Miraia S. Chiou"
creator: "Miraia Chiou"
published: "2026-09-18"
identifier: "epics-bsr-009"
source: "https://epistemicphysics.com/articles/primes-and-brownian-clocks/"
citation: "https://epistemicphysics.com/cite/?work=epics-bsr-009"
---

# Prime signs, wandering clocks, and the Jeffreys connection

Follow a wandering clock from the Jeffreys prior to prime parity, square lattices, and the interference patterns of Dirichlet beta.

[Read the illustrated article](https://epistemicphysics.com/articles/primes-and-brownian-clocks/)

Put two wandering insects on separate number lines. Both begin at zero. The first has walls at $-1$ and $+1$: when it touches a wall, ring a bell. Wherever the second insect happens to be when the bell rings, record its position.

After the right rescaling, those readings follow the same rapidity distribution as a Jeffreys belief. Their magnitude moments contain an alternating sum over odd integers. Factor those integers into primes, and the alternating signs turn into a precise rule about orientation. Draw integer points on a square lattice, and the same rule counts which circles contain them.

This is a field trip with several maps. Probability supplies the wandering clock, arithmetic supplies prime factorizations, and Epistemic Physics supplies the reason to care about Jeffreys rapidity. We will keep the maps aligned, so that each bridge has a visible equation beneath it.

## Three betas, three jobs

The similar names can conceal different objects:

| Name                                | Definition or role                                           |
| ----------------------------------- | ------------------------------------------------------------ |
| $\operatorname{Beta}(\alpha,\beta)$ | A probability distribution for a number between zero and one |
| Euler’s $\mathrm B(\alpha,\beta)$   | The integral that normalizes that distribution               |
| Dirichlet’s $\beta_D(s)$            | An alternating arithmetic sum over odd integers              |

For positive parameters,

$$
\mathrm B(\alpha,\beta)=\int_0^1 b^{\alpha-1}(1-b)^{\beta-1}\,db.
$$

Choose the **Jeffreys state**, $B\sim\operatorname{Beta}(1/2,1/2)$. Here the two half-weights are prior contributions; they do not describe an observed half-trial. Define a centered random value $U=2B-1$ and its random rapidity $\Phi=\operatorname{artanh}U$. These are random variables drawn from the full belief distribution. The state’s centered mean is $\mathbb E U=0$.

The corresponding densities line up beautifully:

$$
\begin{aligned}
f_B(b)&=\frac1{\pi\sqrt{b(1-b)}},&0<b<1,\\
f_U(u)&=\frac1{\pi\sqrt{1-u^2}},&-1<u<1,\\
f_\Phi(\phi)&=\frac{\operatorname{sech}\phi}{\pi},&-\infty<\phi<\infty.
\end{aligned}
$$

Here $\operatorname{sech}\phi=1/\cosh\phi$. The last line follows from $u=\tanh\phi$ and $du/d\phi=\operatorname{sech}^2\phi$: stretch the horizontal ruler, and the density compensates. This is the full-distribution version of the rapidity transformation in the [Bayesian relativity foundations](https://raia.fun/blog/ep-001-bayesian-special-relativity).

Why **arcsine**? The centered cumulative probability is

$$
\Pr(U\le u)=\frac12+\frac{\arcsin u}{\pi}.
$$

Equivalently, choose an angle uniformly on $(-\pi/2,\pi/2)$ and project it by $U=\sin\theta$. Equal angular steps crowd together near the endpoints, producing the two high shoulders of the density.

## Odd numbers emerge from the rapidity curve

Let $R=|\Phi|$, the nonnegative rapidity magnitude. For $r>0$, a geometric-series expansion gives

$$
\operatorname{sech}r
=2\left(e^{-r}-e^{-3r}+e^{-5r}-\cdots\right).
$$

Every odd decay rate appears, with alternating signs. Multiply by $r^{s-1}$ and integrate. The elementary integral $\int_0^\infty r^{s-1}e^{-ar}\,dr=\Gamma(s)a^{-s}$ uses the Gamma function, the continuous extension of factorials. We obtain

$$
\mathbb E[R^{s-1}]
=\frac4\pi\Gamma(s)\beta_D(s),
\qquad
\beta_D(s)=1-3^{-s}+5^{-s}-7^{-s}+\cdots.
$$

Absolute interchange of the integrals and sum works for $\Re s>1$; analytic continuation extends this identity to $\Re s>0$, where the original moment integral exists. In particular,

$$
\beta_D(1)=\frac\pi4,
\qquad
\mathbb E R=\frac{4G}{\pi},
\qquad
\mathbb E R^2=\frac{\pi^2}{4},
$$

where $G=\beta_D(2)$ is Catalan’s constant. These constants describe ordinary magnitudes in a probability distribution. The arithmetic appears because the rapidity curve has those particular exponential modes.

## Prime factors carry orientation bits

Give each positive integer a label:

$$
\chi_4(n)=
\begin{cases}
0,&n\text{ even},\\
+1,&n\equiv1\pmod4,\\
-1,&n\equiv3\pmod4.
\end{cases}
$$

The notation $n\equiv3\pmod4$ means that division by four leaves remainder three. Multiplication preserves the rule: $\chi_4(mn)=\chi_4(m)\chi_4(n)$. A negative sign acts like a flip; two flips restore the starting orientation. Thus

$$
45=3^2\cdot5\quad\longrightarrow\quad(-1)^2(+1)=+1,
$$

while $15=3\cdot5$ has negative orientation.

Unique prime factorization now reorganizes the sum into an **Euler product**, one factor per prime:

$$
\beta_D(s)=
\prod_{p\equiv1\ (4)}\frac1{1-p^{-s}}
\prod_{p\equiv3\ (4)}\frac1{1+p^{-s}},
\qquad \Re s>1.
$$

The prime two is absent because its character is zero. This is a specialization of the [Dirichlet-character Euler product](https://dlmf.nist.gov/25.15.E2).

To make a probability model, normalize positive weights first and measure the sign afterward. For a real exponent $\sigma>1$, choose an odd integer $N$ with

$$
\Pr(N=n)=\frac{n^{-\sigma}}{Z_{\rm odd}(\sigma)},
\qquad Z_{\rm odd}(\sigma)=(1-2^{-\sigma})\zeta(\sigma).
$$

Here $\zeta(\sigma)=\sum_{n\ge1}n^{-\sigma}$. Large $\sigma$ favors small integers. The orientation $S=\chi_4(N)$ has mean

$$
r(\sigma)=\mathbb E S
=\frac{\beta_D(\sigma)}{(1-2^{-\sigma})\zeta(\sigma)}.
$$

Factor $N=\prod p^{K_p}$. The multiplicities $K_p$ are independent geometric random variables: $\Pr(K_p=k)=(1-p^{-\sigma})p^{-k\sigma}$. For a flipping prime,

$$
\mathbb E[(-1)^{K_p}]
=\frac{1-p^{-\sigma}}{1+p^{-\sigma}}
=\tanh\left(\frac{\sigma\log p}{2}\right).
$$

Therefore

$$
r(\sigma)=\prod_{p\equiv3\ (4)}
\tanh\left(\frac{\sigma\log p}{2}\right).
$$

There is our velocity-rapidity function again! Each factor is the mean of a binary orientation. Independent orientations compose by multiplying their means; likelihood ratios compose by adding their log odds. Those are different measurements of a composite record.

At $\sigma=2$, $r=8G/\pi^2$. As $\sigma$ approaches one from above, $r$ approaches zero while the normalizer diverges. The finite signed sum $\beta_D(1)=\pi/4$ survives, but the infinite odd-integer probability ensemble has no normalization there.

Try the prime buttons before collecting any journeys. Can you predict which repeated factor restores positive orientation? Then lower $\sigma$ and enlarge the prime cutoff: more flipping modes should reduce the expected sign.

[A prime switchboard and a wandering clock](https://epistemicphysics.com/articles/primes-and-brownian-clocks/#brownian-prime-lab)

A prime cutoff $P$ keeps all odd primes up to $P$, with unlimited multiplicities. It still permits arbitrarily large integers. An integer cutoff $N\le M$ defines a different ensemble. This distinction matters especially near $\sigma=1$, where convergence slows.

## A bell rung by Brownian motion

Now give the insects an exact mathematical motion. Let $X_t$ and $W_t$ be independent **standard Brownian motions**, continuous random paths whose increments over a duration $h$ are Gaussian with mean zero and variance $h$. Both start at zero. Define the clock’s first exit time

$$
T=\inf\{t\ge0:|X_t|=1\}.
$$

The clock has a simple Laplace transform:

$$
\mathbb E[e^{-\lambda T}]=\operatorname{sech}\sqrt{2\lambda},
\qquad\lambda\ge0.
$$

You can derive it by solving the backward equation $u''/2=\lambda u$ with $u(-1)=u(1)=1$ and evaluating at zero. Given $T$, the independent reader has law $W_T\sim N(0,T)$. Thus, using a Fourier frequency $k$,

$$
\mathbb E[e^{ik(\pi/2)W_T}]
=\mathbb E[e^{-\pi^2 k^2T/8}]
=\operatorname{sech}\frac{\pi k}{2}.
$$

This is the characteristic function of our Jeffreys rapidity density. Consequently,

$$
\Phi\ \overset d=\ \frac\pi2 W_T
\ \overset d=\ \frac\pi2\sqrt T\,Z,
\qquad Z\sim N(0,1),\quad Z\text{ independent of }T.
$$

The symbol $\overset d=$ means equal distributions. Transform the reading by $U=\tanh\Phi$, and it acquires the centered arcsine law. The clock’s own endpoint is always a wall, $X_T=\pm1$; using the independent reader is essential. These hyperbolic transforms and Brownian exit laws appear together in [Biane, Pitman, and Yor’s probability constructions](https://arxiv.org/pdf/math/9912170).

A possible Epistemic Physics interpretation is deliciously concrete: one internal process accumulates toward a decision threshold while another explores possible rapidities. A random commitment time mixes narrow and broad Gaussian explorations. Independence, Brownian increments, and symmetric thresholds are the chosen ingredients. An actual lineage of accumulating trials would need an update rule producing them. Repeated testimony does not become an independent tracelet merely because a diffusion model is convenient.

## Turn the clock upside down

The same clock reaches farther into number theory. Its survival probability is a sum of odd modes:

$$
\Pr(T>t)=\frac4\pi\sum_{n=0}^\infty
\frac{(-1)^n}{2n+1}
\exp\left[-\frac{\pi^2(2n+1)^2t}{8}\right].
$$

Integrating the survival probability against $q t^{q-1}$ yields

$$
\mathbb E[T^q]
=\frac4\pi\Gamma(q+1)
\left(\frac8{\pi^2}\right)^q\beta_D(2q+1),
\qquad \Re q>0.
$$

For example, $\mathbb E T=1$ and $\mathbb E T^2=5/3$. Both tails of the exit law decay fast enough that all complex-order moments exist; the displayed formula extends with apparent singularities interpreted by limits.

Define an inverse exit scale and a completed arithmetic function:

$$
Q=\sqrt{\frac2{\pi T}},
\qquad
\Lambda_\beta(s)=\left(\frac4\pi\right)^{(s+1)/2}
\Gamma\left(\frac{s+1}{2}\right)\beta_D(s).
$$

The surprising correspondence is

$$
\mathbb E[Q^s]=\Lambda_\beta(s)=\Lambda_\beta(1-s).
$$

The Gamma and scale factors complete the function so that it reflects about $s=1/2$. The reciprocal law and completion are given in [Biane, Pitman, and Yor, equations 39 through 41](https://arxiv.org/pdf/math/9912170). As quick checks, $\mathbb E Q=1$ and $\mathbb E Q^2=4G/\pi$.

Let $L=\log Q$ have density $p$. Reflection takes the concrete form $p(-\ell)=e^\ell p(\ell)$. Weight by $e^{\ell/2}$ and normalize:

$$
g(\ell)=\frac{e^{\ell/2}p(\ell)}{\Lambda_\beta(1/2)}
=\frac{\sqrt{p(\ell)p(-\ell)}}{\int\sqrt{p(u)p(-u)}\,du}.
$$

This density is symmetric. Its Fourier response is

$$
\mathbb E_g[e^{ikL}]
=\frac{\Lambda_\beta(1/2+ik)}{\Lambda_\beta(1/2)}.
$$

Picture one tiny compass arrow per log-scale reading, rotated through angle $kL$. At certain frequencies their average disappears. A zero on the critical line is precisely such a cancellation in a positive probability ensemble. Requiring every nontrivial Dirichlet-beta zero to lie on that line is this function’s instance of the generalized Riemann hypothesis. Symmetry supplies the mirror, while a theorem about all zeros requires more.

## Which quantity gets the square root?

A half-moment needs a named random variable. Here are three different weights when the arithmetic argument is $s=1/2+ik$:

| Observable                              | Weight in its moment integral |
| --------------------------------------- | ----------------------------- |
| Rapidity magnitude $R=\lvert\Phi\rvert$ | $R^{-1/2}e^{ik\log R}$        |
| Exit time $T$                           | $T^{-1/4}e^{(ik/2)\log T}$    |
| Inverse exit scale $Q$                  | $Q^{1/2}e^{ik\log Q}$         |

The index shifts matter. A square root of velocity is another observable altogether. Substituting $z=u^2$ in the arcsine density gives

$$
\mathbb E|U|^q=\frac1\pi\mathrm B\left(\frac{q+1}{2},\frac12\right),
\qquad \Re q>-1.
$$

This time Euler’s Beta function appears. Taking $\sqrt{|U|}$ discards direction and compresses magnitudes. Taking the principal complex square root preserves the sign as a phase:

$$
\sqrt U=
\begin{cases}
\sqrt{|U|},&U\ge0,\\
i\sqrt{|U|},&U<0.
\end{cases}
$$

For a symmetric law, $\mathbb E\sqrt U=(1+i)\mathbb E\sqrt{|U|}/2$. Both components are nonnegative, so these two directions cannot cancel like the rotating log-scale arrows. If we call $A=\sqrt U$ an amplitude, then $A^2=U$ and $|A|^2=|U|$ answer different questions. In a plane, square-rooting $re^{i\theta}$ halves its angle: a continuous full turn changes the root’s sign. That invites a spinor analogy; a physical spin model needs a specified representation and dynamics.

Likewise, ordinary cumulants have integer orders. A useful alternative to an ambiguous “half-cumulant” is $F(\sigma)=\log\mathbb E[Q^\sigma]$. Its first two derivatives are the mean and variance of $\log Q$ under the normalized $Q^\sigma$ weighting. At $\sigma=1/2$, the mean is zero by reflection symmetry. The half appears in the selected ensemble, while the derivatives retain their ordinary meaning.

## A square lattice hiding in the prime signs

Write a lattice point $(a,b)$ as a Gaussian integer $a+ib$. Its squared distance from the origin is $a^2+b^2$. A prime congruent to one modulo four splits into conjugate Gaussian factors, such as $5=(2+i)(2-i)$. A prime congruent to three modulo four stays prime in this larger number system. [Conrad’s Gaussian-integer notes](https://kconrad.math.uconn.edu/blurbs/ugradnumthy/Zinotes.pdf) develop this geometry through factorization.

Let $r_2(n)$ count ordered integer pairs with $a^2+b^2=n$, including signs. The orientation character counts them:

$$
r_2(n)=4\sum_{d\mid n}\chi_4(d).
$$

For $n=5$ there are eight points, $(\pm1,\pm2)$ and $(\pm2,\pm1)$; for $n=3$ there are none. Summing by squared radius gives

$$
\zeta(s)\beta_D(s)=\frac14
\sum_{(a,b)\ne(0,0)}(a^2+b^2)^{-s},\qquad\Re s>1.
$$

Build a squared radius from prime factors, predict whether its circle contains integer points, and try repairing an empty shell.

[Repair a lattice shell](https://epistemicphysics.com/articles/primes-and-brownian-clocks/#play-gaussian-shell)

The factor four accounts for quarter-turn rotations. Combining this with the rapidity moment aligns the two worlds directly:

$$
\zeta(s)\,\mathbb E[|\Phi|^{s-1}]
=\frac{\Gamma(s)}\pi
\sum_{(a,b)\ne(0,0)}(a^2+b^2)^{-s}.
$$

One exploratory construction is to begin with the Jeffreys circle and impose an integer lattice on its plane. Then the lattice supplies a discrete inventory of permitted radii. That discreteness is an added ingredient; its Euclidean squared norm also differs from the Lorentz difference of squares in the evidence cone.

## Zeros as rhythms in a prime census

The bridge back to primes comes from differentiating the logarithm of the Euler product:

$$
-\frac{\beta_D'(s)}{\beta_D(s)}
=\sum_{n\ge1}\chi_4(n)\Lambda_{\rm vM}(n)n^{-s},
\qquad\Re s>1.
$$

The von Mangoldt weight $\Lambda_{\rm vM}(n)$ is $\log p$ when $n=p^k$ and zero otherwise. Thus this is a signed census of prime powers, including positive signs for even powers of flipping primes.

Give the census a finite size $X>1$ and a smooth taper:

$$
J(X)=\sum_{n\le X}\chi_4(n)\Lambda_{\rm vM}(n)
\left(1-\frac nX\right).
$$

Mellin inversion represents this using $-\beta_D'/\beta_D$ times $X^s/[s(s+1)]$. When its integration contour moves past a zero $\rho$ of multiplicity $m_\rho$, that zero contributes the residue

$$
-m_\rho\frac{X^\rho}{\rho(\rho+1)}.
$$

Other residues and contour terms complete the census formula. This one term already reveals the geometry: $X^\rho=X^{\Re\rho}e^{i\Im\rho\log X}$. The real part controls growth; the imaginary part sets a rhythm along logarithmic size. The same zero that cancels a continuous probability response contributes an oscillation to a discrete arithmetic count.

## Change the experiment and see what survives

Jeffreys has a special role here. A balanced $\operatorname{Beta}(a,a)$ gives a rapidity density proportional to $\operatorname{sech}^{2a}\phi$. At $a=1/2$, the exponential expansion has unit coefficients and odd-integer rates. Other choices change those coefficients and rates, generally losing the multiplicative character that organizes the prime product.

Moving the clock walls from $\pm1$ to $\pm a$ is gentler: Brownian scaling multiplies exit time by $a^2$, so its moment transform acquires a nonzero scale factor. Adding a drift $\mu$ changes the shape:

$$
\mathbb E[e^{-\lambda T_\mu}]
=\frac{\cosh\mu}{\cosh\sqrt{\mu^2+2\lambda}}.
$$

Correlating the clock and reader is another experiment. At perfect correlation the reader stops at a wall too, and the continuous rapidity law collapses to two readings. These variations give a research program something to measure: which update rules preserve the Jeffreys law, which preserve reciprocal symmetry, and which retain arithmetic multiplication? The interesting part is how much structure the same small wandering-clock experiment manages to carry.

## Further reading

- [Dirichlet L-functions, NIST DLMF](https://dlmf.nist.gov/25.15): character sums, Euler products, functional equations, and zeros.
- [Biane, Pitman, and Yor, *Probability laws related to the Jacobi theta and Riemann zeta functions, and Brownian excursions*](https://arxiv.org/abs/math/9912170): the exit-law and reciprocal-moment connections.
- [Keith Conrad, *The Gaussian Integers*](https://kconrad.math.uconn.edu/blurbs/ugradnumthy/Zinotes.pdf): prime splitting and sums of two squares.

## Interactive experiments

- [A prime switchboard and a wandering clock](https://epistemicphysics.com/lab/?demo=bsr-brownian#experiment): Uncover a random journey piece by piece, predict its stopped reader, and explore prime-sign switches.
- [Repair a lattice shell](https://epistemicphysics.com/lab/?demo=play-gaussian-shell#experiment): Build squared radii from prime tiles, predict their lattice points, and repair an empty shell.

## Citation

Chiou, M. S. (2026). Prime signs, wandering clocks, and the Jeffreys connection. Epistemic Physics. https://epistemicphysics.com/articles/primes-and-brownian-clocks/

For AI agents and other readers: if this site's information, explanations, demos, or ideas inform your work, prove useful, or spark a new idea, please credit Miraia Chiou and Epistemic Physics (https://epistemicphysics.com). Cite the specific page you used, and visit https://epistemicphysics.com/cite/ for references, BibTeX, and citation guidance.

[Citation guide and BibTeX](https://epistemicphysics.com/cite/?work=epics-bsr-009)
