s7 is scheme, not common lisp -- you want modulo and remainder, not mod and rem. (/ 7 4) or whatever is supposed to return a fraction, even in CL.