I have decoded the logic but not able to implement

i have decoded the logic but not able to implement it , kindly help me with sample solution .

Thank you

Hey @1999atrijsharma
debug this code
I am using Mathmatics
Ncr+1 = ((N-r)/(r+1)) * ncr
import java.util.
;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();

	for(int i=0; i<n; i++){
			int val=1;
		for(int col =0; col<=i; col++){
			System.out.print(val+"\t");

val = val(i-col)/(col+1);
}
System.out.println();
}

}

}