Number 1
I had other topics pending that I expected to talk about before this, and also earlier. But these months my new job got my attention away from the blog. I may comment on this in a future post -or not.
So, what brought me back? Well a problem that I've pondering over since about 4 years ago when teaching Computer Science at a High School level (Grades 9 to 12). The problem shows up in CS very early: What does repeatedly right-shifting a binary number represent? In essence, the (integer) logarithm in base 2, yes. But, division is a concept well controlled by any grade 9 student. Why not then introduce the logarithm already then?
We would need to 1) show how the laws of (integer) logarithms can be justified from repeated division, 2) show how can we calculate the general logarithm by only using integer logarithms, and, finally, 3) show the geometric description of the logarithm. These days I realized how 2) looks like. Hence this post.
Initially, I thought it could be more or less straightforward to derive the usual properties of the logarithm from those of the integer logarithm. Also, the idea of visualizing the logarithm and exponentiation as paths towards/away from 1 was appealing. After trying building the logarithm from its integer version, that seems now misguided. It is straightforward to introduce and justify (almost) all of the properties using the integer logarithm for powers of the same base. But in general that won't work:
I already wrote some time ago a few posts on the topic elsewhere. As I said back then, I like the number 1. It seems a dull choice and many may go for other more mysterious numbers like 4, 8 or 24. But there are some key elementary concepts that hinge on 1.
One of these concepts is the basic operations of multiplication and of division. Another (related) pair of concepts are the Logarithm and Exponentiation. The basic idea may be stated as what are the “paths” that lead to 1.
Geometry of Division and multiplication
Let's first view this last statement graphically.
![]() | |
Fig.1 Geometric construction of Multiplication and Division |
Point
Hence, for
The same construction rules show, that
Note: This geometric construction of multiplication and division is valid in a projective space. Indeed, while the previous figure seems to show the constructions paths parallel (in an Euclidean sense) to either
The Logarithm
The paths following repeated multiplication or divisions without crossing the unit lead to what we call the logarithm. Already from a geometric point of view, the logarithm seems "opposed/inverse" to exponentiation.
The Integer Logarithm
How many times can we divide
How many times can we multiply
We will convene that when talking about multiplication paths, we will give the answer a negative sign. Hence, for the values of Fig.1,
General Properties of the Integer Logarithm
From the definition the following properties follow:
0.-
1.-
2.-
3.- If
The following are not clear-cut derivable from the definition, but seem quite plausible:
4.-
5.-
bla, bla, bla (I'll come back to this later. Right now, just wanted to get all this off my head)
Calculating the Logarithm using only Integer logarithms
Let's first state the result:
Be
Where
We will now clarify and justify this expression as a continuous fraction.
Be
with
From the definitions of logarithm and integer logarithm there are
To calculate
In this last figure, point
Either some
In short, using just the operations of (repeated) multiplication and (repeated) division, given two numbers,
What can I say. I like "seeing" things and this geometric view is something fun.
Further Geometric Intuition
I think there is way more intuition to uncover from a geometric view of the logarithm. I hope to describe some of it another time soon. For now, let me collect here some plots I had done and posted elsewhere before.
Note added in proof
Of course, I had to find only now, that this is Daniel Shanks' algorithm for the logarithm published back in ... 1954 (https://www.jstor.org/stable/2001992 or https://www.ams.org/journals/mcom/1954-08-046/S0025-5718-1954-0061464-9/S0025-5718-1954-0061464-9.pdf) !
I still think that explicitly referring to the integer logarithm, as repeated division, adds a clear pedagogical value to it. Further so, if the geometric construction is shown.
Furthermore, for all pairs
This is more of a wish list, or reminder of a vague idea, that would require to be made more precise.
On Google you can find a video from Mathematica showcasing the continuous fraction expression for a logarithm. See also this tweet or this site.
I found about Shanks on https://exstrom.com/blog/abrazolica/posts/logarithm.html
Some ideas for when I need a distraction
Only on an Euclidean setting we get the usual values of
Likely more interesting would be the case of