Exact Evaluation of OEIS A308166 (Integer Triangles Whose Smallest Side Divides the Largest) in Sublinear Time via the Divisor Summatory Function

Let a(n) be the number of integer-sided triangles with perimeter n whose smallest side divides the largest side (OEIS A308166). The only formula listed in the OEIS is a double sum requiring O(n^2) operations. We prove the exact identity a(n) = [3|n] + m - floor(m/2) + floor(m/3) + 2*D(floor(m/2)) - D(m), where m = n - 1 and D(x) is the divisor summatory function (OEIS A006218). This reduces the evaluation of a(n) to two values of D(x), achieving O(sqrt(n)) complexity via the Dirichlet hyperbola method and O(n^(1/3)) via a Stern-Brocot hull-walk kernel. We derive the asymptotic behavior a(n) = (5/6 - ln 2)*n + O(sqrt(n)). Python 3.12 implementations agree with benchmarks up to n = 10^18. The exact values of a(10^k) for k <= 18 are provided.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-24
DOI
https://doi.org/10.5281/zenodo.23610817
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Exact Evaluation of OEIS A308166 (Integer Triangles Whose Smallest Side Divides the Largest) in Sublinear Time via the Divisor Summatory Function

Mark Kim
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

Exact Evaluation of OEIS A308166 (Integer Triangles Whose Smallest Side Divides the Largest) in Sublinear Time via the Divisor Summatory Function

Mark Kim
preprint en

Abstract

Let a(n) be the number of integer-sided triangles with perimeter n whose smallest side divides the largest side (OEIS A308166). The only formula listed in the OEIS is a double sum requiring O(n^2) operations. We prove the exact identity a(n) = [3|n] + m - floor(m/2) + floor(m/3) + 2*D(floor(m/2)) - D(m), where m = n - 1 and D(x) is the divisor summatory function (OEIS A006218). This reduces the evaluation of a(n) to two values of D(x), achieving O(sqrt(n)) complexity via the Dirichlet hyperbola method and O(n^(1/3)) via a Stern-Brocot hull-walk kernel. We derive the asymptotic behavior a(n) = (5/6 - ln 2)*n + O(sqrt(n)). Python 3.12 implementations agree with benchmarks up to n = 10^18. The exact values of a(10^k) for k <= 18 are provided.

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon