Category Archives: Homework

HW: Getting started with Sage

Here is an example of the kind of programming we might be doing in Sage. The problem: Create a visualization of integer divisibility. This is a widely open-ended problem and it has many interpretations and solutions. Here is how I will choose to interpret it today: Consider all pairs of integers $(n,m)$ as points on the $xy$-plane, and highlight all the points $(m,n)$ such that $n$ is divisible by $m$.

Let’s go through the steps for doing this one at a time. Continue reading