import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(br.readLine());
StringBuilder sb = new StringBuilder();
for(int i=0; i<T; i++) {
int N = Integer.parseInt(br.readLine());
sb.append('#').append(i+1).append(' ');
for(int j=1; j<=N; j++) {
sb.append(1).append('/').append(N).append(' ');
}
sb.append('\n');
}
System.out.print(sb.toString());
}
}