Atoms and the periodic table
An atom is identified by its number of protons. Elements with similar outer-electron patterns, like those in one column of the periodic table, react in similar ways.
A worked example
Aluminum has atomic number 13 and mass number 27. So it has 13 protons, and 27 minus 13 equals 14 neutrons. A neutral atom also has 13 electrons, matching its 13 protons.
The mistake people actually make
Mass number is protons plus neutrons, not protons alone. So to find the neutrons, always subtract the atomic number first. A neutral atom has as many electrons as protons, not as many as its mass number.