The mass number of an atom is equal to the sum of the number of protons and the number of neutrons per atom.
The mass number is almost equal to the atomic mass of a particular atom. Therefore it can be written as:
Mass no. of an atom = No. of protons + No. of neutrons.