Perfect and Optimal Rulers

rulers

A judicious artist will use his eye,
but he will trust only to his rule.

Generating and counting perfect rulers.