void permutation(int k, int n, int a[]) { int i = 0; if (k == n - 1) { while(i