9e NO16 Pyramides de nombres naturels

liste_a: {1.0, 2.0, 3.0, 4.0, 5.0}
c_1 = 1 (slider from 1 to 3, step 1)
b_1 = 1 (slider from 1 to 4, step 1)
a = 1 (slider from 1 to 5, step 1)
liste_b = KeepIf(x ≠ a, liste_a)
b = Element(liste_b, b_1)
liste_c = KeepIf(x ≠ b, liste_b)
c = Element(liste_c, c_1)
d_1 = 1 (slider from 1 to 2, step 1)
liste_d = KeepIf(x ≠ c, liste_c)
d = Element(liste_d, d_1)
texte1: a + ""
texte2: b + ""
texte3: c + ""
texte4: d + ""
e = Element(KeepIf[x ≠ d, liste_d], 1.0)
texte5: e + ""
verti = Sequence(Sequence[Segment[(k + 2.0 * i, k), (k + 2.0 * i, k + 1.0)], i, 0.0, 5.0 - k], k, 0.0, 4.0)
horiz = Union(Sequence[Segment[(i, i + 1.0), (10.0 - i, i + 1.0)], i, 0.0, 4.0], {Segment[(0.0, 0.0), (10.0, 0.0)]})
texte6: a + b + ""
texte7: c + b + ""
texte8: d + c + ""
texte9: d + e + ""
texte10: a + 2.0 * b + c + ""
texte11: b + 2.0 * c + d + ""
texte12: c + 2.0 * d + e + ""
texte13: a + 3.0 * b + 3.0 * c + d + ""
texte14: b + 3.0 * d + 3.0 * c + e + ""
total: a + 4.0 * b + 6.0 * c + 4.0 * d + e
texte15: a + 4.0 * b + 6.0 * c + 4.0 * d + e + ""