Monday, October 19, 2020

Constructing a magic square

 When constructing the magic square I decided to break it down into several steps otherwise the dask was a bit overwhelming. 




Attempt #1

As you can see for attempt #1 I decided to tackle the top row first in my head I went through going 1,2,3,4... etc. through the table and saw that it would not work leading me to put 1 in the middle column as I figured it would be easy to work downwards and 8/6 on the ends as they were easily divided by 2.

Attempt #2 

For attempt 2 I worked down from 1 as it was quite simple I used 5 in the middle as I knew I could use 2 in the bottom right to make 15 with the 8 and that 9 at the bottom would make 15 down. 


Attempt #3

I decided to fill in the bottom as I could finish off the diagonal as well I knew 4 in the bottom left would make 15 leaving me with 2 in the bottom right ot make 15 across and diagonally both ways. 


Attempt #4

The easiest attempt I only had 3 and 7 left and they fit perfectly on the left and right respectively creating 15 across each column and row and of course diagonally 

1 comment:

Assignment 3: History of Coding

Our group's roadmap for the History of Coding and Computer Algorithms is below (the link is more useful, but the screenshot is the roadm...