Monday, April 22, 2019

Freaky facts about 9 and 11

First published Monday, June 14, 2010


It's easy to come up with strange coincidences regarding the numbers 9 and 11. See, for example,

http://www.unexplained-mysteries.com/forum/index.php?showtopic=56447

How seriously you take such pecularities depends on your philosophical point of view. A typical scientist would respond that such coincidences are fairly likely by the fact that one can, with p/q the probability of an event, write (1-p/q)n, meaning that if n is large enough the probability is fairly high of "bizarre" classically independent coincidences.

But you might also think about Schroedinger's notorious cat, whose live-dead iffy state has yet to be accounted for by Einsteinian classical thinking, as I argue in this longish article:

http://www.angelfire.com/ult/znewz1/qball.html


Elsewhere I give a mathematical explanation of why any integer can be quickly tested to determine whether 9 or 11 is an aliquot divisor.

http://www.angelfire.com/az3/nfold/iJk.html

Here are some fun facts about divisibility by 9 or 11.

# If integers k and j both divide by 9, then the integer formed by stringing k and j together also divides by 9. One can string together as many integers divisible by 9 as one wishes to obtain that result.

Example:

27, 36, 45, 81 all divide by 9

In that case, 27364581 divides by 9 (and equals 3040509)

# If k divides by 9, then all the permutations of k's digit string form integers that divide by 9.

Example:

819/9 = 91

891/9 = 99

198/9 = 22

189/9 =21

918/9 = 102

981/9 = 109

# If an integer does not divide by 9, it is easy to form a new integer that does so by a simple addition of a digit.

This follows from the method of checking for factorability by 9. To wit, we add all the numerals, to see if they add to 9. If the sum exceeds 9, then those numerals are again added and this process is repeated as many times as necessary to obtain a single digit.

Example a.:

72936. 7 + 2 + 9 + 3 + 6 = 27. 2 + 7 = 9

Example b.:

Number chosen by random number generator:

37969. 3 + 7 + 9 + 6 + 9 = 34. 3 + 4 = 7

Hence, all we need do is include a 2 somewhere in the digit string.

372969/9 = 4144

Mystify your friends. Have them pick any string of digits (say 4) and then you silently calculate (it looks better if you don't use a calculator) to see whether the number divides by 9. If so, announce, "This number divides by 9." If not, announce the digit needed to make an integer divisible by 9 (2 in the case above) and then have your friend place that digit anywhere in the integer. Then announce, "This number divides by 9."

In the case of 11, doing tricks isn't quite so easy, but possible.

We check if a number divides by 11 by adding alternate digits as positive and negative. If the sum is zero, the number divides by 11. If the sum exceeds 9, we add the numerals with alternating signs, so that a sum 11 or 77 or the like, will zero out.

Let's check 5863.

We sum 5 - 8 + 6 - 3 = 0


So we can't scramble 5863 any way and have it divide by 11.

However, we can scramble the positively signed numbers or the negatively signed numbers how we please and find that the number divides by 11.

6358 = 11*578

We can also string numbers divisible by 11 together and the resulting integer is also divisible by 11.

253 = 11*23, 143 = 11*13

143253 = 11*13023

Now let's test this pseudorandom number:

70517. The sum of digits is 18 (making it divisible by 9).

We need to get a -18. So any digit string that sums to -18 will do. The easiest way to do that in this case is to replicate the integer and append it since each positive numeral is paired to its negative.

7051770517/11 = 641070047

Now let's do a pseudorandom 4-digit number:

4556. 4 - 5 + 5 - 6 = - 2. Hence 45562 must divide by 11 (obtaining 4142).

Sometimes another trick works.

5894. 5 - 8 + 9 - 4 = 2. So we need a -2, which, in this case can be had by appending 02, ensuring that 2 is found in the negative sum.

Check: 589402/11 = 53582

Let's play with 157311.

Positive digits are 1,7,1
Negative digits are 5, 3, 1

Positive permutations are

117, 711, 171

Negative permutations are

531, 513, 315, 351, 153, 135

So integers divisible by 11 are, for example:

137115 = 11*12465

711315 = 11*64665

Sizzlin' symmetry
There's just something about symmetry...

To form a number divisible by both 9 and 11, we play around thus:

Take a number, say 18279, divisible by 9. Note that it has an odd number of digits, meaning that its copy can be appended such that the resulting number 1827918279 yields a pattern pairing each positive digit with its negative, meaning we'll obtain a 0. Hence 1827918279/11 = 166174389 and that integer divided by 9 equals 20312031. Note that 18279/9 = 2031,

We can also write 1827997281/11 = 166181571 and that number divided by 9 equals 203110809.

Suppose the string contains an even number of digits. In that case, we can write say 18271827 and find it divisible by 9 (equaling 2030203). But it won't divide by 11 in that the positives pair with positive clones and so for negatives. This is resolved by using a 0 for the midpoint.

Thence 182701827/11 = 16609257. And, by the rules given above, 182701827 is divisible by 9, that number being 20300203.

Ah, wonderful symmetry.

A bit of trivia

Tests for divisibility by 9 and 11



If one adds the digits of a number and the sum is divisible by 9, then the number is divisible by 9. Similarly, if one alternates the signs of a multi-digit number's digits and the sum is divisible by 11, then the number is divisible by 11.Example
The sum of the digits of 99 is 18, which is divisible by 9. Likewise, the sum 1+8 is also divisible by 9.
The sum of the alternately signed digits of 99 is 9 + (-9) = 0, and 0 is divisible by 9.
And, of course, 99 = 9(11).
How do these tests of divisibility work?
This description is for people with no background in number theory.

Proposition I

A number is divisible by 9 (with a remainder of 0) if and only if the sum of its digits, in base-10 notation, is divisible by 9.
That is, if n is divisible by 9, the sum of its digits is divisible by 9 and if the sum of its digits is divisible by 9, n is divisible by 9.
So our method of proof can either begin with the assumption that n is divisible by 9 or with the assumption that the sum of n's digits is divisble by 9. Below we have chosen to assume n is divisible by 9. But, first some background.

What is base 10?

It is customary to use a place system for numbers of any base. The base-10 system, with its 10 digits, uses digit position to tell us what multiple of 10 we have.
When we write, say 231, this tells us that we are to add 200 + 30 + 1. Each place represents a power of 10. That is, 200 + 30 + 1 = 2 · 102 + 3 · 101 + 1 · 100 (where any number with exponent 0 is defined as equal to 1).
If we wish to write 23 in binary, or base-2, notation, we first write:
1 · 24 + 0 · 23 + 1 · 22 + 1 · 21 + 1 · 20.
Then, limiting ourselves to the digit set {0,1}, we write 10111, knowing that the place signifies a power of 2.

Sets of numbers differing by multiples of q

Now we want to think about some sets of numbers, each of which is divisible by some number n.For example, let's consider the series
{...-17, -10, -3, 4, 11...} where any two members differ by some multiple of 7.
As we see,
(-17) - (-10) = -7
(-17) - 11 = -28
Another such series is
{...-15, -8, -1, 6, 13, 20...}
where subtraction of any two numbers in the series also yields a number divisible by 7.
Once we know one member of such a set, we know them all. That is, the set is writable:
{-3 + 7k|k e K}, with K the set of integers.
It is customary to express such a set thus:
[-3]7. We can also express this set as [-10]7. In fact, in this notation,
[-3]7 = [-10]7
In general, a series denoted [n]q is identical to the series denoted [n + qk]q, where k is any integer.
The set [n]q is known as congruence class n modulo q.
Note that
[0]q = [0 + qk]. Every member of this series is divisible by q for all k. That is, every element of this series, when divided by q, equals an integer k.
[q]q = [q + qk]. Every member of this series is divisible by q. That is, every member, when divided by q, equals k+1.
What happens if we add elements of [m]q and [n]q?
We have m + qk + n + qj = m+n + q(k+j), letting j be an integer.
If we set k+j to 0, this gives m+n, which we use to establish the series [m+n]q = [m+n + qk]q.
For example, we have [-3]7 + [-1]7 = [-4]7,
which means,
{...-17,-10,-3,4,11...} + {...-15,-8,-1,6,13,20...} = {...-18,-11,-4,3,10,17...}
We see that -18 - 3 = -21, which is indeed divisible by 7.
By kindred reasoning we can show that it is possible to multiply an element from each of two similar series to obtain a third series similar to the other two. By 'similar' is meant a series in which elements differ by an integer multiple of q.

That is, [p]q · [r]q = [pr]q.

Proof of Proposition I

Let dn, dn-1 ... d1, d0 represent the decimal expansion of some number N.Then, by definition, we have N = dn · 10n + dn-1 · 10n-1+...+d0 · 100
[See explanation above.]
Since both sides of the expression are equal, each must belong to the same congruence class.
That is, putting N as a member of the series [N]q means that the right side of the equation is also a member of [N]q.
That is, [N]q = [dn · 10n + dn-1 · 10n-1 +...+ d0 · 100]q.
Now our condition is that N be divisible by 9. In that case N is a member of the congruence class [0]9. That is, [N]9 = [0]9. Likewise, the decimal expansion is also a member of [0]9.
That is, [N]9 = [0]9 = [N's decimal expansion]9.
Because [p+r]q = [p]q+[r]q and [pr]q = [p]q · [r]q, we may write:
[N]9 = [0]9 = [dn]9 · [10]9n + [dn-1] · [10]9n-1 + ... + [d1]9 · [10]90
Now we know that [10]9 = [1]9, since 10-9 = 1.
Hence we can substitute the number 1 for the number 10, obtaining
[0]9 = [dn]9 · [1]9n + [dn-1]9 · [1]9n-1+...+ [d0]9 · [1]90 ...
Obviously 1m = 1. So we may write
[N]9 = [dn]9 + [dn-1]9+...+[d0]9
which equals
[dn+dn-1+...+d0]9, which equals [N]9, which equals [0]9.
Since the sum of the digits is equal to congruence class [0]9, it must be divisible by 9.
QED

Proposition II

A number is divisible by 11 only if the alternating sum of its digits is divisible by 0.That is, dn - dn-1 + dn-2 etc. must equal a sum divisible by 11.
The proof for 9 can be used for 11, noting that [10]11 = [-1]11, since 10 - (-1) = 11. And it should be remembered that (-1)2n is positive, while (-1)2n ± 1
is negative.
First published ca. 2002

Roto-rooter

A general continuing fraction recursion algorithm for square roots



A very minor result that happens to please me:

The continuing real fraction
J + 1/(J + 1/(J + 1/(J + 1/ ...
= J + [(J^2 + 4)^.5]/2
is a special case of a recursion function yielding that limit. That general function is
Xsub(n+1) = (Xsub(n) + C)^(-1) + C
Setting Xo = 0 and C = J, we see (where sub(-1) is not an initial value but a designation for the constant prior to application of the function):


Convergent ; Our function; Continued fraction0 ; Xsub(-1) = J; J
1 ; Xsub(1) = (J^-1) + J; J + J^-1
2 ; Xsub(2) = (J + J^-1)^-1 + J; as above

Of course, we needn't set Xo = 0. In fact, the curious thing is that this recursion function arrives at the same limit no matter what real initial value is chosen (other than Xo = -C, which must be excluded).
That is, (lim n-->inf)Xsub(n+1) = (lim n-->inf)Ysub(n+1)
when Xsub(1) = (Xo + C)^-1 + C and Ysub(1) = (Yo + C)^-1 + C. It is the constant C that determines the limit, which is the limit of the continuing fraction
1 + 1/C...
That is, beginning with any real but -C for Xo and any real but -C for Yo, we obtain the limit above because we find that
(lim n-->inf)(Xsub(n) - Ysub(n)) = 0,
where (Xsub(n) - Ysub(n)) alternates sign by n.
A bit of perfunctory algebra, which I omit, establishes these facts.
So, this algorithm yields an infinity of approaches to any square root. That is, Xsub(n) =/= Ysub(n) for finite n.
An example: (lim n-->inf)X(sub n) = (2 + 8^.5)/2 = 1 + 2^.5

For Xo = 1 and C = 2, some recursive (calculator) values are:
3
2.333...
2.428571429
2.411764706
2.414634146
For Xo = 1/2 and C = 2
2.5 2.4 2.416...6...
2.413793103
2.414285714
For Xo = -31 and C = 2
-29.0
1.965517241
2.50877193
2.398601399
2.416909621
For Xo = 31 and C = 2
33.0
2.03...03...
2.492537313
2.401197605
2.416458853
For Xo = 1/31 and C = 2 2.032258065
2.492063492
2.401273885
2.416445623
2.413830955
For Xo = -1/31 and C = 2
1.967741935
2.508196721
2.39869281
2.416893733

Note the pattern of alternately too high--too low.

A cardinal tweak

This is a very rough draft that I may withdraw. Hello. I tried to print "alef null" properly, but the system refuses to permit i...