<jupyter_start><jupyter_text>**Exercise 1.12**The following pattern of numbers is called Pascal’s triangle.```         1       1   1     1   2   1   1   3   3   1 1   4   6   4   1       . . .```The numbers at the edge of the triangle are all 1, and each number inside the triangle is the sum of the two numbers above it. Write a procedure that computes elements of Pascal’s triangle by means of a recursive process.<jupyter_code>(define (pascal row col)
  (cond ((= col 1) 1)
        ((= col row) 1)
        (else (+ (pascal (- row 1) (- col 1))
                 (pascal (- row 1) col)))))<jupyter_output><empty_output><jupyter_text>아래는 테스트를 위한 코드이다.<jupyter_code>; display helpers ;
(require racket)

(define (pascal-row row)
  (define columns (range 1 (+ row 1)))
  (map (lambda (col) (pascal row col)) columns))
(displayln (pascal-row 1))
(displayln (pascal-row 2))
(displayln (pascal-row 3))
(displayln (pascal-row 4))
(displayln (pascal-row 5))<jupyter_output>(1)
(1 1)
(1 2 1)
(1 3 3 1)
(1 4 6 4 1)
{'fraction_non_alphanumeric': 0.12935323383084577, 'fraction_numerical': 0.046766169154228855, 'mean_word_length': 3.00796812749004, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '556383', 'license': 'Unlicense', 'n_tokens_mistral': 395, 'n_tokens_neox': 372, 'n_words': 138, 'path': '1/12.ipynb', 'repo_name': 'BasixKOR/SICP', 'size': '1005'}