Cell[CellGroupData[{Cell[BoxData[
RowBox[{
RowBox[{"delannoymoves", "=",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}]}], "}"}]}], ";"}]], "Input",
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
InitializationCell->True,
CellChangeTimes->{3.35696210375764*^9, 3.375124999665801*^9,
3.7607440563359213`*^9},
CellID->615223508],
Cell[BoxData[
RowBox[{
RowBox[{"destep", "[", "ds_", "]"}], ":=",
RowBox[{"Flatten", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"Outer", "[",
RowBox[{
RowBox[{
RowBox[{"Append", "[",
RowBox[{"#1", ",",
RowBox[{
RowBox[{"Last", "[", "#1", "]"}], "+", "#2"}]}], "]"}],
"&"}], ",",
RowBox[{"{", "#", "}"}], ",", "delannoymoves", ",", "1"}],
"]"}], "&"}], "/@", "ds"}], ",", "2"}], "]"}]}]], "Input",
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
InitializationCell->True,
CellChangeTimes->{3.760744056336042*^9},
CellID->755339034],
Cell[BoxData[
RowBox[{
RowBox[{
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], "]"}], "=", "1"}],
";"}]], "Input",
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
InitializationCell->True,
CellChangeTimes->{3.35696210375764*^9, 3.3751249764127493`*^9,
3.760744056336152*^9},
CellID->1269228863],
Cell[BoxData[
RowBox[{
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"a_", ",", "0"}], "}"}], "]"}], ":=",
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{
RowBox[{"a", "-", "1"}], ",", "0"}], "}"}], "]"}]}]], "Input",
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
InitializationCell->True,
CellChangeTimes->{3.7607440563362703`*^9},
CellID->1207307021],
Cell[BoxData[
RowBox[{
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"0", ",", "b_"}], "}"}], "]"}], ":=",
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"0", ",",
RowBox[{"b", "-", "1"}]}], "}"}], "]"}]}]], "Input",
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
InitializationCell->True,
CellChangeTimes->{3.7607440563363743`*^9},
CellID->1783605091],
Cell[BoxData[
RowBox[{
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"a_", ",", "b_"}], "}"}], "]"}], ":=",
RowBox[{
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{
RowBox[{"a", "-", "1"}], ",", "b"}], "}"}], "]"}], "+",
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{
RowBox[{"a", "-", "1"}], ",",
RowBox[{"b", "-", "1"}]}], "}"}], "]"}], "+",
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"a", ",",
RowBox[{"b", "-", "1"}]}], "}"}], "]"}]}]}]], "Input",
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
InitializationCell->True,
CellChangeTimes->{3.760744056336473*^9},
CellID->326535964],
Cell[BoxData[
RowBox[{"Manipulate", "[",
RowBox[{
RowBox[{
RowBox[{"s", "=",
RowBox[{"Min", "[",
RowBox[{"s", ",",
RowBox[{"3", "^", "k"}]}], "]"}]}], ";",
RowBox[{"With", "[",
RowBox[{
RowBox[{"{",
RowBox[{"ds", "=",
RowBox[{"Nest", "[",
RowBox[{"destep", ",",
RowBox[{"{",
RowBox[{"{",
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], "}"}], "}"}], ",", "k"}],
"]"}]}], "}"}], ",",
RowBox[{"Graphics", "[",
RowBox[{
RowBox[{"Flatten", "[",
RowBox[{"{",
RowBox[{
RowBox[{"RGBColor", "[",
RowBox[{"1", ",", ".71", ",", "0"}], "]"}], ",",
RowBox[{"Polygon", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "k"}], "}"}], ",",
RowBox[{"{",
RowBox[{"k", ",", "k"}], "}"}], ",",
RowBox[{"{",
RowBox[{"k", ",", "0"}], "}"}]}], "}"}], "]"}], ",",
RowBox[{"RGBColor", "[",
RowBox[{".67", ",", ".75", ",", ".15"}], "]"}], ",",
RowBox[{"Polygon", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "k"}], "}"}], ",",
RowBox[{"{",
RowBox[{"k", ",", "0"}], "}"}]}], "}"}], "]"}], ",",
RowBox[{"Darker", "@", "Magenta"}], ",",
RowBox[{"Thickness", "[", ".01", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"ds", "[",
RowBox[{"[", "s", "]"}], "]"}], "]"}], ",",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"If", "[",
RowBox[{
RowBox[{"FreeQ", "[",
RowBox[{
RowBox[{"ds", "[",
RowBox[{"[", "s", "]"}], "]"}], ",",
RowBox[{"{",
RowBox[{"q", ",",
RowBox[{"k", "-", "q"}]}], "}"}]}], "]"}], ",",
RowBox[{"RGBColor", "[",
RowBox[{".11", ",", ".61", ",", ".78"}], "]"}], ",",
RowBox[{"RGBColor", "[",
RowBox[{".11", ",", ".91", ",", ".91"}], "]"}]}],
"]"}], ",",
RowBox[{"Disk", "[",
RowBox[{
RowBox[{"{",
RowBox[{"q", ",",
RowBox[{"k", "-", "q"}]}], "}"}], ",",
RowBox[{"1", "/", "3"}]}], "]"}], ",", "White", ",",
RowBox[{"Style", "[",
RowBox[{
RowBox[{"Text", "[",
RowBox[{
RowBox[{"adel", "[",
RowBox[{"{",
RowBox[{"q", ",",
RowBox[{"k", "-", "q"}]}], "}"}], "]"}], ",",
RowBox[{"{",
RowBox[{"q", ",",
RowBox[{"k", "-", "q"}]}], "}"}]}], "]"}], ",",
"\"\