u/Illustrious_Basis160

Building linear sequences using geometric shapes.

Building linear sequences using geometric shapes.

So, a few days ago I was doing my math curriculum. There is a chapter named 'Patterns'. Basically, about sequences and stuff. One interesting part about that was it said to show 5x+7 as a geometric pattern using simple geometric shapes. Well, the book didn't define what a 'simple geometric' shape counts as but using a guide and examples from the book I figured it's mainly squares and triangles with the same side length (unit length). Using those 2 shapes we had to build sequences. This got me thinking is there a general construction method I can use to build the linear sequence.

So, I had to define somethings from the start. These are the rules I came up with,

  1. Each new shape must be adjacent to the previous shape.
  2. No loops with shapes (I will get to that)

And other rules I think (I forgot the rules at the time of writing if I might remember whilst writing). So, the first question is what do we count from the shapes? We count the sides/sticks needed to make the final shape. From the picture you can see we only count the total lines. For a square (starting) the number of lines is 4. And for a starting triangle it's 3. For adding another square to the existing square, the total lines become 7 since 2 squares next to each other share 1 line. So, it should have been 4+4 but 1 overlap so 4+4-1=7. Same goes with a triangle.

Picture 1.1

Now let's actually get into some equations. So first of let,

x = total amount of squares

y = total amount of triangles

z = overlaps between those squares and triangles

So, since I counted for overlaps, I can easily come up the total number of lines to be 4x+3y-z

N shapes arranged in a tree shape has N-1 adjacent sides. So, if we only arranged in tree shape meaning every new shape is places next to the previous shape, we can easily set z=x+y-1 since x+y is the total amount of shapes. So, plugging it back in we get,

4x+3y-(x+y-1)

= 3x+2y+1

So, the total number of lines effectively reduces to 3x+2y+1.

So now that we have established that let's get to a linear sequence of a+nd. From this we can see a starting block a then adding another block d. So, we can solve for a starting shape by setting 3x+2y+1=a. Now for the common difference d at first you might also just solve for 3x+2y+1=d but that would be wrong. Why? Because we saw from before a shape with d lines actually contributes d-1 lines to the total count since 1 side overlaps (I specifically made the construction that way!!). So, we actually solve for 3x+2y+1=d+1 or 3x+2y=d.

Now of course this has some limitations.

First of all, I removed loops. What is a loop? For example if you get 4 squares and arrange them such that it makes a bigger square it would be a loop because according to my assumption that z=x+y-1 in that case z=4+0-1 (No triangles in the shape) which gives us 3 but the actual overlap is 4 sides.

https://preview.redd.it/7om6n9xhf42h1.png?width=1080&format=png&auto=webp&s=18579b4a63d10e79e7bd0af2d22b4a1e470dca60

And there are some numbers which I can't represent using this construction method. Specifically, a=2 and d=1 any sequence having those cannot be represented. Why? Frobenius Coin Problem. Using 2 and 3 we can represent every integer greater than (2)(3)-2-3=1. Hence, we can't show those numbers.

Well, you might be also wondering wait is a=1 representable? Surprisingly yes! I was also shocked at this the first time. For example 5x+1 here a=1 so we solve 3x+2y=0 meaning x=0,y=0 and we solve 3x+2y=5 or x=1,y=1 the first term is 5(1)+1=6 if we add one triangle and one square in a house shape we get 3+4-1=6 lines. The next term is 5(2)+1=11 if we add another house shape that would be 5 lines (since 1 overlaps) so the next shape would have 11 lines perfectly consistent!

Picture 1.3

Now what about sequences like 4x-3? To solve this we use an algebra trick 4x-3=4x-4+1=4(x-1)+1 let y=x-1 so 4y+1 we use our method on that sequence but be careful the indexes shifted by 1 so don't freak out if it didn't match one to one you need to account for the shift in index.

reddit.com
u/Illustrious_Basis160 — 3 days ago
▲ 6 r/maths+2 crossposts

So, I was tinkering around in Desmos. Then, I think I saw an interesting pattern. Basically, I took the function f(x)=x^2+1 and I used gcd(f(x),f(x+1)). I plotted both of the functions. I zoomed out a bit,

Graph 1.1

See how there is like a clear curve at the top of the gcd plot? My first instinct was like hmm that curve looks like the rotated version of f(x)=x^2+1 so I decided it to rotate it using the formula
sin(a)*x + cos(a)*y = (cos(a)*x-sin(a)*y)^2+1
At first I used the Desmos scroller thingy for the value of a. I noticed the plot wouldn't perfectly, so I thought of just containing that curve inside the parabola. After eyeballing and some trial and error I found that a=4.6-ish works the best (after research I found a=arctan(1/2) (in radians) is theoretically the better option)

Graph 1.2

See how the curve is like contained between the 2 branches of the parabola and it seems to be approaching the middle of the 2 branches asymptotically (kind of hard to check since Desmos kind of bugs out at larger scales).

And then I tried with another quadratic. This time f(x)=x^2+x+1.

Graph 1.3

It also seemed to work? Not sure everything kind of disappears at larger scales. The main this is I predict that for any general quadratic
ax^2+bx+c
The angle for the rotated parabola is arctan(1/2a) (in radians). I searched online but couldnt find any solution or proof of this or why this happens.

Does anyone have any idea on what could be causing this?

reddit.com
u/Illustrious_Basis160 — 25 days ago