I already said that the definition of concentration is density
No NO
NO NO it is not, concentration is one thing and density is another.
If you do not know something look it up don't just guess.
Density is mass per unit volume
Molarity is moles per litre
You should be working with the 2nd equation.
If you have 0.5 moles in 1L and add it to 0.5 moles in 2L the total no of moles is 1 but as you know have 3 litres of solution the molarity is 0.33 moles per litre.