Math chips: how they work