Anonymous user
Pascal's triangle/Puzzle: Difference between revisions
→{{header|Clojure}}
(→{{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-
(def c20 (get-
(def eqn0 (minus c00 [151 0 0]))
|