The number that remains unchanged during photosynthesis is the number of carbon atoms.
In the process of photosynthesis, carbon dioxide (CO₂) is taken in by plants, and glucose (C₆H₁₂O₆) is produced, but the total number of carbon atoms accounted for in the reaction remains the same throughout the process.