I'm new to Mathematica but have been trying to write a code that will define new variables based off of variables preset by a user.
I'm allowing them to define a variable pij where $i=3,...,(n-1)$ (where $n$ is also specified by the user) and $j=0,1,2,3$.
i.e, $p23=1/5$, $p42=4$ etc;
I would like to define a new variable,
p20 = Sum[Product[pij, {i, 2, (n - 1), 1}], {j, 1, 3, 1}]
where it would recall the variables set beforehand to perform the sum and product calculations. Any tips?