Skip to content

Computing All Lattice-Rectangle Counts by Rational Staircase Sums

Jul 2026 · arXiv.org · Vol abs/2607.17982 · 1 citation · 24 references
Computer Science

TL;DR

The algorithm applies a square-root cover before coefficient extraction and evaluates the resulting rational wedge and triangular sums by a local-denominator divide-and-conquer recursion.

Abstract

Let $F(n)$ be the number of rectangles, not necessarily axis-parallel, whose vertices belong to the $n\times n$ square grid of lattice points. We compute the complete table $F(1),\ldots,F(N)$ exactly in $O(M(N)\log N)$ coefficient-ring operations and $O(N\log N)$ ring elements of working memory, where $M(N)$ is a regular bound for multiplying degree-$N$ polynomials. The ring-level statement assumes that $6$ is invertible; over $\mathbb Z$ the only division is instead performed exactly in the elementary boundary term. With quasi-linear polynomial multiplication the arithmetic bound is $O(N\log^2 N)$. The algorithm applies a square-root cover before coefficient extraction and evaluates the resulting rational wedge and triangular sums by a local-denominator divide-and-conquer recursion. Primitive directions are recovered coefficientwise by M\"obius inversion, followed by five prefix sums. A modular number-theoretic-transform (NTT) implementation with certified Chinese-remainder (CRT) recovery is evaluated experimentally against the $O(N^{3/2})$ all-values algorithm.

View source

Similar papers

Preprint Sep 2026

Sums of distinct divisors of factorials

For practical $N$ let $h(N)$ be the least $k$ such that every integer $1\le m\le N$ is a sum of at most $k$ distinct divisors of $N$. We prove $h(n!)\le(2\log2+o(1))\,n/\log n$. This improves the bounds of order $n/(\log n)^{1/2-\varepsilon}$ established in Tenenbaum-Yokota's Lemma 4 and Yokota's 1995 knapsack note. We...

S. D. Hughes · 0 citations
Preprint Sep 2026

Finiteness in Square Classes and Weighted Zero Density of Perfect Cuboids

Let $M(N)$ be the number of similarity classes of positive rational perfect cuboids with ordered edges $a,b,c$, space diagonal $g$, and squarefree invariant $N=\operatorname{sf}(abcg/2)$. We prove that $M(N)$ is finite for every positive squarefree $N$, without any restriction on the rank of the associated congruent-nu...

V. Asiryan · 0 citations
Preprint Oct 2026

Antichains among Divisor Sums of Divisors

For a positive integer $n$, let $S(n)=\{\sigma(d): d\mid n\}$ be ordered by divisibility, and let $a(n)$ be its width. We study how much of the divisor lattice of $n$ survives under the map $d\mapsto \sigma(d)$. For every fixed prime-exponent pattern, the largest possible value of $a(n)$ is the width of a corresponding...

Felix Huber · 0 citations
Preprint Oct 2026

Exact Rank of the Largest Good Lattice Point Matrix

We prove that for every integer $n>2$ the largest good lattice point matrix $U_n=[u_h:h\in H_n]$, whose columns are generated by all integers $h<n$ coprime to $n$, has rank exactly $\varphi(n)/2+1$. The upper bound follows from the pairing identity $u_h+u_{n-h}=(n,\dots,n,2n)^{\top}$. For the lower bound the columns ar...

Long-Hao Xu · 0 citations
Preprint Aug 2026

The asymptotic behavior of the rectangle partition function $p(m,n)$

Let $p(m,n)$ denote the number of partitions of a rectangle $m\times n$ into integer-sided rectangular blocks, where two partitions are indistinguishable if they consist of the same multiset of blocks, regardless of their geometric arrangement. We present an elementary approach to show that, for every fixed positive in...

Krystian Gajdzica, Maciej Zakarczemny · 1 citation
Preprint Sep 2026

Arithmetic Constraints and Limit Laws for Diagonal Rational Partitions

Let $R_N(m)$ count unordered partitions of $m$ into reduced positive fractions whose numerators and denominators are at most $N$, excluding integer parts. Uniformly for $\rho$ in compact positive intervals, $\log R_N(\lfloor\rho N\rfloor)=\sqrt{2\rho}\,N^{3/2}-\kappa(\rho)N^{3/2}/\log N+o(N^{3/2}/\log N)$. The positive...

K. S. Raghava · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.