TOPICS
Search

Finite 2-Adic Complexity


The finite 2-adic complexity of a finite binary sequence measures the minimum size of a rational number representing its digits modulo a power of 2. For a string of N bits s_0, s_1, ..., s_(N-1), let

 r=sum_(j=0)^(N-1)s_j2^j.
(1)

Thus s_0 is the least significant bit. Define the rational complexity

 R_N(r)=min_(a=rb (mod 2^N))max(|a|,b),
(2)

where the minimum is over integers a and b with b positive and odd. The finite 2-adic complexity is then the binary logarithm

 L_N(r)=log_2R_N(r).
(3)

This convention uses the unrounded logarithm. The odd denominator makes a/b a p-adic integer for p=2, and the congruence fixes its first N binary digits (Lin et al. 2026). For example, when N=2, the residues 0, 1, 2, and 3 have respective values R_2(r) of 1, 1, 2, and 1.

Lin et al. (2026, Question 3.1) asked about the mean and variance of this complexity for uniformly chosen strings. With each r in {0,...,2^N-1} equally likely, the expectation value is

 mu_N=E[L_N]=2^(-N)sum_(r=0)^(2^N-1)log_2R_N(r),
(4)

and the variance is

 v_N=2^(-N)sum_(r=0)^(2^N-1)(log_2R_N(r)-mu_N)^2.
(5)

For example, mu_2=1/4 and v_2=3/16.

Babanskyy (2026) reported exact finite distribution formulas and the bound

 mu_N<=N/2
(6)

for every N>=1, together with the asymptotic formula

 mu_N=N/2+(7zeta(3)/(2pi^2)-1)/(2ln2)+o(1),
(7)

where o(1) is as in little-O notation, zeta is the Riemann zeta function, and ln is the natural logarithm. The reported limiting variance is

 lim_(N->infty)v_N=0.892302571204274625294755....
(8)

The author reports assistance from OpenAI Codex and GPT-6.1 Sol. As of Oct. 5, 2026, finite certificate checks for N=1 through 14 had been reproduced, but independent specialist review of the arguments for all N and the limiting variance had not been reported. No Lean formalization was supplied (Babanskyy 2026, VibeMathed 2026).


See also

Binary, Finite k-Adic Complexity, p-adic Integer

Explore with Wolfram|Alpha

References

Babanskyy, O. "Rational Complexity of Binary Strings: Exact Mean, Finite Distribution and Logarithmic Variance." 2026. https://github.com/aconsciousfractal/FCIG-Exact-Mean-Bound-for-the-Rational-Complexity-of-Binary-Strings/blob/1c5d732518de8e8e564656e30a73dac24918b379/paper/Exact-Mean-Bound-for-the-Rational-Complexity-of-Binary-Strings.pdf.Lin, H.; Xiao, L.; and Chen, Z. "A Brief View on the Linear and 2-Adic Complexities of Pseudorandom Binary Sequences." AIMS Math. 11, 20267-20290, 2026. https://doi.org/10.3934/math.2026823.VibeMathed. "Mean and Variance of Finite 2-Adic Complexity (Question 3.1)." Oct. 4, 2026. https://vibemathed.com/problem/mean-and-variance-of-finite-2-adic-complexity-question-3-1.

Cite this as:

Weisstein, Eric W. "Finite 2-Adic Complexity." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Finite2-AdicComplexity.html

Subject classifications