linear algebra (matrices) - challenging problem (determination of method/algorithm) I wonder about the following method/algortithm about square matrices $A_{n \times n}$ $\in$ $M_{n\times n}(\mathbb{K})$, where $\mathbb{K} $ $\in$ {$ \mathbb{R}, \mathbb{C}$ }.
Given certain value of determinant, propose method of constructing square matrix of any possible dimension with as least 0's as matrix's terms as possible.
In other words, let me give example:
I have determinant, let say, equal to 5. In what way could I construct matrix of arbitrary dimension (e.g. of dimension 6 x 6)?
To sum up, I wonder about method/algorithm, which enables to construct any square matrix associated with given determinant such that this matrix has as least 0's terms as possible.
By method/algorithm, I mean deterministic procedure, not a guess.
Any help very appreciated! 

Let $A=(a_{ij})_{1\leq i\leq j}$ where $$a_{ij}=\left\lbrace\begin{array}{lcl}1 &\text{if} & i\neq j & \text{or} & i=j=1\\2 &\text{if} & 1<i= j<n,  \\ x+1 &\text{if} & i= j=n,  \\\end{array}\right.$$ 
Then you can check that the determinant of $A$ is exactly $x$. For example, when $n=5$, $A$ is
$$
A=\left(\begin{array}{ccccc} 
1 & 1 & 1 & 1 & 1 \\
1 & 2 & 1 & 1 & 1 \\
1 & 1 & 2 & 1 & 1 \\
1 & 1 & 1 & 2 & 1 \\
1 & 1 & 1 & 1 & x+1 \\
\end{array}\right)
$$
As noted by user1551, when $x=-1$ we have the problem that $x+1$ becomes zero ; in this case, simply take the matrix for $x=1$ and interchange any two columns or rows in it. 
