Two ways to cancel: Morken’s coprime Möbius sums
The numbers that survive the sieve
Write the numbers from 1 to 10 and cross out the multiples of 2 or 5. Only 1, 3, 7 and 9 survive. Now give 1 a score of , 3 and 7 a score of each, and 9 a score of . The total is . Jamie Morken’s first question was whether the same score could be found by adding shorter sums attached to divisors of 10. The second asked whether it could be found using short sums with no crossing out. Both answers are yes, and neither requires the list to stop at 10.
Here is the scoring rule. If any prime is repeated in the factorization of , give zero; otherwise give it , where is the number of prime factors. In particular 1 has score , and has score . This is the Möbius function . Say two positive numbers are coprime when they have no common prime factor. Write for the sum of the scores from 1 through of numbers coprime to , and for the sum with no filter. Let be the product of the distinct primes of , with . The diagonal is OEIS A112399.
The two routes to already show an important difference:
| Route for | Outer indices | Contributions in that order |
|---|---|---|
| Squarefree divisors | ||
| Numbers using only primes of 10 |
Four and eight are not divisors of 10. They appear in the second row because their only prime is 2, which does divide 10.
Follow the score of a single term through both routes, then see why 4 and 8 belong in the second sum.
Why both sums work
For integers and , with only positive indices,
In Ma and Zhang’s divisor route, an inner term indexed by with becomes a term at . Multiplying by recovers when is squarefree and shares no prime with it. If they share a prime, has a repeated prime and both contributions vanish. Thus the net weight on is . If shares a prime with , pair each squarefree not containing with ; the signs cancel. If shares no prime with , the only term is . The change of index works because is exactly .
For integers , . This is the case of the preceding identity, not its full independent-cutoff form.
For integers and , with only positive indices,
In the paper’s second route, fix the original index . For each exactly dividing , ask how many powers of can go into . If does not divide , the only choice is zero copies of , leaving factor . If divides , all exponents from through are allowed. Only two choices give nonzero scores: leaving no copies in gives , and leaving one gives . They cancel. At the empty product is one. After this coefficient calculation, summing over and collecting by gives the unrestricted sums .
For natural numbers (including zero), sum over the natural divisors of for which every prime dividing divides . The result is if and zero otherwise. Here has the empty divisor list and . On positive inputs the filter is . This is the coefficient lemma used in the previous proof, not the finite sum over .
Neither argument assumes is squarefree. In the first formula it is the outer divisor that must be squarefree, and the inner coprimality test uses , not . In the second, imposing would discard powers that are needed for the pairing. At both identities give ; at every sum is empty.
From one sum to a rectangle and a triangle
Consider a table with entry at row and column . A prime shared by the row and column makes the entry zero. On the other cells, the entry is the product of their separate scores. This explains the product formula (even with a multiplicative weight) and gives a second use for the signed divisor filter: summing over a rectangle, group together pairs whose two indices are multiples of the same . Each resulting block separates into a row sum and a column sum.
For , and a multiplicative arithmetic function ,
In particular gives for the unweighted sum. If is nonsquarefree both sides vanish; otherwise coprime terms factor and the rest vanish.
For integers ,
The square case gives A372700, denoted here.
Expand the two short sums and put , . Their terms become : for squarefree coprime to both the two factors of square to one; other terms vanish. The weight at is now , which keeps exactly the coprime pairs. There, , and at excluded pairs . A zero side length gives empty sums.
For , . Start at . For the extra row and column contribute by the product formula, since the corner . Thus whenever is nonsquarefree.
The triangle , for , reads off exactly the short sums just used. Imagine keeping fixed and moving one step: no entry changes unless divides , and then at most the endpoint enters. If , the only possible term is 1. Row totals have another interpretation: after writing , coprimality forces each full prime power of into one of the two factors. A prime occurring exactly once contributes the factor ; a prime occurring at least twice contributes . The unweighted row therefore counts powerful numbers up to (every prime exponent is at least two; 1 qualifies).
For , the second identity gives . Also , if (in particular ), and . For the increment is if and , zero otherwise.
The three row totals with weights are respectively , , and . Here counts divisors. To see the last two, group by : the weight gives for each split of a squarefree , zero otherwise; the weight has local factors for all .
For , , and . These are respectively the defining cutoff , the diagonal divisor identity, and the unweighted product formula.
Two small conventions that change answers
The indicator for powerful numbers is not the sign of such a number. For , but . To give each distinct prime one minus sign, score the radical instead: . At 1 both products are 1. This is the distinction behind the A112526 correction.
In the A304575 count, a strict inequality excludes the endpoint . For that endpoint is not coprime to anyway, so nothing changes. But belongs to every divisor sum, and the strict count drops its lone term, worth 1. Already at the strict reading gives 0 and the inclusive reading gives 1.
For positive , . The distinct multiplicative function has local value 0 at and at for . Evaluate at prime powers and use multiplicativity to recover its other values.
For , and ,
At , define and . Then and .
Group by , write and . The new numerator is coprime to , and its cutoff is precisely . Conversely such a pair gives back with gcd exactly . At the diagonal the smaller cutoff is . For its inverse, substitute the divisor sum and use .
Let . With , the diagonal transform gives and . The argument can also be written .
For , the inclusive total equals , hence also the version with . Thus , , and replacing the inclusive endpoint by a strict one gives .
Put . For primes and integers , and . With , splitting the numbers counted by according to divisibility by gives for . Pair successive terms in , using , and .
For and any arithmetic function , the choices with gcd give and . Here counts the positive integers at most that are coprime to .
At a prime power with , A007431 has factor (that is if , otherwise); A063659 has ( if , otherwise). These come from using and . With in the quotient formula one gets A276833. Finally by the Möbius divisor filter.
What the paper proves, and what it doesn’t
These are identities of finite sums. They give different exact ways to compute the same numbers; they do not prove infinitely many sign changes for A372700 or asymptotic cancellation estimates. The public Lean source proves the first identity on the diagonal and proves the second identity’s pointwise coefficient formula. The diagonal does not give the independent-cutoff first formula as stated, and the coefficient theorem is not itself the finite reindexing step giving the second formula. The paper supplies both written arguments.
Sources. Haobo Ma and Wenlin Zhang, version 3, §§1–3. Jamie Morken posed the diagonal problems in A112399, revision 41, FORMULA (September 18, 2026). The paper credits Sander–Sander (2009, proof of Proposition 4) and Ramaré (2014, §1) for prior forms of the first identity, and Ramaré (online December 1, 2014; print 2015, equation 16.1) for an equivalent second identity. It also credits Helfgott’s coefficient calculation, Peter Bala’s weighted product proof, West’s reduced-fraction transform and Schramm’s gcd sums. Morken recorded the triangle formulas on September 21, 2026; the later revision-17 snapshot is not their first appearance.