Pascal's triangle/Puzzle: Difference between revisions

Content added Content deleted
(→‎{{header|Python}}: Update to add missed constraint.)
Line 502:
(def rows (reverse (take 5 (iterate above bottom))))</lang>
We know the integer value of cells c00 and c20 ( base-0 row then column numbers), so by subtracting these values we get two equations of the form 0=n0+n1*X+n2*Z.
<lang clojure>(def c00 (get->in rows (nth [0) (nth 0)]))
(def c20 (get->in rows (nth [2) (nth 0)]))
 
(def eqn0 (minus c00 [151 0 0]))