I teach a first-year linear algebra course for computer science students here in Leiden. Unsurprisingly it is rather focussed on computations with matrices. Everything is done over the real numbers, which is in many ways I think not ideal – sure computer scientists should know about vector spaces over ?! But realistically many of the students have to work hard to grasp vector spaces over the reals, so this might be going a step too far.
In any case, the result is that I want to give them many computational problems to practise on, and in weekly tests (oh, how they love me!), and also the final exam. In order to keep the computations reasonable to do by hand, we work with small matrices, and generally it is nice if the entries are integers, or at least have small height. More than that, it is also nice if the denominators stay small throughout the working, though of course for this one has to assume the student follows some standard algorithm.
At the most basic level, this means that if I am going to ask them to invert a matrix I really want it to be in for some small
. Actually, I prefer to ask them whether it is invertible and if so to find the inverse, as it takes a tiny bit more care, but this is a topic for another post. This leads to the question:
Question: for a fixed value of , and
, how many elements
of
are there such that all entries of
and of
are bounded in absolute value by
?
I try not to repeat questions from year to year, so you can imagine I care a great deal about the answer… Perhaps I should refine the question, to worry about any horrible numbers that might arise in intermediate steps of a reasonable algorithm.
Well, I thought about this for a bit and I did not come up with any nice solution. Then I tried googling, and it does not seem to easy. I got stuck in a frustrating mess of paywalls and expired links (why can’t people use the arXiv?!?!), but I did find a result of Duke, Rudnick and Sarnak who use a different height (reciprocal of square root of smallest eigenvalue, I think), and give a beautiful asymptotic formula where
Phew, that was fun to type. I can see why I struggled to guess this! Unfortunately I can say nothing about the proof, since the paper was published in Duke, and I am not at work.
Of course there are lots of similar questions like this one can ask, and apparently they are not all easy! I think I will finish this post around now, but I will certainly keep this topic in mind. In case anyone is interested in automatically generating linear algebra questions, some very crudely-written Sage code is available on my homepage.