# Solving a system of linear equations stored in a table

I have a system of $n$ linear equations with an equal or smaller number of unknowns stored in a table. The variables are of the form $f[x_1,x_2,x_3]$. For example, the equations are:

f[1,1,1]= 2f[3,2,1] + 4f[2,1,1]
f[1,4,2] = 3f[1,3,1] + 3f[2,4,1] + 3ab
.....


I need to solve those equations for f[1,1,1], f[1,1,2],... in terms of a, b, ... and other constants.

Solve[f[i,j,k]==0, {f[i,j,k], {i,m}, {j,m}, {k,m}}] doesn't work.

Any help is appreciated.

ClearAll[f]

• Thanks. Is there a way of storing the solution as the variables' values? For example, f[5] -> 8 so f[5] will have a value of 8 and so on? – Bran Nov 18 '17 at 22:54
• @Subzero-273K Yes, you can ReplaceAll[solns, {Rule -> Set}], but generally it is better not to do this. – Alan Nov 19 '17 at 16:04