Let’s place the eight trigrams on a LuoShu square. First let’s associate the trigrams to a value according to their binary representation equivalent.
We need nine numbers and zero was not much in use when the LuoShu was designed. So let’s start counting from one and insert a taijitu in the middle.
The trigrams are now split in two groups that are negative image of each other. The negative image pairing is reinforced by the value associated to each trigram. The sum of each pair is ten.
Once placed according to a LuoShu pattern, the result is a LuoShu Bagua Square.