To expand on Marty's answer, all AF-S lenses will autofocus on the D5100 and the D3100.The "S" in AF-S means that it has Nikon's Silent Wave Motor which is needed for the autofocus system to work with those cameras.jP
Copyright © Nikonians 2000, 2013
All Rights Reserved
Nikonians®, NikoScope® and NikoniansAcademy™ are trademarks owned by Nikonians.org.
Nikon®, Nikonos® and Nikkor® are registered trademarks of Nikon Corporation.