I saw numerous problems in Brilliant where the users posted LaTex equations like the following:

\[ \begin{array} { l l l l l } & & A & B & C & D & E & F \\ \times & & & & & & & 4 \\ \hline & & F & E & D & C & B & A \\ \end{array} \]

Can anyone tell me how to make my own equation in this form?

I will be grateful!

## Comments

Sort by:

TopNewestIf you hover your mouse over the Latex image, you can see the code for it.

For problems, you can select "Toggle Latex" from the "Dot dot dot" menu, and that will allow you to see it directly and copy/paste it. For example, the latex code (properly spaced) is:

`\ begin{array} { l l l l l }`

`& & A & B & C & D & E & F \\`

`\times & & & & & & & 4 \\`

`\hline & & F & E & D & C & B & A \\`

`\end{array}`

What this means:

`& & A & B & C & D & E & F \\`

- That is telling you how to create the first line. Each & denotes a seperator.Log in to reply

@Calvin Lin Thank You Sir! But can you explain more clearly about the columns aligned? I tried to make my own equation code, but I'am confused about the number of separatos (&) and the number of columns aligned (the l's). They have a thing in common? For example: if I want to make a 3 column sum, where 2 columns have the numbers and the third column have a times sign. I wrote the code like the following, but it not appears correctly. What's my mistake?

\[\begin{array} { l l l } & & 1 & 2 \ \times & 5 & 0 \ \hline 6 & 0 & 0 \ \end{array}\] – Victor Paes Plinio · 2 years, 2 months ago

Log in to reply

`\\`

to end a line instead of just one`\`

. That did not display correctly in my original post, and I've edited it. – Calvin Lin Staff · 2 years, 2 months agoLog in to reply

will give

\[\begin{array} { l l l } & & 1 & 2 \\ \times & 5 & 0 \\ \hline 6 & 0 & 0 \\ \end{array}\]

Note that you have an additional & in the first line, which is why

`1 2`

appears off to the right. – Calvin Lin Staff · 2 years, 2 months agoLog in to reply

@Calvin Lin Thank you very much Sir! \(:)\)

\[\begin{array} { l l l l } & 1 & 1 & 1 \\ \times & & & 3 \\ \hline & 3 & 3 & 3 \\ \end{array}\] – Victor Paes Plinio · 2 years, 2 months ago

Log in to reply