moves back and forth repeatedly
The current produced by electromagnetic induction is greater when the magnet or coil moves faster, the coil has more turns, or the magnet is stronger. If the magnet or coil is moved back and forth repeatedly, alternating current is produced.