main() { int j; float n, x; n = 3.; printf("n = %3.0f\n", n); x = 1/n; for (j = 1; j <= 20; j++) { printf("%3d %f\n", j, x); x = (n+1)*x - 1; } }