hktony

Untitled

Sep 17th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. (define (step-count-k n) (+ (* 5 n) 3))
  2. (define (step-count-l n) (if (= n 0) 3 (* 2 (+ 3 (step-count-m (- n 1))))))
  3. (define (step-count-m n) (+ (* 5 (+ n 1)) 3))
  4. (define (step-count-n n) (if (>= (/ n 2) 1) (+ (step-count-n (/ n 2)) 5) 8))
  5. (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