Arrays and math