arXiv Science⌕ Search

arXiv subjects

Joseph M. Shunia

Publications and source records attributed to Joseph M. Shunia.

16 recordsLinked to original sources

Deterministic integer factorization from abundance decisions

We prove that deciding whether a positive integer is abundant is equivalent to complete integer factorization under deterministic polynomial-time Turing reductions. In particular, abundance can be decided in deterministic polynomial time if and only if integers can be factored in deterministic polynomial time. Our reduction uses carefully chosen coprime multipliers to recover exact divisor sums from abundance queries, and then extracts the complete prime factorization of an integer $n$ deterministically from the divisor sums of $O(\log n)$ consecutive powers of $n$. Altogether, factoring $n$ requires $O((\log n)^4)$ adaptive abundance queries, each at an integer of $O((\log n)^6)$ binary digits.

math.NT↗

Deterministic Polynomial-Time Primality Testing with a Single Binomial Congruence

We give a deterministic polynomial-time primality test whose main verification is the congruence $(1+X)^n=1+X^n$ in $C_n[X]/(X^r-b(Y))$, where $C_n=(\mathbb{Z}/n\mathbb{Z})[Y]/(Φ_r(Y))$. Two identities in the coefficient ring normalize $b$ and ensure compatibility with the main congruence. A finite-field root count and a lattice bound show that an accepted input is a prime power; elementary preprocessing excludes nontrivial perfect powers. We construct $b$ deterministically using Jacobi sums and the uniform Dedekind-zeta zero-free theorem of Cureton and Thorner, which extends OpenAI's Hecke zero-free theorem. The total bit complexity is $L^{32+o(1)}$, where $L=\lceil\log_2 n\rceil$, and verification after constructing $b$ costs $L^{6+o(1)}$. More generally, for a fixed real algebraic $1/2\leθ<1$, a common zero-free boundary $\Re s>θ$ for the relevant Dedekind zeta functions gives $L^{\max\{6,(1-θ)^{-1}\}+o(1)}$. This bound reaches $L^{6+o(1)}$ at $θ=5/6$, and hence under GRH. We state a fixed-base modification of Agrawal's conjecture for odd integers passing the base-$2$ Fermat test, using the modulus $X^r-2$ with $r$ the least positive integer not dividing $n(n-1)$.

math.NT↗

Short Recurrences and Straight-Line Programs for Primes

We give a short autonomous recurrence that generates every odd prime, in increasing order, from the single initial value $8$. Its integer state determines both its output and its next update: the lowest set bit gives the next prime, while the highest set bit determines the sieve period. The same state also determines the following prime gap. A related recurrence represents the prime-counting function as the $2$-adic valuation of a single integer. Independently, a direct packing of a finite divisor sieve yields fixed arithmetic constructions for the $n$-th prime, the prime-counting function, and the twin-prime counting function. We express these constructions as straight-line programs using addition, truncated subtraction, multiplication, integer division, exponentiation, and remainder. Counting operations with reuse of computed values gives programs of lengths $166$, $132$, and $167$, respectively; one autonomous recurrence update uses $99$ operations. Explicit arithmetic subroutines remove all auxiliary operations, including bitwise AND. The programs unfold into fixed arithmetic terms without variable-length sums, products, or searches.

math.NT↗

On Integer-Division Bases for the Kalmár Elementary Functions

Prunescu, Sauras-Altuzarra, and Shunia asked whether addition, totalized integer division, and base-two exponentiation form a substitution basis for the Kalmár elementary functions. We answer this problem negatively, even after adjoining multiplication. On independent powers of two, every fixed term built from addition, multiplication, and integer division takes only polylogarithmically many distinct values below a given bound, and the same restriction survives arbitrary nesting of $2^x$. No such term recovers $n$ from $2^n$, so neither $\lfloor\log_2 x\rfloor$ nor integer remainder is representable. The obstruction is not special to the base two. For every fixed integer $b\geq 2$, the same sparsity bound holds with constants independent of $b$, and $\langle x+y,\lfloor x/y\rfloor,b^x\rangle$ remains a proper subclass of the elementary functions. Variable exponentiation reverses the conclusion: addition, integer division, and $x^y$ do form a substitution basis, $$ \langle x+y,\ \lfloor x/y\rfloor,\ x^y\rangle=\mathcal{E} .$$ Once the base may depend on the input, integer remainder and truncated subtraction become representable. The incomplete base-two class is nevertheless complete for truth values. Every elementary characteristic function belongs to it, as does every elementary function with a fixed finite range.

math.LO↗

A 120-State Binary Turing Machine Equivalent to the Riemann Hypothesis

We construct an explicit deterministic one-tape, two-symbol Turing machine with 120 working states whose blank-tape computation halts if and only if the Riemann hypothesis is false. The machine uses the same binary blank-tape model and state-counting convention as the widely cited 744-state Matiyasevich-O'Rear-Aaronson construction. The reduction from 744 to 120 working states removes 624 states, or 83.87%. Subject to independent end-to-end verification, our machine is a new state-count record for the Riemann hypothesis.

cs.FL↗

Cyclotomic Prime Extractors

We develop explicit prime-recovery formulas from the values $Φ_n(2)$ of cyclotomic polynomials. Binary divisibility patterns detect repeated prime factors and identify the least prime divisor of a squarefree index, while small corrections to $\log_2Φ_n(2)$ allow successive recovery of the distinct prime factors. Specializing the index gives identities for prime products and the least prime above a given integer. The same mechanism extends from finite factorizations to an infinite prime sequence: a normalized limit of cyclotomic values along the odd primorials defines a real constant $Ω=0.25061403238015047218\ldots$, from which every odd prime can be recovered by a recursive rounding rule.

math.NT↗

Prime-Interval Algebras

Starting from a positive integer $n$ and no a priori information about the primes above it, we construct a polynomial quotient ring that recovers exactly the primes in $(n,2n]$ from a single modular exponentiation. The primes occur simultaneously as the nonzero monomial degrees of the resulting polynomial remainder, and each coefficient independently certifies its corresponding prime through its additive order. When $n=p_k$ is prime, the least nonzero degree is $p_{k+1}$. Thus the next prime is recovered from the preceding prime alone, without using the index $k$, the prime-counting function, a prime table, nor any primality tests. We develop the underlying ring structure, give equivalent annihilator and quotient formulations, extend the result to shorter intervals, and provide a SageMath implementation.

math.NT↗

Undecidability, Chaos and Universality in Arithmetic Terms

Arithmetic terms are finite fixed compositions of additions, subtractions, multiplications, divisions with remainder and exponentiations, containing variables interpreted as natural numbers. They build a well-defined notion of closed formula. It is known that every Kalmar elementary function can be expressed as an arithmetic term. In this paper, one studies the power of expression of the arithmetic terms. By interpreting Hilbert's Tenth Problem in arithmetic terms, it is shown that it is undecidable whether one-variable arithmetic term takes the value $0$, or whether two such terms take or not the same values. An algorithm constructs the arithmetic term representing an arbitrary function, which has been defined by a recurrence rule. This construction has various applications. Functions with chaotic behavior, like the Logistic Map, can be expressed as arithmetic terms. Finally, we construct a Turing complete arithmetic term and we express a Turing universal function by an arithmetic term. A somewhat unexpected application: there is a {\it wise} arithmetic term. It gets (the code of) a sentence, (the code of) a formalized theory and a bound $B$, and after performing a constant number of operations, it outputs (the code of) a proof of the sentence using the given theory if such a proof does exist and its length is less than $B$. Otherwise, it outputs $0$.

math.LO↗

A Minimal Substitution Basis for the Kalmár Elementary Functions

We show that the class of Kalmár elementary functions can be inductively generated from the addition, the integer remainder, and the base-two exponentiation, hence improving previous results by Marchenkov and Mazzanti. We also prove that the substitution basis defined by these three operations is minimal. Furthermore, we discuss alternative substitution bases under arity constraints.

math.LO↗

Elementary closed-forms for non-trivial divisors

We present several elementary closed-forms that express a non-trivial divisor for every composite integer $n > 1$. Each closed-form consists of a fixed number of elementary arithmetic operations drawn from the set: addition, subtraction, multiplication, integer division, and exponentiation. Two families of closed-forms are developed. First, direct application of the hypercube method yields closed-forms $T_1(n)$, $T_2(n)$, $T_3(n)$, and $T_4(n)$ expressing the smallest prime divisor, largest non-trivial divisor, largest prime divisor, and greatest prime $\leq n$, respectively. The factorial-unwinding technique underlying these hypercube constructions leads to extreme symbolic complexity, motivating our main result: An alternative closed-form $T(n)$ that avoids factorial-unwinding by synthesizing the quadratic residue invariants $χ(n)$ (largest $r$ such that $r^2$ is a divisor) and $ω(n)$ (number of distinct prime divisors) with integer root extraction. Although evaluating these closed-forms requires exponential time, the number of arithmetic operations performed remains constant and independent of the input size $n$. This sharply contrasts with traditional algorithmic methods, where the number of operations required to locate a non-trivial divisor necessarily scales with $n$.

math.NT↗

On arithmetic terms expressing the prime-counting function and the n-th prime

We present the first fixed-length elementary closed-form expressions for the prime-counting function, $π(n)$, and the $n$-th prime number, $p(n)$. These expressions are arithmetic terms, requiring only a finite and fixed number of elementary arithmetic operations from the set: addition, subtraction, multiplication, integer division, and exponentiation. Mazzanti proved that every Kalmar function can be represented as an arithmetic term. We develop an arithmetic term representing the prime omega function, $ω(n)$, which counts the number of distinct prime divisors of a positive integer $n$. From this term, we find immediately an arithmetic term for the prime-counting function, $π(n)$. Combining these results with a new arithmetic term for binomial coefficients and novel prime-related exponential Diophantine equations, we manage to develop an arithmetic term for the $n$-th prime number, $p(n)$, thereby providing a constructive solution to the fundamental question: Is there an order to the primes?

math.NT↗

Arithmetic Terms for Multinomial Coefficient Sums

We construct arithmetic terms representing the partial sums of binomial coefficients, and we extend these results to obtain arithmetic terms representing the multisections of binomial coefficient sums. We also introduce an arithmetic term representing a certain type of multinomial coefficient sum and, as an application, we provide an arithmetic term representing the central trinomial coefficients. This solves one of the research problems of the celebrated book Concrete Mathematics, which remained open for nearly thirty years.

math.GM↗

On modular representations of C-recursive integer sequences

Prunescu and Sauras-Altuzarra showed that all C-recursive sequences of natural numbers have an arithmetic div-mod representation that can be derived from their generating function. This representation consists of computing the quotient of two exponential polynomials and taking the remainder of the result modulo a third exponential polynomial, and works for all integers $n \geq 1$. Using a different approach, Prunescu proved the existence of two other representations, one of which is the mod-mod representation, consisting of two successive remainder computations. This result has two weaknesses: (i) the representation works only ultimately, and (ii) a correction term must be added to the first exponential polynomial. We show that a mod-mod representation without inner correction term holds for all integers $n \geq 1$. This follows directly from the div-mod representation by an arithmetic short-cut from outside.

math.NT↗

Polynomial quotient rings and Kronecker substitution for deriving combinatorial identities

We introduce a new approach for generating combinatorial identities and formulas by the application of Kronecker substitution to polynomial expansions within quotient rings. Our main result enables the derivation of elementary arithmetic formulas for many C-recursive integer sequences directly from their characteristic polynomials. As sample applications, we present new formulas for the Pell numbers and central binomial coefficients, which are famous integer sequences. These applications lead us to the discovery of a new and unusual formula for the real $n$-th roots of positive integers, $\sqrt[n]{a}$, characterized as the limit of a quotient involving modular exponentiations. From this limit formula we conjecture a fixed-length elementary closed form expression for $\lfloor \sqrt[n]{a} \rfloor$.

math.GM↗

Elementary Formulas for Greatest Common Divisors and Semiprime Factors

We conjecture new elementary formulas for computing the greatest common divisor (GCD) of two integers, alongside an elementary formula for extracting the prime factors of semiprimes. These formulas are of fixed-length and require only the basic arithmetic operations of: addition, subtraction, multiplication, division with remainder, and exponentiation. Our GCD formulas result from simplifying a formula of Mazzanti and are derived using Kronecker substitution techniques from our earlier research. By applying these GCD formulas together with our recent discovery of an arithmetic expression for $\sqrt{n}$, we are able to derive explicit elementary formulas for the prime factors of a semiprime $n=p q$.

math.GM↗

A Polynomial Ring Connecting Central Binomial Coefficients and Gould's Sequence

We establish a novel connection between the central binomial coefficients $\binom{2n}{n}$ and Gould's sequence through the construction of a specialized multivariate polynomial quotient ring. Our ring structure is characterized by ideals generated from elements defined by polynomial recurrence relations, and we prove the conditions under which the set of polynomial generators forms a Gröbner basis. By exploring a specific variation of our ring structure, we demonstrate that expanding and evaluating polynomials within the ring yields both the central binomial coefficients and Gould's sequence. Additionally, we present a method for calculating the binomial transforms of these sequences using our ring's unique properties. This work provides new insights into the connections between two fundamental combinatorial sequences and introduces a new tool for integer sequence analysis, with potential applications in number theory and algebraic combinatorics.

math.GM↗