1. Atomic Theory, Atomic Number and Mass Number
Every atom is defined by its number of protons (atomic number), while its mass comes from protons plus neutrons, and the mass number can vary between atoms of the same element.
Atomic number $Z=$ number of protons (defines the element); mass number $A = $ protons $+$ neutrons; isotope notation $^A_ZX$. Average atomic mass is the weighted average of all naturally occurring isotopes: $m= (isotope mass)(fractional abundance)$, measured experimentally by mass spectrometry (peaks = isotope mass-to-charge ratios; peak height = relative abundance).
Isotopes (same $Z$, different $A$/neutron number, same chemical behavior) vs. ions (same $Z$ and $A$, different electron count, different charge).
Treating the mass number on the periodic table as a whole number for a single atom --- the periodic table lists the weighted AVERAGE atomic mass across isotopes, so it is almost never a whole number, while any individual atom's mass number is always an integer.
$Z=$ protons; $A=$ protons+neutrons; periodic table mass = weighted average, not one atom's mass.