/**
 * Create a grid of divisions.
 *
 * Create a grid of divisions with the given number of rows and columns.
 * Each cell in the grid contains the result of a division operation.
 *
 * @param numRows The number of rows in the grid.
 * @param numColumns The number of columns in the grid.
 * @return A grid of divisions with the same number of rows and columns.
 */
fun divisionGrid(numRows: Int, numColumns: Int): List<List<Double>> {

    val grid = mutableListOf<List<Double>>()

    for (i in 0 until numRows) {
        val row = mutableListOf<Double>()
        for (j in 0 until numColumns) {
            row.add(i.toDouble() / (j + 1))  // Perform the division operation
        }
        grid.add(row)
    }

    return grid
}

// Example usage
/**
 * Create a grid of divisions.
 *
 * Create a grid of divisions with the given number of rows and columns.
 * Each cell in the grid contains the result of a division operation.
 *
 * @param numRows The number of rows in the grid.
 * @param numColumns The number of columns in the grid.
 * @return A grid of divisions with the same number of rows and columns.
 */
fun divisionGrid(numRows: Int, numColumns: Int): List<List<Double>> {
/**
 * Create a grid of divisions.
 *
 * Create a grid of divisions with the given number of rows and columns.
 * Each cell in the grid contains the result of a division operation.
 *
 * @param numRows The number of rows in the grid.
 * @param numColumns The number of columns in the grid.
 * @return A grid of divisions with the same number of rows and columns.
 */
fun divisionGrid(numRows: Int, numColumns: Int): List<List<Double>> {

    val grid = mutableListOf<List<Double>>()

    for (i in 0 until numRows) {
        val row = mutableListOf<Double>()
        for (j in 0 until numColumns) {
            row.add(i.toDouble() / (j + 1))  // Perform the division operation
        }
        grid.add(row)
    }

    return grid
}

// Example usage