Here's my (possibly bogus) derivation: Consider a n-dimensional cube of sides [itex]L[/itex]. Its "volume" is [itex]L^n[/itex]. Its "area" is [itex]2 n L^{n-1}[/itex]. (Why is that? Well, a one-dimensional version of a cube is just a line. Its border consists of 2 points. A two-dimensional cube is just a square. Its border consists of 4 lines. A three-dimensional cube is a regular cube. Its border consists of 6 squares. The general case is that a n-dimensional cube has a border consisting of 2 x n faces, of which is a (n-1)-dimensional cube.)
So now imagine a single little packet of light at the center of an n-dimensional cube (with a "surface" made out of mirrors). It just bounces back and forth between the faces. Let's consider the case where the light is traveling in the x-direction. Then immediately before bouncing off the "face" that is perpendicular to the x-direction, its momentum in the x-direction is [itex]p = E/c[/itex] (because the energy-momentum relationship for electromagnetic energy is E = pc). Immediately after bouncing off, the momentum is [itex]p = -E/c[/itex]. The change in momentum is then [itex]-2E/c[/itex]. That means that the packet of light imparts a momentum change of [itex]+2E/c[/itex] to the mirror. Since the packet has to travel from one side of the cube to the other between bounces, and it travels at speed [itex]c[/itex], these bounces happen once every [itex]L/c[/itex] units of time. So the average force imparted on the mirrors by the light packet is:
[itex]F = \frac{\delta p}{\delta t} = \frac{2E/c}{L/c} = 2E/L[/itex]
Since pressure is force per unit area, you calculate the average pressure as the force [itex]F[/itex] over the area [itex]A[/itex]:
[itex]P = \frac{F}{A} = \frac{2E/L}{2 n L^{n-1}} = \frac{E}{n L^n}[/itex]
Since the volume is given by [itex]V = L^n[/itex], we can write this as:
[itex]P = \frac{E}{n V}[/itex]
Since the energy density is [itex]u = E/V[/itex], this means:
[itex]P = \frac{u}{n}[/itex]