/**
 * This function takes in a list of numbers and a threshold value.
 * It returns a map with two keys - 'modulus' and 'others'.
 * The 'modulus' key contains a list of numbers from the input list
 * that are divisible by the threshold, while the 'others' key contains
 * a list of numbers that do not satisfy the divisibility condition.
 */
fun calculateModulus(numbers: List<Int>, threshold: Int): Map<String, List<Int>> {

    val modulusList = mutableListOf<Int>()
    val othersList = mutableListOf<Int>()

    for (num in numbers) {
        if (num % threshold == 0) {
            modulusList.add(num)
        } else {
            othersList.add(num)
        }
    }

    return mapOf("modulus" to modulusList, "others" to othersList)
}

// The code above calculates the modulus of each number in the input list.

// Now, let's create a function to analyze the results.
/**
 * This function takes in a list of numbers and a threshold value.
 * It returns a map with two keys - 'modulus' and 'others'.
 * The 'modulus' key contains a list of numbers from the input list
 * that are divisible by the threshold, while the 'others' key contains
 * a list of numbers that do not satisfy the divisibility condition.
 */
fun calculateModulus(numbers: List<Int>, threshold: Int): Map<String, List<Int>> {
/**
 * This function takes in a list of numbers and a threshold value.
 * It returns a map with two keys - 'modulus' and 'others'.
 * The 'modulus' key contains a list of numbers from the input list
 * that are divisible by the threshold, while the 'others' key contains
 * a list of numbers that do not satisfy the divisibility condition.
 */
fun calculateModulus(numbers: List<Int>, threshold: Int): Map<String, List<Int>> {

    val modulusList = mutableListOf<Int>()
    val othersList = mutableListOf<Int>()

    for (num in numbers) {
        if (num % threshold == 0) {
            modulusList.add(num)
        } else {
            othersList.add(num)
        }
    }

    return mapOf("modulus" to modulusList, "others" to othersList)
}

// The code above calculates the modulus of each number in the input list.

// Now, let's create a function to analyze the results.