Jump to content

Pascal's triangle/Puzzle: Difference between revisions

m
→‎{{header|Phix}}: (now part of distro)
(Add Factor example)
m (→‎{{header|Phix}}: (now part of distro))
Line 1,754:
 
=={{header|Phix}}==
<lang Phix>--This little ditty convertsConverts 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 = {
{151},
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.