Brownian motion with superimposed interaction: cosine potential and molecular dynamics simulation