Polygonal Numbers: Investigating Triangular and Square Numbers
2014-11-20 12:19
Polygonal Numbers: Investigating Triangular and Square Numbers
This GeoGebra interactive applet provides a visual and geometric exploration of polygonal numbers, with a focus on triangular numbers and square numbers. The applet is designed to help students discover the patterns and formulas behind these classic number sequences through dynamic construction.
The applet uses point arrays (dot patterns) and line segments to build polygonal numbers step by step. Users can observe how triangular numbers form when dots are arranged in equilateral triangular configurations, and how square numbers emerge from arranging dots in perfect square grids. Each number in the sequence is constructed by adding one layer of points to the previous figure, making the recursive nature of these sequences immediately visible.
Through this geometric representation, students can visually verify the well-known formulas for triangular numbers, T_n = n(n+1)/2, and square numbers, S_n = n^2. The applet also invites exploration of deeper relationships, such as the fact that the sum of consecutive triangular numbers produces square numbers, or that each square number can be decomposed into two consecutive triangular numbers differing by one. These connections between arithmetic and geometry become intuitive when students see the shapes grow and transform interactively.
The applet supports dragging, clicking, and animated construction, allowing learners to proceed at their own pace. Teachers can use it in classroom instruction or students can explore independently as part of self-study. It is particularly suitable for introductory lessons on number sequences, figurate numbers, and the general topic of connecting algebraic formulas to geometric intuition. By making abstract numerical relationships concrete and manipulable, this applet helps build a stronger foundational understanding of patterns in mathematics and encourages students to think about numbers as shapes and shapes as numbers.
Loading the math board and drawing, please wait…
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.32.0" id="03ce205e-9eda-4594-b5cb-e31dc82aba21" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="663" height="663" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.16289592760180996" orientation="1" />
</panes>
<views>
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="200" window="0,0,400,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="1" size="647" window="0,0,400,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3" size="108" window="0,0,200,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="4097" visible="true" inframe="true" stylebar="true" location="1" size="150" window="1352,155,500,451" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 22 , 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1" size="300" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 39 | 1 501 67 , 5 19 , 72 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 | 30 29 54 32 31 33 | 17 26 62 73 , 14 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="false" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="0"/>
<font size="12"/>
<graphicsSettings javaLatexFonts="false"/>
</gui>
<euclidianView>
<size width="647" height="490"/>
<coordSystem xZero="197.47809210373532" yZero="344.6099128278019" scale="40.4749503186573" yscale="40.47496377533892"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="0" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="10"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0"/>
<coordStyle val="0"/>
<angleFromInvTrig val="false"/>
</kernel>
<scripting blocked="false" disabled="false"/>
<construction title="Polygonal numbers" author="" date="">
<element type="point" label="A">
<show object="true" label="false"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="-2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="B">
<show object="true" label="false"/>
<condition showObject="N ≥ 2"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-1.0" y="-2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="A" a1="B"/>
<output a0="a"/>
</command>
<element type="segment" label="a">
<show object="true" label="false"/>
<condition showObject="N ≥ 2"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="2.0" z="4.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="numeric" label="b">
<value val="3.0"/>
<show object="false" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="point" label="C">
<show object="true" label="false"/>
<condition showObject="N ≥ 3"/>
<objColor r="255" g="127" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="1.0" y="-2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="B" a1="C"/>
<output a0="c"/>
</command>
<element type="segment" label="c">
<show object="true" label="false"/>
<condition showObject="N ≥ 3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="2.0" z="4.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="point" label="D">
<show object="true" label="false"/>
<condition showObject="N ≥ 4"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="3.0" y="-2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="E">
<show object="true" label="false"/>
<condition showObject="N ≥ 5"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="5.0" y="-2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="C" a1="D"/>
<output a0="d"/>
</command>
<element type="segment" label="d">
<show object="true" label="false"/>
<condition showObject="N ≥ 4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="2.0" z="4.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="D" a1="E"/>
<output a0="e"/>
</command>
<element type="segment" label="e">
<show object="true" label="false"/>
<condition showObject="N ≥ 5"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="2.0" z="4.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="point" label="F">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 2)"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="G">
<show object="true" label="false"/>
<condition showObject="N ≥ 3"/>
<objColor r="255" g="127" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="H">
<show object="true" label="false"/>
<condition showObject="N ≥ 4"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="4.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="I_1">
<show object="true" label="false"/>
<condition showObject="N ≥ 5"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="6.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="A" a1="F"/>
<output a0="f"/>
</command>
<element type="segment" label="f">
<show object="true" label="false"/>
<condition showObject="N ≥ 2"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-2.0" y="0.0" z="-6.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="F" a1="G"/>
<output a0="g"/>
</command>
<element type="segment" label="g">
<show object="true" label="false"/>
<condition showObject="N ≥ 3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-2.0" y="0.0" z="-6.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="G" a1="H"/>
<output a0="h"/>
</command>
<element type="segment" label="h">
<show object="true" label="false"/>
<condition showObject="N ≥ 4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-2.0" y="0.0" z="-6.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="H" a1="I_1"/>
<output a0="i"/>
</command>
<element type="segment" label="i">
<show object="true" label="false"/>
<condition showObject="N ≥ 5"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-2.0" y="0.0" z="-6.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="point" label="J">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 2)"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-1.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="K">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 3)"/>
<objColor r="255" g="127" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-1.0" y="2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="L">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 3)"/>
<objColor r="255" g="127" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="1.0" y="2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="M">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 3)"/>
<objColor r="255" g="127" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="1.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="N_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-1.0" y="4.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="O">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="1.0" y="4.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="3.0" y="4.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="Q">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="3.0" y="2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="R">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="3.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="S">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-1.0" y="6.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="T">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="1.0" y="6.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="U">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="3.0" y="6.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="V">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="5.0" y="6.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="W">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="5.0" y="4.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="Z">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="5.0" y="2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="A_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="5.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="G" a1="L"/>
<output a0="j"/>
</command>
<element type="segment" label="j">
<show object="false" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 3)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="4.0" z="-8.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="L" a1="C"/>
<output a0="k"/>
</command>
<element type="segment" label="k">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 3)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="4.0" y="0.0" z="-4.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="F" a1="J"/>
<output a0="l"/>
</command>
<element type="segment" label="l">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 2)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="2.0" z="0.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="J" a1="B"/>
<output a0="m"/>
</command>
<element type="segment" label="m">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 2)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="2.0" y="0.0" z="2.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="H" a1="P"/>
<output a0="n"/>
</command>
<element type="segment" label="n">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="6.0" z="-24.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="P" a1="D"/>
<output a0="p"/>
</command>
<element type="segment" label="p">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 4)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="6.0" y="0.0" z="-18.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="I_1" a1="V"/>
<output a0="q"/>
</command>
<element type="segment" label="q">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0.0" y="8.0" z="-48.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="V" a1="E"/>
<output a0="r"/>
</command>
<element type="segment" label="r">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 5)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="8.0" y="0.0" z="-40.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="numeric" label="I">
<value val="2.0"/>
<show object="true" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="1" max="2" absoluteScreenLocation="true" width="30.0" x="507.0" y="76.0" fixed="true" horizontal="true"/>
<lineStyle thickness="6" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="N">
<value val="5.0"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="2"/>
<slider min="1" max="5" absoluteScreenLocation="true" width="80.0" x="489.0" y="114.0" fixed="true" horizontal="true"/>
<lineStyle thickness="6" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="point" label="F_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 2 ∧ (N ≥ 2)"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<element type="point" label="F_2">
<show object="true" label="false"/>
<condition showObject="N ≥ 2"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="-3.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="F_2" a1="B"/>
<output a0="s"/>
</command>
<element type="segment" label="s">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 2)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2.0" y="2.0" z="6.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="G" a1="C"/>
<output a0="t"/>
</command>
<element type="segment" label="t">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 3)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="4.0" y="4.0" z="4.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="H" a1="D"/>
<output a0="a_1"/>
</command>
<element type="segment" label="a_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 4)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="6.0" y="6.0" z="-6.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="I_1" a1="E"/>
<output a0="b_1"/>
</command>
<element type="segment" label="b_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 5)"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="8.0" y="8.0" z="-24.0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Midpoint">
<input a0="G" a1="C"/>
<output a0="B_1"/>
</command>
<element type="point" label="B_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 3)"/>
<objColor r="255" g="127" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-1.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Midpoint">
<input a0="I_1" a1="E"/>
<output a0="C_1"/>
</command>
<element type="point" label="C_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="1.0" y="2.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Midpoint">
<input a0="I_1" a1="C_1"/>
<output a0="D_1"/>
</command>
<element type="point" label="D_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-1.0" y="4.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="a_1"/>
<output a0="G_1"/>
</command>
<element type="point" label="G_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="-1.0746900327586033" y="2.0746900327586033" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="a_1"/>
<output a0="H_1"/>
</command>
<element type="point" label="H_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 4)"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="1.0035572285872494" y="-0.0035572285872493836" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Midpoint">
<input a0="C_1" a1="E"/>
<output a0="E_1"/>
</command>
<element type="point" label="E_1">
<show object="true" label="false"/>
<condition showObject="I ≟ 1 ∧ (N ≥ 5)"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="3.0" y="0.0" z="1.0"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<expression label="text1" exp=""三角形 四邊形""/>
<element type="text" label="text1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<absoluteScreenLocation x="487" y="62"/>
</element>
<expression label="text2" exp=""數目""/>
<element type="text" label="text2">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<absoluteScreenLocation x="526" y="139"/>
</element>
<expression label="text3" exp=""多邊形數""/>
<element type="text" label="text3">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<font serif="false" sizeM="2.0" size="12" style="0"/>
<absoluteScreenLocation x="69" y="46"/>
</element>
</construction>
</geogebra>