%v squares

Perimeter = 

No. of Squares

Perimeter 1

Perimeter 2

Perimeter 3

Perimeter 4

Perimeter 5

D_1 = (-1, 2)
A_1 = (-1, 1)
B_9 = (11, -3)
n = 3 (slider from 3 to 9, step 1)
o_1 = If(n ≥ 1, true, false)
o_9 = If(n ≥ 9, true, false)
C_9 = (11, -2)
D_2 = (1, 2)
A_2 = (1, 1)
o_2 = If(n ≥ 2, true, false)
D_5 = (10, 2)
A_5 = (10, 1)
o_5 = If(n ≥ 5, true, false)
D_6 = (8, 0)
A_6 = (8, -1)
o_6 = If(n ≥ 6, true, false)
D_7 = (10, 0)
C_7 = (11, 0)
A_9 = (10, -3)
o_7 = If(n ≥ 7, true, false)
B_8 = (9, -3)
A_8 = (8, -3)
D_9 = (10, -2)
o_8 = If(n ≥ 8, true, false)
o_4 = If(n ≥ 4, true, false)
o_3 = If(n ≥ 3, true, false)
B_3 = (4, 1)
A_3 = (3, 1)
D_4 = (8, 2)
C_4 = (9, 2)
C_8 = (9, -2)
o89_b: o_8 ∧ o_9 ∧ B_8 ≟ A_9 ∧ C_8 ≟ D_9
D_8 = (8, -2)
o89_d: o_8 ∧ o_9 ∧ D_8 ≟ C_9 ∧ A_8 ≟ B_9
o89_c: o_8 ∧ o_9 ∧ C_8 ≟ B_9 ∧ D_8 ≟ A_9
A_7 = (10, -1)
B_7 = (11, -1)
o79_a: o_7 ∧ o_9 ∧ A_7 ≟ D_9 ∧ B_7 ≟ C_9
o78_a: o_7 ∧ o_8 ∧ A_7 ≟ D_8 ∧ B_7 ≟ C_8
o79_b: o_7 ∧ o_9 ∧ B_7 ≟ A_9 ∧ C_7 ≟ D_9
o78_b: o_7 ∧ o_8 ∧ B_7 ≟ A_8 ∧ C_7 ≟ D_8
o79_d: o_7 ∧ o_9 ∧ D_7 ≟ C_9 ∧ A_7 ≟ B_9
o78_d: o_7 ∧ o_8 ∧ D_7 ≟ C_8 ∧ A_7 ≟ B_8
o78_c: o_7 ∧ o_8 ∧ C_7 ≟ B_8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o_2 ∧ o_7 ∧ D_2 ≟ C_7 ∧ A_2 ≟ B_7
o27_c: o_2 ∧ o_7 ∧ C_2 ≟ B_7 ∧ D_2 ≟ A_7
o26_d: o_2 ∧ o_6 ∧ D_2 ≟ C_6 ∧ A_2 ≟ B_6
o26_c: o_2 ∧ o_6 ∧ C_2 ≟ B_6 ∧ D_2 ≟ A_6
o25_d: o_2 ∧ o_5 ∧ D_2 ≟ C_5 ∧ A_2 ≟ B_5
o25_c: o_2 ∧ o_5 ∧ C_2 ≟ B_5 ∧ D_2 ≟ A_5
o24_d: o_2 ∧ o_4 ∧ D_2 ≟ C_4 ∧ A_2 ≟ B_4
o24_c: o_2 ∧ o_4 ∧ C_2 ≟ B_4 ∧ D_2 ≟ A_4
o23_c: o_2 ∧ o_3 ∧ C_2 ≟ B_3 ∧ D_2 ≟ A_3
o23_d: o_2 ∧ o_3 ∧ D_2 ≟ C_3 ∧ A_2 ≟ B_3
o12_a: o_1 ∧ o_2 ∧ A_1 ≟ D_2 ∧ B_1 ≟ C_2
o12_b: o_1 ∧ o_2 ∧ B_1 ≟ A_2 ∧ C_1 ≟ D_2
poly1_1, poly1a_1, poly1b_1, poly1c_1, poly1d_1 = Polygon(A_1, B_1, C_1, D_1)
poly1_2, poly1a_2, poly1b_2, poly1c_2, poly1d_2 = Polygon(A_2, B_2, C_2, D_2)
Perimeter: 4 * n - 2 * (o12_a + o12_b + o12_c + o12_d + o13_a + o13_b + o13_c + o13_d + o14_a + o14_b + o14_c + o14_d + o15_a + o15_b + o15_c + o15_d + o16_a + o16_b + o16_c + o16_d + o17_a + o17_b + o17_c + o17_d + o18_a + o18_b + o18_c + o18_d + o19_a + o19_b + o19_c + o19_d + o23_a + o23_b + o23_c + o23_d + o24_a + o24_b + o24_c + o24_d + o25_a + o25_b + o25_c + o25_d + o26_a + o26_b + o26_c + o26_d + o27_a + o27_b + o27_c + o27_d + o28_a + o28_b + o28_c + o28_d + o29_a + o29_b + o29_c + o29_d + o34_a + o34_b + o34_c + o34_d + o35_a + o35_b + o35_c + o35_d + o36_a + o36_b + o36_c + o36_d + o37_a + o37_b + o37_c + o37_d + o38_a + o38_b + o38_c + o38_d + o39_a + o39_b + o39_c + o39_d + o45_a + o45_b + o45_c + o45_d + o46_a + o46_b + o46_c + o46_d + o47_a + o47_b + o47_c + o47_d + o48_a + o48_b + o48_c + o48_d + o49_a + o49_b + o49_c + o49_d + o56_a + o56_b + o56_c + o56_d + o57_a + o57_b + o57_c + o57_d + o58_a + o58_b + o58_c + o58_d + o59_a + o59_b + o59_c + o59_d + o67_a + o67_b + o67_c + o67_d + o68_a + o68_b + o68_c + o68_d + o69_a + o69_b + o69_c + o69_d + o78_a + o78_b + o78_c + o78_d + o79_a + o79_b + o79_c + o79_d + o89_a + o89_b + o89_c + o89_d)
poly1_3, poly1a_3, poly1b_3, poly1c_3, poly1d_3 = Polygon(A_3, B_3, C_3, D_3)
poly1_4, poly1a_4, poly1b_4, poly1c_4, poly1d_4 = Polygon(A_4, B_4, C_4, D_4)
poly1_5, poly1a_5, poly1b_5, poly1c_5, poly1d_5 = Polygon(A_5, B_5, C_5, D_5)
poly1_6, poly1a_6, poly1b_6, poly1c_6, poly1d_6 = Polygon(A_6, B_6, C_6, D_6)
poly1_7, poly1a_7, poly1b_7, poly1c_7, poly1d_7 = Polygon(A_7, B_7, C_7, D_7)
poly1_8, poly1a_8, poly1b_8, poly1c_8, poly1d_8 = Polygon(A_8, B_8, C_8, D_8)
poly1_9, poly1a_9, poly1b_9, poly1c_9, poly1d_9 = Polygon(A_9, B_9, C_9, D_9)
text2: "" + Perimeter + ""
a = false
B1 = 3
C1 = 4
D1 = 5
E1 = 6
F1 = 7
G1 = 8
H1 = 9