THE O(N) MODEL: CALCULATION OF THE EFFECTIVE POTENTIAL FOR ARBITRARY VALUES OF N