Walt is dead right.
You can estimate the effect of aperture on diffraction by dividing the value 1760
by the f/stop, to see the theoretical limit of resolution with a perfect lens.
1760 / f5.6 = 314
1760 / f16 = 110
1760 / f32 = 55
The Resolution of a System can be estimated by adding the reciprocals of each element's resolution.
1/ Film Resolution + 1/ Lens Resolution + 1/ Enlarger Resolution = 1/System Resolution
100 line pairs per mm is a wonderful dream we all have, so plug 100 into each element of the system, and get a shock: 1/100 + 1/100 + 1/100 = 3/100 = 33.
With a perfect system, we can't image more than 33 lp/mm.
And, obviously, plugging in a single massively higher value, doesn't have much effect.
So, watch for the photographic potholes: shooting stopped down too far is a big one.
Camera movement is another. Focus error is a biggie, and so is the whole enlarger / scanner thing.
Depth of field turns out to be the inverse of resolution, so don't stop down too far.
And don't WORRY about the numbers, test, look at your prints, and see what works for you.
Edward Weston stopped down all the way, and then some, but his VISION was sharp and we STILL think it was his lenses. If you don't compose a picture using adjacent tones, it will have the illusion of sharpness, which is more important than actual sharpness.
for extra credit, build a microscope and discover the rayleigh criterion
apply it to photography, and promptly forget it