Formula and running time : I have spent so much time trying to find the formula for this code, but still nothing .. I know the running time but the question really is, what if n = 100 for example, how many line of output will this code print without tracing through ? So, if I found the exact formula, I would answer the question without tracing. This is the code 

      int i, j, k;
      
      for( i = 1; i <= n; i++ )
         for ( j = i+1; j <= n; j++ )
            for( k = j+1; k <= n; k++ )
            {
               System.out.println( i + " " + j + " " + k);
            }