Pascal's triangle/Puzzle: Difference between revisions

Content added Content deleted
(Add Factor example)
m (→‎{{header|Phix}}: (now part of distro))
Line 1,754: Line 1,754:


=={{header|Phix}}==
=={{header|Phix}}==
Converts the pyramid to rules quite nicely, however I will concede
I approached this with a view to solving general pyramid puzzles, not just the one given.
that solving those two rules (18=2x+z and 73=5x+6z) and specifically converting them
<lang Phix>--This little ditty converts the pyramid to rules quite nicely, however I will concede
into xrule(35=7x) and zrule(56=7z) is somewhat amateurish - suggestions welcome.
--that solving those two rules (18=2x+z and 73=5x+6z) and specifically converting them
<lang Phix>-- demo\rosetta\Pascal_triangle_Puzzle.exw
--into xrule(35=7x) and zrule(56=7z) is somewhat amateurish - suggestions welcome.

sequence pyramid = {
sequence pyramid = {
{151},
{151},