For example, in copper sulfate pentahydrate, the suffix "penta" means that there are five water molecules for every copper sulfate molecule in the hydrate. Similarly, in sodium carbonate decahydrate, the suffix "deca" means that there are ten water molecules for every sodium carbonate molecule in the hydrate.
The number of water molecules attached to an ionic compound in a hydrate is determined by the coordination sphere of the metal ion in the compound. The coordination sphere is the region around the metal ion that is occupied by ligands, which are molecules or ions that bind to the metal ion.
The number of ligands that can coordinate to a metal ion is determined by the size of the metal ion, the charge of the metal ion, and the steric hindrance of the ligands. Steric hindrance refers to the repulsion between the ligands that prevents them from getting too close to each other.
In general, small metal ions with a high charge will have a larger coordination sphere than large metal ions with a low charge. This is because the small metal ions are more strongly attracted to the ligands and can overcome the steric hindrance between them.
The coordination sphere of a metal ion can also be affected by the presence of other molecules or ions in the solution. For example, if there are a lot of other molecules or ions in the solution, they can compete with the ligands for binding to the metal ion. This can reduce the number of ligands that can coordinate to the metal ion and, therefore, the number of water molecules in the hydrate.