Re: "Elementary" number theory problem
From: Michael Lockhart (ml1000_at_bellsouth.net)
Date: 07/31/04
- Next message: W. Dale Hall: "Re: Open Letter to W. Dale Hall, et al"
- Previous message: |-|erc: "Re: Mathematics and Powerpoint"
- In reply to: Doug Goncz : "Re: "Elementary" number theory problem"
- Next in thread: Gerry Myerson: "Re: "Elementary" number theory problem"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Jul 2004 20:11:40 -0400
" Doug Goncz " <dgoncz@aol.com> wrote in message
news:20040730183651.07086.00000142@mb-m17.aol.com...
> It is a rule of thumb in accounting, I have this thanks to Gloria Newbery,
a
> branch manager, that if a digit transposition error exists in an account,
the
> amount of the error in the balance will be divisible by 9.
>
> For example:
>
> $1234.56 +
> $2345.67 =
> $3580.23
>
> $1243.56+
> $2345.67=
> $3589.23
>
> $3589.23-
> $3580.23 =
> $ 9.00
>
> See?
>
> This may be related to the reference to 18 given in Van's first post.
It follows from a creative use of the "rule of nine(s)". 9 divides an
integer N iff it divides the sum of N's digits. A transposition of more
than two digits can be made by several transpositions of two digits, so it
suffices to see if this is true when switching just two digits.
Assume two numbers are given, and for our purposes we are only interested in
the two digits which change. Let's say they are a in the 10^m place and b
in the 10^n place. The difference between the original number and the
number obtained by switching those digits is:
a(10^m) + b(10^n) - b(10^m) - a(10^n) = (a-b)(10^m) + (b-a)(10^n). So the
only non-zero digits of the difference are a-b and b-a. Now, either a = b,
in which case 0 is the difference, so 9 trivially divides it, or one of a-b
and b-a is negative. That's fine. That's why I say "creative" use of the
rule of nine. a-b + b-a = 0. 9|0, so we're done.
Michael
- Next message: W. Dale Hall: "Re: Open Letter to W. Dale Hall, et al"
- Previous message: |-|erc: "Re: Mathematics and Powerpoint"
- In reply to: Doug Goncz : "Re: "Elementary" number theory problem"
- Next in thread: Gerry Myerson: "Re: "Elementary" number theory problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|