How do I create a table like this? I find it very hard to create the zero-row and zero-column.
Edit: I am looking for a solution where a formula eg. Table or something else is being used. I can already create the table manually.
|
If it is only for display purposes, you could wrap the unwanted elements in The rules to create the numbers is pretty easy, but the empty elements are not consistent. I see it has something to do with the distance to the
|
|||||||
|
It's not clear why the sixes are included and without additional samples I see no point in guessing. Omitting that detail your table can be had with this:
$\begin{array}{cccccc} & 0 & 1 & 2 & 3 & 4 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 0 & 1 & 2 & 3 & \\ 2 & 0 & 2 & 4 & & \\ 3 & 0 & 3 & & & \\ 4 & 0 & & & & \end{array}$ I used terse coding tricks because that's how I enjoy these questions. |
||||
|
If this is an actual example and not a toy version of something you require, then hard to imagine why you need a creation rule and not just type the list explicitly. But having said that:
|
|||
|
This is a truncated multiplication table. You could use:
This yields: EDIT In order to provide a legitimate answer, I use the criterion from @halirutan code which knocks out the lower matrix elements. The correct result is achieved:
yielding:
|
|||||||
|