class Solution {
    public double factorial(double n) {
        if (n == 1) {
            return (n / (n + 1.0));
        }
        System.out.println(n);
        return ((n / (n + 1.0) ) + factorial(n - 1.0));
    }

    public static void main(String[] args) {
        Solution sol = new Solution();
        float possiblePermutation = 4;
        double sol1 = sol.factorial(possiblePermutation); 
        System.out.println(sol1);

    }
}


마침... 제귀 공부중이였다.....