teaching machines

Blackbox 6

Blackbox 5

Blackbox 4

Blackbox 3

Blackbox 2

Blackbox 1

Consider the following mysterious black box. It gobbles up values entered on the left, and spits out some result on the right. What’s going on inside it? Here’s a hint: it solves a problem that you likely solved often in middle school math classes.