Newlands arranged the then known elements in increasing order of their atomic masses and noted that every eighth element had properties similar to those of first. This is called Newland's law of octaves.
He compared this similarity with the octaves of music and arranged the elements having similar properties under the same note. Therefore, beryllium, magnesium and calcium were placed under the same note. So, Newland's law of octave is applicable to this set.