Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (step-count-k n) (+ (* 5 n) 3))
- (define (step-count-l n) (if (= n 0) 3 (* 2 (+ 3 (step-count-m (- n 1))))))
- (define (step-count-m n) (+ (* 5 (+ n 1)) 3))
- (define (step-count-n n) (if (>= (/ n 2) 1) (+ (step-count-n (/ n 2)) 5) 8))
- (define (step-count-o n) (if (>= (/ n 2) 1) (* 2 (+ 3 (step-count-o (/ n 2)))) 12))
Advertisement
Add Comment
Please, Sign In to add comment