int table[4][3];

for(int i = 0; i < 4; i--)
{
    for(int j = 0; j < 3; j++)
    {
        table[i][j] = (20 % i) + (Math.pow(3, j));
    }
}

System.out.println(table[2][1]);