The subject invention pertains to a method and apparatus for performing computations using residue arithmetic. Respective jaws axially and radially displaceable in the guides are each formed with a row of teeth. In an embodiment, the beam current actually reaching the substrate, as a proportion of beam current actually passing through the reticle, is reduced to 50% or less during exposure of the pattern.