Anomalous cancellation

From testwiki
Revision as of 19:41, 24 January 2025 by imported>Jacobolus (base (exponentiation) -> radix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Image frame An anomalous cancellation or accidental cancellation is a particular kind of arithmetic procedural error that gives a numerically correct answer. An attempt is made to reduce a fraction by cancelling individual digits in the numerator and denominator. This is not a legitimate operation, and does not in general give a correct answer, but in some rare cases the result is numerically the same as if a correct procedure had been applied.[1] The trivial cases of cancelling trailing zeros or where all of the digits are equal are ignored.

Examples of anomalous cancellations which still produce the correct result include (these and their inverses are all the cases in base 10 with the fraction different from 1 and with two digits):

Template:Columns-list

The article by Boas analyzes two-digit cases in bases other than base 10, e.g., Template:Sfrac = Template:Sfrac and its inverse are the only solutions in base 4 with two digits.[2]

An example of anomalous cancellation with more than two digits is Template:Sfrac = Template:Sfrac, and an example with different numbers of digits is Template:Sfrac=Template:Sfrac.

Elementary properties

When the base is prime, no two-digit solutions exist. This can be proven by contradiction: suppose a solution exists. Without loss of generality, we can say that this solution is

a||bc||a=bc, base p,

where the double vertical line indicates digit concatenation. Thus, we have

ap+bcp+a=bc(ab)cp=b(ac)

But p>a,b,ac, as they are digits in base p; yet p divides b(ac), which means that a=c. Therefore. the right hand side is zero, which means the left hand side must also be zero, i.e., a=b, a contradiction by the definition of the problem. (If a=b, the calculation becomes a||ac||a=aca||aa||a=aa=1, which is one of the excluded trivial cases.)

Another property is that the numbers of solutions in a base n is odd if and only if n is an even square. This can be proven similarly to the above: suppose that we have a solution

a||bc||a=bc

Then, doing the same manipulation, we get

an+bcn+a=bc(ab)cn=b(ac)

Suppose that a>b,c. Then note that a,b,ca,ac,ab is also a solution to the equation. This almost sets up an involution from the set of solutions to itself. But we can also substitute in to get (ab)2n=b2, which only has solutions when n is a square. Let n=k2. Taking square roots and rearranging yields ak=(k+1)b. Since the greatest common divisor of k,(k+1) is one, we know that a=(k+1)x,b=kx. Noting that a,b<k2, this has precisely the solutions x=1,2,3,,k1: i.e., it has an odd number of solutions when n=k2 is an even square. The converse of the statement may be proven by noting that these solutions all satisfy the initial requirements.

The question in a bit more generality was studied by Satvik Saha, Sohom Gupta, Sayan Dutta and Sourin Chatterjee.[3] The number of solutions in different bases are listed in OEIS A366412.

See also

References

Template:Reflist

  1. Template:Mathworld
  2. Cite error: Invalid <ref> tag; no text was provided for refs named boas
  3. Template:Cite journal