For the main group elements( excluding the transition elements) , is it necessary to memorize the type of ion each element makes or could you predict the ion charge using a periodic table?