You have 17 photos.
You want to display as many photos as you can in 3 equal rows.

How many photos won't be displayed?