You may have seen Sarah's recent post about making posters of perfect square and cube numbers. She was talking to me about how she would go making the cubes. I thought about it for a bit, and thought there must be some way to do it in Geogebra. Turns out, there is!

Drag that slider, and you can change the number of cubes from 1³ to 20³.

This took a little bit of messing around to get right, mostly because I've never used the spreadsheet view in Geogebra before. Once I worked out that spreadsheet cells can contain graphical elements that get displayed, it was just a matter of plugging in the right formulas to generate all the lines.

Anyway, if you'd find this useful, you can download the file here: