We know that, for a wire bent into a shape to form a polygon of n sides we have,
B=μ0i2Rtan(π/n)π/nsin(π/n)π/n
Now, if there is a n sided polygon i.e. it is nothing but a ring which is formed.
So, we can write,
B=μ0i2Rlimn→∞tan(π/n)π/nsin(π/n)π/n
But, limn→∞tan(π/n)π/nsin(π/n)π/n=1
i.e. B=μ0i2R