Since I have multi-input relationships on my mind, here is a visual pattern of 3 variables for you to enjoy (row, column, result). I've submitted this to the good folks at visualpatterns.org, but because of the nature of the complexity of this problem, I'm not quite sure that it quite fits well with everything else over there. Anyhow, it's a good problem for your abstract thinkers and ties in the concept of both arithmetic and geometric sequences quite nicely, I think.
Above shows rows 1, 2, 3 starting at the top. It also shows columns 1, 2, 3, 4 starting from the left to the right. At this rate, in row 8, column 10, there will be 23040 cubes. Can you find out how many cubes there will be for row 20, column 15?