A tuning fork of frequency 512 produces 6 beats in 1 second when vibrating along with a vibrating segment of a monometer wire. The frequency of the vibration of sonometer wire is

A. 512
B. 506
C. 518
D. 506 and 518