Solution by Mark J. Reed perl/ch-1.sh: perl one-liner to handle both conversion directions raku/ch-2.p6: somewhat lazy raku program that takes the triangle list as a string and uses EVAL to parse it.