The number that remains unchanged during photosynthesis is the number of carbon atoms.
In the process of photosynthesis, plants take in carbon dioxide (CO₂) and water (H₂O) and, using sunlight, convert them into glucose (C₆H₁₂O₆) and oxygen (O₂). The number of carbon atoms in the reactants (CO₂) is preserved in the glucose produced.