How astronomers can predict planetary alignment?
There is a variety of software programs available which will accurately predict the positions of the planets for thousands of years into the future and past. They can be set to flag alignments, so that all you have to do is search through time, and all the alignments will appear. The software which I use myself is Starry Night Pro.