Recall mod-expt

Any procedure with the same form as stack-copies-of and power can be created using together-copies-of.

Recall:

     (define mod-expt
       (lambda (base exponent modulus)
         (if (= exponent 1)
             base
             (mod* 
               (mod-expt base (- exponent 1) modulus)
               base))))
where
     (define mod*
       (lambda (x y)
         (remainder (* x y) modulus)))