Recall that y varies inversely with x if and only if exist a constant k such that:

Since g(n) varies inversely with n, we can set the following equation:

Now, we know that g(n)=13 when n=2, then:

Multiplying the above equation by 2 we get:

Therefore:

Setting g(n)=4 we get:

Multiplying the above equation by n we get:

Dividing the above equation by 4 we get:

Answer: n=6.5.