Using the Permutation formula with 7, 5 and 3.
1,949,482,876,800. If you change one item every fifteen minutes, you will come to a repeat after 37 million years. Significantly more if you do not restrict the engine to the front of the train. John in Lansing, ILL