task_name
stringclasses
250 values
description
stringclasses
227 values
prompt
stringlengths
281
781
ground_truth
stringlengths
8
100
input
stringlengths
2
40
target
stringlengths
2
60
c003
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5] [5, 6, 2, 3, 9, 7, 1, 0] -> [1] [9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6] [1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3] [1, 0, 9, 5, 4, 2, 8] -> [8] [4, 5, 8, 3, 1, 6, 0] -> [0] [8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6] [1, 7, 9, 4, 6, 2, 0] -> [0] Questions: [7, 9, 1, 4, 6, 0, 2] -> ? Answer:
[7, 9, 1, 4, 6, 0, 2] -> [2]
[7, 9, 1, 4, 6, 0, 2]
[2]
c048
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 8, 7, 9, 2, 5, 1, 0, 6] -> [4] [7, 6, 5, 9, 0, 4, 2, 3] -> [7] [9, 7, 1] -> [9] [7, 8, 1, 9, 6, 2, 4, 5, 3] -> [7] [9, 4, 0, 8, 6, 7, 5, 2, 3] -> [9] [7, 2, 4, 5] -> [7] [0, 5, 2, 8, 7, 6, 4, 1] -> [0] [1, 8, 7, 9, 0, 3] -> [1] Questions: [4, 2, 7, 8, 5, 1, 9] -> ? Answer:
[4, 2, 7, 8, 5, 1, 9] -> [4]
[4, 2, 7, 8, 5, 1, 9]
[4]
c035
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 1, 0] -> [0, 1, 5, 0] [7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8] [0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7] [4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4, 6, 9] [1, 1, 9, 1, 8, 7] -> [1, 9, 1, 1, 8, 7] [3, 1, 1, 6] -> [6, 1, 1, 3] [3, 4, 4, 0, 5, 9, 9, 7, 5] -> [0, 4, 4, 3, 5, 9, 9, 7, 5] [2, 5, 1, 2, 8, 6] -> [2, 1, 5, 2, 8, 6] Questions: [8, 8, 0, 8, 5] -> ? Answer:
[8, 8, 0, 8, 5] -> [8, 0, 8, 8, 5]
[8, 8, 0, 8, 5]
[8, 0, 8, 8, 5]
c212
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert 3 at index 3, 3 times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 25, 22] -> [5, 25, 3, 3, 3, 22] [46, 59, 52] -> [46, 59, 3, 3, 3, 52] [99, 41, 82, 85, 7] -> [99, 41, 3, 3, 3, 82, 85, 7] [53, 54, 71] -> [53, 54, 3, 3, 3, 71] [33, 55, 28, 3, 35] -> [33, 55, 3, 3, 3, 28, 3, 35] [1, 68, 5, 23] -> [1, 68, 3, 3, 3, 5, 23] [4, 66, 77, 89, 81, 86, 98] -> [4, 66, 3, 3, 3, 77, 89, 81, 86, 98] [66, 36, 8, 18] -> [66, 36, 3, 3, 3, 8, 18] Questions: [13, 8, 72, 46, 0] -> ? Answer:
[13, 8, 72, 46, 0] -> [13, 8, 3, 3, 3, 72, 46, 0]
[13, 8, 72, 46, 0]
[13, 8, 3, 3, 3, 72, 46, 0]
c104
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 19] -> [19] [2, 40, 85, 46, 9] -> [85] [1, 22, 88, 12, 8, 81, 9, 16, 48, 18] -> [88] [24, 60, 4] -> [60] [80, 1, 50, 49, 5, 48, 63] -> [80] [22, 29, 65, 20, 6] -> [65] [0, 8, 3, 55, 1, 86, 7, 56] -> [86] [3, 43, 39] -> [43] Questions: [41, 32] -> ? Answer:
[41, 32] -> [41]
[41, 32]
[41]
c210
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52] [1, 22] -> [22, 1, 22] [4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83] [5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, 80] [2, 2, 12, 7, 2, 7, 23, 23, 28] -> [2, 28, 12, 7, 23, 28] [3, 44, 74, 44, 1, 0, 0] -> [3, 44, 0, 74, 1, 0] [2, 1, 66] -> [2, 66, 1, 66] [3, 7, 8, 5] -> [3, 7, 5, 8, 5] Questions: [5, 86, 39, 52, 88, 6, 86, 0, 3, 86] -> ? Answer:
[5, 86, 39, 52, 88, 6, 86, 0, 3, 86] -> [5, 86, 39, 52, 86, 88, 6, 0, 3]
[5, 86, 39, 52, 88, 6, 86, 0, 3, 86]
[5, 86, 39, 52, 86, 88, 6, 0, 3]
c211
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse input; insert elements 4 and 5 so they are fourth and third from last, respectively".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 9, 6, 5, 71, 67] -> [67, 71, 5, 5, 71, 6, 9, 2] [43, 77, 6, 1, 80, 5, 8, 57] -> [57, 8, 5, 80, 1, 1, 80, 6, 77, 43] [82, 9, 57, 3, 22, 31] -> [31, 22, 3, 3, 22, 57, 9, 82] [23, 19, 7, 90, 12, 3] -> [3, 12, 90, 90, 12, 7, 19, 23] [43, 0, 2, 51, 48, 5, 1, 6] -> [6, 1, 5, 48, 51, 51, 48, 2, 0, 43] [5, 39, 42, 3, 1, 4, 51] -> [51, 4, 1, 3, 3, 1, 42, 39, 5] [0, 91, 68, 5, 18, 11] -> [11, 18, 5, 5, 18, 68, 91, 0] [51, 7, 3, 51, 9, 15, 32] -> [32, 15, 9, 51, 51, 9, 3, 7, 51] Questions: [77, 68, 21, 80, 6, 69, 42, 9] -> ? Answer:
[77, 68, 21, 80, 6, 69, 42, 9] -> [9, 42, 69, 6, 80, 80, 6, 21, 68, 77]
[77, 68, 21, 80, 6, 69, 42, 9]
[9, 42, 69, 6, 80, 80, 6, 21, 68, 77]
c111
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat the largest element N times, where N is the smallest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [90, 5] -> [90, 90, 90, 90, 90] [61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61] [10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91] [62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88] [38, 39, 1] -> [39] [6, 62] -> [62, 62, 62, 62, 62, 62] [0, 30, 25, 57, 2, 5] -> [] Questions: [81, 50, 30, 0, 69, 6, 65] -> ? Answer:
[81, 50, 30, 0, 69, 6, 65] -> []
[81, 50, 30, 0, 69, 6, 65]
[]
c030
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the last two elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 8, 9, 3, 4, 5, 1, 2] -> [7, 8, 9, 3, 4, 5] [7, 4, 3, 0, 9, 6, 8, 2] -> [7, 4, 3, 0, 9, 6] [4, 0, 1, 3, 2, 5, 7] -> [4, 0, 1, 3, 2] [8, 6] -> [] [9, 5, 2, 0, 1] -> [9, 5, 2] [7, 5, 9, 4, 8, 1, 0, 6, 2] -> [7, 5, 9, 4, 8, 1, 0] [5, 6, 7, 0, 4, 9] -> [5, 6, 7, 0] [6, 4, 0, 7] -> [6, 4] Questions: [0, 5, 1, 9, 6, 2] -> ? Answer:
[0, 5, 1, 9, 6, 2] -> [0, 5, 1, 9]
[0, 5, 1, 9, 6, 2]
[0, 5, 1, 9]
c071
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6] -> [2, 8] [0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3] [2] -> [4] [3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4] [1, 6] -> [3, 8] [1, 2] -> [3, 4] [1] -> [3] [5, 3, 0, 1] -> [7, 5, 2, 3] Questions: [0, 1, 3, 6, 7] -> ? Answer:
[0, 1, 3, 6, 7] -> [2, 3, 5, 8, 9]
[0, 1, 3, 6, 7]
[2, 3, 5, 8, 9]
c207
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element-wise sum of the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [56, 9, 72, 7] -> [63, 81, 81, 63] [2, 5, 6, 59, 93, 1] -> [3, 98, 65, 65, 98, 3] [21, 39, 5, 9, 40, 4] -> [25, 79, 14, 14, 79, 25] [7, 37, 64] -> [71, 74, 71] [8, 4, 45] -> [53, 8, 53] [60, 4, 2] -> [62, 8, 62] [0, 61, 89, 3, 6, 65] -> [65, 67, 92, 92, 67, 65] [0, 42, 8, 27, 86] -> [86, 69, 16, 69, 86] Questions: [31, 34, 7, 57, 9] -> ? Answer:
[31, 34, 7, 57, 9] -> [40, 91, 14, 91, 40]
[31, 34, 7, 57, 9]
[40, 91, 14, 91, 40]
c178
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements followed by an even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 65, 97, 2, 5, 44] -> [97, 5] [31, 0, 72, 85, 5, 74, 8] -> [31, 0, 5, 74] [2, 81, 0, 20, 44, 67, 6, 56] -> [81, 0, 20, 67, 6] [25, 19, 93, 73, 0, 32] -> [73, 0] [5, 48, 89, 68, 30, 14, 42, 8, 90] -> [5, 89, 68, 30, 14, 42, 8] [28, 62, 76, 48, 56, 12, 6, 72, 8, 76] -> [28, 62, 76, 48, 56, 12, 6, 72, 8] [5, 4, 57, 95, 38, 6, 47, 96, 10] -> [5, 95, 38, 47, 96] [3, 6, 86, 98, 67, 34, 1, 0] -> [3, 6, 86, 67, 1] Questions: [3, 75, 0, 4, 25, 66] -> ? Answer:
[3, 75, 0, 4, 25, 66] -> [75, 0, 25]
[3, 75, 0, 4, 25, 66]
[75, 0, 25]
c037
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 0, 2, 1, 3, 6, 8, 9, 7, 5] -> [4, 0, 2, 1, 3, 6, 8, 9, 7, 5, 3] [2, 8, 7, 5, 0, 4, 6, 1] -> [2, 8, 7, 5, 0, 4, 6, 1, 3] [5, 3, 4, 1, 9] -> [5, 3, 4, 1, 9, 3] [6, 5, 0] -> [6, 5, 0, 3] [7, 1] -> [7, 1, 3] [4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3] [0, 8] -> [0, 8, 3] [3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3] Questions: [0, 9] -> ? Answer:
[0, 9] -> [0, 9, 3]
[0, 9]
[0, 9, 3]
c170
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 1 and last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 66, 34, 8, 0, 9, 32, 39, 23] -> [1, 23] [9, 89, 17, 24, 30, 5, 3, 53, 43] -> [9, 43] [93, 91, 99, 3, 4, 35] -> [93, 35] [5, 1, 3, 47, 86, 57, 38] -> [5, 38] [98, 94, 1, 31, 7, 29, 8] -> [98, 8] [10, 8, 7, 43, 1, 11, 50, 12, 0, 95] -> [10, 95] [28, 22, 2, 31, 5, 27] -> [28, 27] [81, 2, 4, 46, 6, 0, 8, 19, 80] -> [81, 80] Questions: [93, 45, 22, 59, 4, 61, 0, 7, 9] -> ? Answer:
[93, 45, 22, 59, 4, 61, 0, 7, 9] -> [93, 9]
[93, 45, 22, 59, 4, 61, 0, 7, 9]
[93, 9]
c108
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 83] -> [86] [10, 0, 59, 5, 1, 9, 4] -> [88] [14, 4, 12] -> [30] [6, 0, 3, 82] -> [91] [5, 7, 4, 2] -> [18] [] -> [0] [62] -> [62] [22, 6, 1] -> [29] Questions: [3, 42, 2] -> ? Answer:
[3, 42, 2] -> [47]
[3, 42, 2]
[47]
c014
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but elements 3 through 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 6, 1, 9] -> [1, 9] [3, 0] -> [] [8, 1, 6, 9, 7, 2, 3] -> [6, 9, 7, 2, 3] [1, 9, 7, 3, 0, 5, 8, 6] -> [7, 3, 0, 5, 8] [3, 0, 9, 2] -> [9, 2] [3, 9, 7, 4, 6] -> [7, 4, 6] [2, 5, 1, 8] -> [1, 8] [8, 1, 5, 2] -> [5, 2] Questions: [8, 7, 4, 1, 2, 0] -> ? Answer:
[8, 7, 4, 1, 2, 0] -> [4, 1, 2, 0]
[8, 7, 4, 1, 2, 0]
[4, 1, 2, 0]
c121
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [99, 62, 65, 0, 95] -> [95] [6, 8, 39] -> [39] [38, 2] -> [2] [56, 65, 74] -> [74] [19, 32, 3, 78, 41, 51, 8, 80] -> [80] [3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27] [36, 22, 3, 55, 23] -> [23] [98, 65, 84] -> [84] Questions: [30, 35, 4, 67, 8, 49] -> ? Answer:
[30, 35, 4, 67, 8, 49] -> [49]
[30, 35, 4, 67, 8, 49]
[49]
c055
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6] [4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0] [3, 8, 0, 7] -> [0, 7, 3, 8] [3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4] [0, 3, 7, 1, 5, 8, 9, 6, 4, 2] -> [7, 1, 0, 3, 5, 8, 9, 6, 4, 2] [7, 1, 8, 0, 3, 4, 9] -> [8, 0, 7, 1, 3, 4, 9] [9, 4] -> [9, 4] [9, 6, 8, 7, 5, 0, 1, 4] -> [8, 7, 9, 6, 5, 0, 1, 4] Questions: [0, 5, 8] -> ? Answer:
[0, 5, 8] -> [8, 0, 5]
[0, 5, 8]
[8, 0, 5]
c071
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6] -> [2, 8] [0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3] [2] -> [4] [3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4] [1, 6] -> [3, 8] [1, 2] -> [3, 4] [1] -> [3] [5, 3, 0, 1] -> [7, 5, 2, 3] Questions: [7, 6, 0, 3] -> ? Answer:
[7, 6, 0, 3] -> [9, 8, 2, 5]
[7, 6, 0, 3]
[9, 8, 2, 5]
c249
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; give element 1 of each sublist".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [66, 0, 66, 0, 66, 1, 1, 78, 67, 8] -> [66, 66, 66] [75, 10, 0, 52, 0, 75] -> [75, 52, 75] [96, 6, 2, 96, 0, 14, 0, 2] -> [96, 14, 2] [1, 2, 1, 13, 0, 13, 2, 0, 13] -> [1, 13, 13] [76, 80, 39, 0, 26, 26, 26, 8, 64, 13] -> [76, 26] [8, 7, 0, 16, 16, 2, 0, 43, 43, 54] -> [8, 16, 43] [4, 3, 2, 0, 8, 28, 28, 47, 3, 49] -> [4, 8] [74, 74, 74, 68, 68, 68, 68, 74, 68] -> [74] Questions: [96, 0, 99, 79, 6, 7, 0, 1] -> ? Answer:
[96, 0, 99, 79, 6, 7, 0, 1] -> [96, 99, 1]
[96, 0, 99, 79, 6, 7, 0, 1]
[96, 99, 1]
c038
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 1, 5] -> [4, 1, 5, 9] [1, 4, 8, 2, 3, 5, 9, 0, 7, 6] -> [1, 4, 8, 2, 3, 5, 9, 0, 7, 6, 9] [2, 6] -> [2, 6, 9] [4, 6, 1, 0, 5, 8] -> [4, 6, 1, 0, 5, 8, 9] [2, 5, 3, 0, 6, 8, 1, 9] -> [2, 5, 3, 0, 6, 8, 1, 9, 9] [6, 1, 4, 5, 8] -> [6, 1, 4, 5, 8, 9] [3, 8, 9, 7, 5, 6, 1, 4] -> [3, 8, 9, 7, 5, 6, 1, 4, 9] [6, 3, 2, 0] -> [6, 3, 2, 0, 9] Questions: [] -> ? Answer:
[] -> [9]
[]
[9]
c216
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order by tens digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [11, 42, 99, 33, 85, 1] -> [1, 11, 33, 42, 85, 99] [17, 50, 9, 2, 60, 6, 3] -> [9, 2, 6, 3, 17, 50, 60] [32, 55, 6, 35, 2, 70, 5] -> [6, 2, 5, 32, 35, 55, 70] [5, 16, 78, 30] -> [5, 16, 30, 78] [81, 4, 44, 77, 2] -> [4, 2, 44, 77, 81] [64, 1, 54, 55, 53, 50] -> [1, 54, 55, 53, 50, 64] [57, 47, 46, 72] -> [47, 46, 57, 72] [82, 46, 7, 38, 61] -> [7, 38, 46, 61, 82] Questions: [3, 71, 98, 9, 0] -> ? Answer:
[3, 71, 98, 9, 0] -> [3, 9, 0, 71, 98]
[3, 71, 98, 9, 0]
[3, 9, 0, 71, 98]
c206
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose value is between the first two elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [43, 2, 9, 4, 3] -> [9, 4, 3] [85, 4, 89, 58, 54, 2, 6, 2, 85] -> [58, 54, 6] [98, 0, 5, 7, 12] -> [5, 7, 12] [80, 91, 81, 4, 88, 9, 53, 84] -> [81, 88, 84] [90, 3, 86, 85, 56, 18] -> [86, 85, 56, 18] [86, 1, 73, 8, 85, 9, 0, 42] -> [73, 8, 85, 9, 42] [75, 7, 9, 5, 48, 2, 8, 21] -> [9, 48, 8, 21] [29, 76, 62, 14, 4, 67, 89, 1, 88, 50] -> [62, 67, 50] Questions: [99, 91, 5, 96, 96, 96] -> ? Answer:
[99, 91, 5, 96, 96, 96] -> [96, 96, 96]
[99, 91, 5, 96, 96, 96]
[96, 96, 96]
c196
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [17, 38, 82], input, and [1, 55, 27]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [22] -> [17, 38, 82, 22, 1, 55, 27] [2, 0, 73, 50] -> [17, 38, 82, 2, 0, 73, 50, 1, 55, 27] [12, 94, 98] -> [17, 38, 82, 12, 94, 98, 1, 55, 27] [36, 1, 78, 8, 0] -> [17, 38, 82, 36, 1, 78, 8, 0, 1, 55, 27] [35, 4, 0, 64, 1] -> [17, 38, 82, 35, 4, 0, 64, 1, 1, 55, 27] [7] -> [17, 38, 82, 7, 1, 55, 27] [14, 77, 52, 70, 29] -> [17, 38, 82, 14, 77, 52, 70, 29, 1, 55, 27] [61] -> [17, 38, 82, 61, 1, 55, 27] Questions: [43, 2, 92] -> ? Answer:
[43, 2, 92] -> [17, 38, 82, 43, 2, 92, 1, 55, 27]
[43, 2, 92]
[17, 38, 82, 43, 2, 92, 1, 55, 27]
c194
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input; prepend and append the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7] [74, 1, 24] -> [3, 24, 1, 74, 3] [94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8] [6] -> [1, 6, 1] [53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7] [4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10] [92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7] [21] -> [1, 21, 1] Questions: [7, 4, 62, 58, 33, 3, 9, 82, 67] -> ? Answer:
[7, 4, 62, 58, 33, 3, 9, 82, 67] -> [9, 67, 82, 9, 3, 33, 58, 62, 4, 7, 9]
[7, 4, 62, 58, 33, 3, 9, 82, 67]
[9, 67, 82, 9, 3, 33, 58, 62, 4, 7, 9]
c139
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all occurrences of the smallest and largest elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 60, 23, 4, 89, 0, 3, 9, 60, 77] -> [2, 60, 23, 4, 3, 9, 60, 77] [72, 60, 6, 1, 27, 88, 8, 53, 90] -> [72, 60, 6, 27, 88, 8, 53] [68, 5, 0, 10, 2, 68, 3] -> [5, 10, 2, 3] [71, 6, 16, 19, 17, 81, 9, 60] -> [71, 16, 19, 17, 9, 60] [29, 41, 3, 1, 6, 44, 53, 9, 28] -> [29, 41, 3, 6, 44, 9, 28] [8, 15, 31, 48, 28, 5, 0, 70] -> [8, 15, 31, 48, 28, 5] [14, 14, 14] -> [] [39, 39, 39, 5, 7, 11, 3, 35] -> [5, 7, 11, 35] Questions: [2, 8, 5, 7, 97, 1, 62, 1] -> ? Answer:
[2, 8, 5, 7, 97, 1, 62, 1] -> [2, 8, 5, 7, 62]
[2, 8, 5, 7, 97, 1, 62, 1]
[2, 8, 5, 7, 62]
c161
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M + the input length - M’s index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40, 5, 83, 3, 29, 8] -> [45, 9, 86, 5, 30, 8] [40, 4, 83, 6, 5, 61, 9] -> [46, 9, 87, 9, 7, 62, 9] [0, 87, 50, 11, 7, 72] -> [5, 91, 53, 13, 8, 72] [4, 6, 46, 96, 1, 9] -> [9, 10, 49, 98, 2, 9] [44, 4, 24, 95, 92, 33, 6] -> [50, 9, 28, 98, 94, 34, 6] [80, 5, 49, 2, 21, 0, 32] -> [86, 10, 53, 5, 23, 1, 32] [19, 28, 34, 16, 1, 51] -> [24, 32, 37, 18, 2, 51] [1, 9, 2, 89, 21, 64, 11, 71, 15, 7] -> [10, 17, 9, 95, 26, 68, 14, 73, 16, 7] Questions: [75, 3, 0, 5, 7, 2, 9, 6, 45] -> ? Answer:
[75, 3, 0, 5, 7, 2, 9, 6, 45] -> [83, 10, 6, 10, 11, 5, 11, 7, 45]
[75, 3, 0, 5, 7, 2, 9, 6, 45]
[83, 10, 6, 10, 11, 5, 11, 7, 45]
c239
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of repetitions in the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [93, 94, 7, 29, 36, 9, 1, 5, 94, 2] -> [1] [88, 4, 7, 49, 5, 49, 2] -> [1] [0, 88, 7, 2, 88] -> [1] [86, 4, 2, 3, 66, 11, 89] -> [0] [9, 74] -> [0] [9, 48, 5, 5, 9, 5, 48, 41, 5] -> [5] [60, 3, 8, 6, 95, 60, 15, 64, 45] -> [1] [54, 7, 72, 6, 64, 24, 1, 19, 95] -> [0] Questions: [84, 3, 6, 27, 25, 27, 93, 61] -> ? Answer:
[84, 3, 6, 27, 25, 27, 93, 61] -> [1]
[84, 3, 6, 27, 25, 27, 93, 61]
[1]
c099
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all elements whose value < 50".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 70, 6, 1, 72, 5, 86, 58, 61] -> [70, 72, 86, 58, 61] [9, 81, 8, 65, 28, 52, 54, 7] -> [81, 65, 52, 54] [32, 68, 33, 7, 21] -> [68] [6, 14, 3] -> [] [85, 76, 66, 73, 89, 74, 16, 64, 1, 9] -> [85, 76, 66, 73, 89, 74, 64] [63, 29, 50, 3, 4, 5] -> [63, 50] [23, 86, 11] -> [86] [8, 97, 89, 2, 95, 4, 68, 71, 61] -> [97, 89, 95, 68, 71, 61] Questions: [77, 53, 0, 78, 12, 42, 92] -> ? Answer:
[77, 53, 0, 78, 12, 42, 92] -> [77, 53, 78, 92]
[77, 53, 0, 78, 12, 42, 92]
[77, 53, 78, 92]
c036
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1] [9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0] [7, 2, 0, 7] -> [7, 0, 2, 7] [4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1] [0, 7, 5, 2, 1, 8, 6, 9] -> [0, 5, 7, 2, 1, 8, 6, 9] [6, 7, 8, 1, 0, 2, 4] -> [1, 7, 8, 6, 0, 2, 4] [1, 7, 4, 5, 8, 9] -> [1, 4, 7, 5, 8, 9] [1, 1, 0, 7, 6] -> [1, 0, 1, 7, 6] Questions: [6, 2, 3, 4, 0, 7, 5, 9, 1, 8] -> ? Answer:
[6, 2, 3, 4, 0, 7, 5, 9, 1, 8] -> [4, 2, 3, 6, 0, 7, 5, 9, 1, 8]
[6, 2, 3, 4, 0, 7, 5, 9, 1, 8]
[4, 2, 3, 6, 0, 7, 5, 9, 1, 8]
c105
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate all but the last element with all but the first element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [49, 11, 73, 7] -> [49, 11, 73, 11, 73, 7] [3, 81, 35, 26] -> [3, 81, 35, 81, 35, 26] [6, 8, 5] -> [6, 8, 8, 5] [47, 45, 73] -> [47, 45, 45, 73] [62, 4, 8, 75, 2, 19] -> [62, 4, 8, 75, 2, 4, 8, 75, 2, 19] [39, 61, 49, 63, 89] -> [39, 61, 49, 63, 61, 49, 63, 89] [59, 65, 90, 9] -> [59, 65, 90, 65, 90, 9] [2, 20, 8, 28, 17, 88] -> [2, 20, 8, 28, 17, 20, 8, 28, 17, 88] Questions: [6, 78, 8] -> ? Answer:
[6, 78, 8] -> [6, 78, 78, 8]
[6, 78, 8]
[6, 78, 78, 8]
c132
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 4, 44, 78] -> [1, 4, 78] [7, 34, 4, 59, 45] -> [7, 34, 59, 45] [6, 78, 9, 56, 10, 7, 8] -> [6, 78, 56, 10, 7, 8] [64, 31, 6, 28, 46] -> [64, 31, 28, 46] [42, 21, 31, 2, 7, 3, 1, 9] -> [42, 21, 2, 7, 3, 1, 9] [31, 9, 3, 72] -> [31, 9, 72] [8, 93, 1, 7, 81, 0] -> [8, 93, 7, 81, 0] [44, 0, 91, 3, 50, 86] -> [44, 0, 3, 50, 86] Questions: [28, 71, 0, 95, 8, 5, 94] -> ? Answer:
[28, 71, 0, 95, 8, 5, 94] -> [28, 71, 95, 8, 5, 94]
[28, 71, 0, 95, 8, 5, 94]
[28, 71, 95, 8, 5, 94]
c133
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 2 through 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 95, 72, 3, 1, 42, 4] -> [28, 42, 4] [8, 38, 4, 57, 88, 20, 36, 68] -> [8, 20, 36, 68] [89, 6, 16, 88, 4, 47] -> [89, 47] [9, 94, 8, 44, 24, 7, 87, 0, 89] -> [9, 7, 87, 0, 89] [65, 0, 82, 93, 42, 38, 7, 5] -> [65, 38, 7, 5] [59, 8, 86, 6, 96, 16, 4] -> [59, 16, 4] [96, 2, 44, 1, 35, 4] -> [96, 4] [87, 83, 3, 0, 19, 14, 9, 99, 61, 5] -> [87, 14, 9, 99, 61, 5] Questions: [4, 7, 58, 30, 78, 11, 41, 16, 3] -> ? Answer:
[4, 7, 58, 30, 78, 11, 41, 16, 3] -> [4, 11, 41, 16, 3]
[4, 7, 58, 30, 78, 11, 41, 16, 3]
[4, 11, 41, 16, 3]
c140
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 2 with a 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58] [36, 90] -> [36, 9] [16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81] [67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26] [35, 51, 6] -> [35, 9, 6] [9, 1] -> [9, 9] [1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79] [49, 55, 78, 3] -> [49, 9, 78, 3] Questions: [72, 95] -> ? Answer:
[72, 95] -> [72, 9]
[72, 95]
[72, 9]
c224
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the last element, followed by element 1, followed by the second to last element, followed by element 2, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [15, 96, 14, 1, 0, 57, 5] -> [5, 0, 14, 15, 96, 1, 57] [64, 0, 78, 6, 1, 47, 5, 9] -> [9, 47, 6, 0, 64, 78, 1, 5] [6, 35, 1, 40, 55, 62, 58, 15] -> [15, 62, 40, 35, 6, 1, 55, 58] [12, 6, 9, 36, 7, 8, 66, 4, 0] -> [0, 66, 7, 9, 12, 6, 36, 8, 4] [75, 72, 67, 8, 13, 5, 63, 1] -> [1, 5, 8, 72, 75, 67, 13, 63] [7, 45, 37, 14, 24, 21, 5, 34, 39, 3] -> [3, 34, 21, 14, 45, 7, 37, 24, 5, 39] [1, 11, 7, 82, 31, 88, 35, 51] -> [51, 88, 82, 11, 1, 7, 31, 35] [4, 45, 66, 64, 47] -> [47, 66, 4, 45, 64] Questions: [34, 36, 0, 42, 73, 89] -> ? Answer:
[34, 36, 0, 42, 73, 89] -> [89, 42, 36, 34, 0, 73]
[34, 36, 0, 42, 73, 89]
[89, 42, 36, 34, 0, 73]
c232
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "mean value of the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [60, 45, 24] -> [43] [72, 98, 43] -> [71] [32, 76, 3] -> [37] [13, 3, 6, 4] -> [6] [8, 37, 46, 7] -> [24] [3, 48, 8] -> [19] [90, 4, 1, 13, 2] -> [22] [4, 22, 93, 81, 8] -> [41] Questions: [14, 61, 77, 70] -> ? Answer:
[14, 61, 77, 70] -> [55]
[14, 61, 77, 70]
[55]
c157
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element followed by 0 if even or 1 if odd, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 46, 19, 20, 59, 8, 0] -> [31, 1, 46, 0, 19, 1, 20, 0, 59, 1, 8, 0, 0, 0] [63, 41, 83, 75, 7, 40, 3] -> [63, 1, 41, 1, 83, 1, 75, 1, 7, 1, 40, 0, 3, 1] [72, 24, 4, 3, 99, 74] -> [72, 0, 24, 0, 4, 0, 3, 1, 99, 1, 74, 0] [8, 5, 39, 96, 30, 92, 2] -> [8, 0, 5, 1, 39, 1, 96, 0, 30, 0, 92, 0, 2, 0] [3, 71, 9, 7, 26, 56] -> [3, 1, 71, 1, 9, 1, 7, 1, 26, 0, 56, 0] [68, 5, 48, 72, 4, 90, 73] -> [68, 0, 5, 1, 48, 0, 72, 0, 4, 0, 90, 0, 73, 1] [85, 21, 9, 3, 27, 78, 5] -> [85, 1, 21, 1, 9, 1, 3, 1, 27, 1, 78, 0, 5, 1] [70, 1, 28, 0, 7, 17] -> [70, 0, 1, 1, 28, 0, 0, 0, 7, 1, 17, 1] Questions: [1, 47, 7, 74, 14, 3] -> ? Answer:
[1, 47, 7, 74, 14, 3] -> [1, 1, 47, 1, 7, 1, 74, 0, 14, 0, 3, 1]
[1, 47, 7, 74, 14, 3]
[1, 1, 47, 1, 7, 1, 74, 0, 14, 0, 3, 1]
c195
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98] [9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7] [14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54] [9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5] [4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81] [85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47] [50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74] [24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80] Questions: [24, 62, 78, 80, 73, 8, 90] -> ? Answer:
[24, 62, 78, 80, 73, 8, 90] -> [24, 23, 68, 42, 99, 71, 90]
[24, 62, 78, 80, 73, 8, 90]
[24, 23, 68, 42, 99, 71, 90]
c070
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input with itself".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 3, 6, 7] -> [8, 3, 6, 7, 8, 3, 6, 7] [2, 6, 4, 8, 7] -> [2, 6, 4, 8, 7, 2, 6, 4, 8, 7] [0, 1, 4, 7, 8] -> [0, 1, 4, 7, 8, 0, 1, 4, 7, 8] [2, 4, 9, 3, 5, 1] -> [2, 4, 9, 3, 5, 1, 2, 4, 9, 3, 5, 1] [8, 7, 3] -> [8, 7, 3, 8, 7, 3] [5, 2, 8, 0, 3, 1, 6] -> [5, 2, 8, 0, 3, 1, 6, 5, 2, 8, 0, 3, 1, 6] [6] -> [6, 6] [0, 6, 9, 8, 5, 2] -> [0, 6, 9, 8, 5, 2, 0, 6, 9, 8, 5, 2] Questions: [9, 4] -> ? Answer:
[9, 4] -> [9, 4, 9, 4]
[9, 4]
[9, 4, 9, 4]
c222
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 60, 78, 91] -> [4, 4, 4, 4] [96, 30, 0, 2, 6, 17] -> [6, 6, 6, 6, 6, 6] [89, 98, 99] -> [3, 3, 3] [4, 52, 90, 88, 7, 97, 14] -> [7, 7, 7, 7, 7, 7, 7] [25, 64, 79] -> [3, 3, 3] [41, 89, 5] -> [3, 3, 3] [71, 65, 3, 43, 44, 4] -> [6, 6, 6, 6, 6, 6] [80, 37, 78, 6, 66, 29, 89, 0, 79] -> [9, 9, 9, 9, 9, 9, 9, 9, 9] Questions: [4, 26, 87, 5, 7, 8, 27] -> ? Answer:
[4, 26, 87, 5, 7, 8, 27] -> [7, 7, 7, 7, 7, 7, 7]
[4, 26, 87, 5, 7, 8, 27]
[7, 7, 7, 7, 7, 7, 7]
c232
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "mean value of the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [60, 45, 24] -> [43] [72, 98, 43] -> [71] [32, 76, 3] -> [37] [13, 3, 6, 4] -> [6] [8, 37, 46, 7] -> [24] [3, 48, 8] -> [19] [90, 4, 1, 13, 2] -> [22] [4, 22, 93, 81, 8] -> [41] Questions: [9, 18, 55, 69, 8] -> ? Answer:
[9, 18, 55, 69, 8] -> [31]
[9, 18, 55, 69, 8]
[31]
c057
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert a 4 as element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 2, 1, 3] -> [6, 2, 1, 3, 4] [] -> [4] [8, 6, 2] -> [8, 6, 2, 4] [2, 5] -> [2, 5, 4] [3, 9, 4, 5, 8, 0, 2, 7, 1] -> [3, 9, 4, 5, 8, 0, 4, 2, 7, 1] [1, 8, 5, 6, 7] -> [1, 8, 5, 6, 7, 4] [0] -> [0, 4] [8, 0, 9, 3] -> [8, 0, 9, 3, 4] Questions: [0, 5, 3, 2, 6] -> ? Answer:
[0, 5, 3, 2, 6] -> [0, 5, 3, 2, 6, 4]
[0, 5, 3, 2, 6]
[0, 5, 3, 2, 6, 4]
c079
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 6, 0] -> [9] [8, 1] -> [9] [0, 8] -> [8] [0, 1, 3] -> [4] [5, 2] -> [7] [1, 7] -> [8] [2, 4, 3] -> [9] [2, 0] -> [2] Questions: [4, 5] -> ? Answer:
[4, 5] -> [9]
[4, 5]
[9]
c170
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 1 and last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 66, 34, 8, 0, 9, 32, 39, 23] -> [1, 23] [9, 89, 17, 24, 30, 5, 3, 53, 43] -> [9, 43] [93, 91, 99, 3, 4, 35] -> [93, 35] [5, 1, 3, 47, 86, 57, 38] -> [5, 38] [98, 94, 1, 31, 7, 29, 8] -> [98, 8] [10, 8, 7, 43, 1, 11, 50, 12, 0, 95] -> [10, 95] [28, 22, 2, 31, 5, 27] -> [28, 27] [81, 2, 4, 46, 6, 0, 8, 19, 80] -> [81, 80] Questions: [4, 12, 5, 67, 13, 14, 9] -> ? Answer:
[4, 12, 5, 67, 13, 14, 9] -> [4, 9]
[4, 12, 5, 67, 13, 14, 9]
[4, 9]
c198
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in descending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [] -> [] [94, 64, 8, 3, 1, 20, 38, 54, 0, 41] -> [94, 64, 54, 41, 38, 20, 8, 3, 1, 0] [98, 9, 6, 68, 5, 3, 4, 7] -> [98, 68, 9, 7, 6, 5, 4, 3] [5, 78, 58, 5, 30, 32, 7, 72, 0, 2] -> [78, 72, 58, 32, 30, 7, 5, 2, 0] [4, 64, 39, 25, 83, 52, 5, 0, 88, 49] -> [88, 83, 64, 52, 49, 39, 25, 5, 4, 0] [35, 80, 9, 22, 4, 57] -> [80, 57, 35, 22, 9, 4] [4, 14, 1, 3, 75, 6] -> [75, 14, 6, 4, 3, 1] [93, 93, 93, 93, 93, 93, 93, 93, 93] -> [93] Questions: [1, 41, 42, 2, 3, 6, 91, 9, 23, 89] -> ? Answer:
[1, 41, 42, 2, 3, 6, 91, 9, 23, 89] -> [91, 89, 42, 41, 23, 9, 6, 3, 2, 1]
[1, 41, 42, 2, 3, 6, 91, 9, 23, 89]
[91, 89, 42, 41, 23, 9, 6, 3, 2, 1]
c205
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements divisible by 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [81, 53, 4, 4] -> [16] [4, 84, 0, 35, 99, 6, 57, 94] -> [0] [5, 9, 83, 51, 4, 8, 53, 3] -> [32] [4, 9, 4, 30, 9] -> [16] [2, 9, 5, 8, 5, 83, 66, 4, 65] -> [32] [6, 4, 55, 2, 4, 97, 55, 1, 41, 3] -> [16] [8, 4, 3, 74, 38, 3, 2, 53, 5] -> [32] [97, 9, 4, 8, 50, 2, 5] -> [32] Questions: [78, 4, 5, 5, 89, 12] -> ? Answer:
[78, 4, 5, 5, 89, 12] -> [48]
[78, 4, 5, 5, 89, 12]
[48]
c018
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 6 with a 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 5, 3, 8, 7] -> [6, 5, 3, 8, 7] [5, 0, 2, 4, 3, 8, 9] -> [5, 0, 2, 4, 3, 3, 9] [1, 8, 2, 4, 3, 9] -> [1, 8, 2, 4, 3, 3] [1, 8, 5, 2, 9, 6, 4, 7] -> [1, 8, 5, 2, 9, 3, 4, 7] [1, 3, 5, 6, 2, 4, 0, 7, 9] -> [1, 3, 5, 6, 2, 3, 0, 7, 9] [0, 9, 7, 6, 1, 5] -> [0, 9, 7, 6, 1, 3] [6] -> [6] [2, 3, 0, 7, 1, 6, 4, 8] -> [2, 3, 0, 7, 1, 3, 4, 8] Questions: [9, 6, 5, 2, 4, 0, 8, 1, 3] -> ? Answer:
[9, 6, 5, 2, 4, 0, 8, 1, 3] -> [9, 6, 5, 2, 4, 3, 8, 1, 3]
[9, 6, 5, 2, 4, 0, 8, 1, 3]
[9, 6, 5, 2, 4, 3, 8, 1, 3]
c012
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but elements 2 through 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0] -> [] [5, 0, 7] -> [0, 7] [8, 2] -> [2] [6] -> [] [7, 2] -> [2] [] -> [] [2, 3, 4, 9, 5, 6, 1, 8, 0] -> [3, 4, 9] [3, 4, 5, 1] -> [4, 5, 1] Questions: [8] -> ? Answer:
[8] -> []
[8]
[]
c017
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 2 with an 8 if there is an element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 6, 4, 5, 3, 9, 2] -> [7, 8, 4, 5, 3, 9, 2] [1, 5, 6, 9] -> [1, 8, 6, 9] [2, 1, 7] -> [2, 8, 7] [5, 6] -> [5, 8] [2, 7, 3, 6, 4, 0, 5, 9, 1] -> [2, 8, 3, 6, 4, 0, 5, 9, 1] [5, 1, 0, 7, 9, 8, 2, 3, 4, 6] -> [5, 8, 0, 7, 9, 8, 2, 3, 4, 6] [4, 1, 9, 0, 6, 2, 5] -> [4, 8, 9, 0, 6, 2, 5] [0, 6, 7, 2, 9, 4, 1, 5] -> [0, 8, 7, 2, 9, 4, 1, 5] Questions: [2, 5, 1, 9, 4, 8, 6, 7, 3, 0] -> ? Answer:
[2, 5, 1, 9, 4, 8, 6, 7, 3, 0] -> [2, 8, 1, 9, 4, 8, 6, 7, 3, 0]
[2, 5, 1, 9, 4, 8, 6, 7, 3, 0]
[2, 8, 1, 9, 4, 8, 6, 7, 3, 0]
c230
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the smallest element to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40] -> [40] [6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] [35] -> [35] [6, 13] -> [6, 8, 10, 12] [44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62] [11, 2] -> [2, 4, 6, 8, 10] [63, 63, 75] -> [63, 65, 67, 69, 71, 73, 75] [29] -> [29] Questions: [91, 78] -> ? Answer:
[91, 78] -> [78, 80, 82, 84, 86, 88, 90]
[91, 78]
[78, 80, 82, 84, 86, 88, 90]
c183
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of elements 2 and following equal to element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9] [2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8] [2, 2, 2, 2, 2] -> [1, 2, 3, 4] [3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4] [5, 5, 2, 5, 2, 6, 2, 5, 5] -> [1, 3, 7, 8] [10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5] [85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4] [2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5] Questions: [4, 4, 4, 4] -> ? Answer:
[4, 4, 4, 4] -> [1, 2, 3]
[4, 4, 4, 4]
[1, 2, 3]
c045
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 4, 5, 0, 3, 6, 9, 1] -> [8, 4, 5, 0, 3, 6, 9, 1] [7, 4, 2, 3] -> [7, 4, 2, 3] [0, 9, 5] -> [0, 9, 5] [5, 3, 7, 6, 0, 9, 2, 1, 8] -> [5, 3, 7, 6, 0, 9, 2, 1, 8] [0, 3, 4, 6, 1, 8, 9, 7, 2] -> [0, 3, 4, 6, 1, 8, 9, 7, 2] [3, 5, 8, 4, 1, 0, 2, 7] -> [3, 5, 8, 4, 1, 0, 2, 7] [9, 1, 8, 4, 2] -> [9, 1, 8, 4, 2] [7] -> [7] Questions: [6, 1] -> ? Answer:
[6, 1] -> [6, 1]
[6, 1]
[6, 1]
c186
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43] [9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88] [6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23] [5, 60, 5, 60] -> [60, 60] [9, 6, 5, 8, 1, 34, 91, 36, 0] -> [34, 91, 36] [15, 7, 31, 9, 4, 22, 82, 1, 38, 80] -> [31, 22, 82, 38, 80] [39, 0, 22, 3, 8, 6, 9, 4, 51, 57] -> [51, 57] [5, 46, 6, 49, 3, 9, 1, 4, 7] -> [46, 6, 49, 9, 7] Questions: [17, 11, 5, 11, 62, 55, 17, 36, 36] -> ? Answer:
[17, 11, 5, 11, 62, 55, 17, 36, 36] -> [62, 55, 36, 36]
[17, 11, 5, 11, 62, 55, 17, 36, 36]
[62, 55, 36, 36]
c020
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the first element with the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 7, 8, 9, 4, 0, 3, 2] -> [2, 1, 7, 8, 9, 4, 0, 3, 2] [0, 8, 5, 2, 7, 1, 4, 6, 9, 3] -> [3, 8, 5, 2, 7, 1, 4, 6, 9, 3] [7, 1, 0, 6, 3] -> [3, 1, 0, 6, 3] [5, 8, 6, 1, 0, 9, 7] -> [7, 8, 6, 1, 0, 9, 7] [3, 8, 6, 0] -> [0, 8, 6, 0] [8, 5, 7, 4, 2, 3, 6] -> [6, 5, 7, 4, 2, 3, 6] [0, 7, 1, 3, 4, 9, 6, 5] -> [5, 7, 1, 3, 4, 9, 6, 5] [1, 4, 9, 8, 2, 0, 5, 3, 6, 7] -> [7, 4, 9, 8, 2, 0, 5, 3, 6, 7] Questions: [9, 0] -> ? Answer:
[9, 0] -> [0, 0]
[9, 0]
[0, 0]
c223
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap the digits of each element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [53, 23, 42] -> [35, 32, 24] [17, 4, 59, 58, 9, 69, 63, 13, 22] -> [71, 40, 95, 85, 90, 96, 36, 31, 22] [32, 80, 94, 8, 25, 34, 9, 0] -> [23, 8, 49, 80, 52, 43, 90, 0] [52, 59, 77, 88, 32] -> [25, 95, 77, 88, 23] [2, 74, 54, 99, 36, 57, 4, 0] -> [20, 47, 45, 99, 63, 75, 40, 0] [34, 12, 92, 7, 50, 87, 3, 0, 17, 74] -> [43, 21, 29, 70, 5, 78, 30, 0, 71, 47] [12, 85, 66, 41, 5, 4, 36] -> [21, 58, 66, 14, 50, 40, 63] [20, 75, 47, 7, 51, 2, 23, 40, 19, 36] -> [2, 57, 74, 70, 15, 20, 32, 4, 91, 63] Questions: [3, 6, 67, 91, 24, 50] -> ? Answer:
[3, 6, 67, 91, 24, 50] -> [30, 60, 76, 19, 42, 5]
[3, 6, 67, 91, 24, 50]
[30, 60, 76, 19, 42, 5]
c162
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16] [15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52] [6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25] [5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13] [4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25] [16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28] [1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37] [0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34] Questions: [2, 6, 8, 1] -> ? Answer:
[2, 6, 8, 1] -> [13, 25, 31, 10]
[2, 6, 8, 1]
[13, 25, 31, 10]
c141
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 2 with N, M = element 1, N = element 2; remove elements 1 and 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 5, 4, 40, 1, 79, 45, 62, 36] -> [4, 40, 1, 79, 45, 62, 5] [51, 3, 1, 4, 23, 9, 34, 7] -> [1, 4, 23, 9, 34, 7] [5, 1, 64, 2, 75, 20, 5, 2, 5] -> [64, 2, 75, 20, 1, 2, 5] [3, 4, 7, 38, 6, 75, 5, 0, 91, 3] -> [7, 38, 4, 75, 5, 0, 91, 3] [8, 0, 9, 38, 5, 4, 53, 2, 31, 57] -> [9, 38, 5, 4, 53, 2, 31, 0] [5, 5, 91, 31, 31, 7, 31, 72] -> [91, 31, 31, 7, 5, 72] [3, 3, 3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3] [6, 2, 57, 57, 57, 22, 57, 97, 2] -> [57, 57, 57, 22, 57, 2, 2] Questions: [2, 2, 0, 0, 2, 0] -> ? Answer:
[2, 2, 0, 0, 2, 0] -> [0, 2, 2, 0]
[2, 2, 0, 0, 2, 0]
[0, 2, 2, 0]
c248
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements after the last 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 54, 7, 0, 9, 0, 97, 1] -> [97, 1] [61, 0, 2, 61, 2, 0, 2, 2] -> [2, 2] [2, 26, 44, 11, 0, 5, 9, 32, 6] -> [5, 9, 32, 6] [37, 37, 37, 37] -> [37, 37, 37, 37] [3, 92, 6, 1, 93, 26, 4, 0, 9, 34] -> [9, 34] [94, 9, 0, 30, 52, 30, 2, 0, 30, 9] -> [30, 9] [7, 0, 6, 57, 0, 57] -> [57] [81, 0, 81, 81, 0, 81] -> [81] Questions: [8, 0, 7, 36, 12, 65, 0, 76, 65] -> ? Answer:
[8, 0, 7, 36, 12, 65, 0, 76, 65] -> [76, 65]
[8, 0, 7, 36, 12, 65, 0, 76, 65]
[76, 65]
c174
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep the first N elements, where N is the number of unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [70, 11, 70, 11, 11, 11, 11, 70] -> [70, 11] [8, 84, 34, 9, 87, 9, 76] -> [8, 84, 34, 9, 87, 9] [6, 9, 50, 59, 39, 6] -> [6, 9, 50, 59, 39] [63, 58, 49, 85, 8, 63, 58, 63] -> [63, 58, 49, 85, 8] [15, 15, 15, 15, 15, 77, 77, 6, 6] -> [15, 15, 15] [31, 4, 98, 31, 49, 98, 4, 4, 4, 98] -> [31, 4, 98, 31] [2, 79, 79, 79, 2, 4, 45] -> [2, 79, 79, 79] [91, 91, 91, 91, 91, 91, 91] -> [91] Questions: [7, 2, 69, 3, 10, 45, 4, 8, 89, 45] -> ? Answer:
[7, 2, 69, 3, 10, 45, 4, 8, 89, 45] -> [7, 2, 69, 3, 10, 45, 4, 8, 89]
[7, 2, 69, 3, 10, 45, 4, 8, 89, 45]
[7, 2, 69, 3, 10, 45, 4, 8, 89]
c146
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "absolute difference of each consecutive pair, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [93, 5] -> [88] [1, 96, 12, 76, 6, 51, 38, 5, 25, 88] -> [95, 84, 64, 70, 45, 13, 33, 20, 63] [1, 17, 3, 96, 5] -> [16, 14, 93, 91] [70, 92, 34] -> [22, 58] [89, 53, 20, 48, 2] -> [36, 33, 28, 46] [21, 4, 6, 82, 1, 9, 2] -> [17, 2, 76, 81, 8, 7] [0, 93, 7, 72, 35, 3, 10, 36] -> [93, 86, 65, 37, 32, 7, 26] [55, 43, 19] -> [12, 24] Questions: [0] -> ? Answer:
[0] -> []
[0]
[]
c165
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input and keep only even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 41, 67, 46, 57, 5] -> [46] [1, 2, 81, 9, 3, 19, 5, 7] -> [2] [37, 5, 92, 44, 69, 4] -> [4, 44, 92] [3, 2, 31, 4, 20, 7, 9, 6, 83, 44] -> [44, 6, 20, 4, 2] [20, 21, 30, 7, 12, 3, 93] -> [12, 30, 20] [56, 1, 0, 6, 26, 84, 8, 55, 72, 9] -> [72, 8, 84, 26, 6, 0, 56] [2, 16, 68, 57, 34, 99, 9, 27, 44, 6] -> [6, 44, 34, 68, 16, 2] [35, 54, 81, 51, 3, 18, 9] -> [18, 54] Questions: [5, 8, 98, 77, 1, 68, 9, 32, 73] -> ? Answer:
[5, 8, 98, 77, 1, 68, 9, 32, 73] -> [32, 68, 98, 8]
[5, 8, 98, 77, 1, 68, 9, 32, 73]
[32, 68, 98, 8]
c109
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69] -> [69] [5, 5, 1, 1, 1, 1] -> [25] [43, 2] -> [86] [2, 1, 1, 1, 1, 18, 2] -> [72] [4, 8] -> [32] [95] -> [95] [1, 1, 9, 1, 1] -> [9] [4, 6] -> [24] Questions: [1, 4, 4] -> ? Answer:
[1, 4, 4] -> [16]
[1, 4, 4]
[16]
c183
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of elements 2 and following equal to element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9] [2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8] [2, 2, 2, 2, 2] -> [1, 2, 3, 4] [3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4] [5, 5, 2, 5, 2, 6, 2, 5, 5] -> [1, 3, 7, 8] [10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5] [85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4] [2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5] Questions: [56, 98, 9, 98, 56, 56, 9, 98, 14, 14] -> ? Answer:
[56, 98, 9, 98, 56, 56, 9, 98, 14, 14] -> [4, 5]
[56, 98, 9, 98, 56, 56, 9, 98, 14, 14]
[4, 5]
c248
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements after the last 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 54, 7, 0, 9, 0, 97, 1] -> [97, 1] [61, 0, 2, 61, 2, 0, 2, 2] -> [2, 2] [2, 26, 44, 11, 0, 5, 9, 32, 6] -> [5, 9, 32, 6] [37, 37, 37, 37] -> [37, 37, 37, 37] [3, 92, 6, 1, 93, 26, 4, 0, 9, 34] -> [9, 34] [94, 9, 0, 30, 52, 30, 2, 0, 30, 9] -> [30, 9] [7, 0, 6, 57, 0, 57] -> [57] [81, 0, 81, 81, 0, 81] -> [81] Questions: [45, 0, 92, 45, 32, 0, 9, 6, 13, 6] -> ? Answer:
[45, 0, 92, 45, 32, 0, 9, 6, 13, 6] -> [9, 6, 13, 6]
[45, 0, 92, 45, 32, 0, 9, 6, 13, 6]
[9, 6, 13, 6]
c214
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29] [5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1] [4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1] [8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92] [2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79] [3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1] [6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8] [4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56] Questions: [3, 18, 8, 75, 67] -> ? Answer:
[3, 18, 8, 75, 67] -> [18, 8, 67]
[3, 18, 8, 75, 67]
[18, 8, 67]
c071
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6] -> [2, 8] [0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3] [2] -> [4] [3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4] [1, 6] -> [3, 8] [1, 2] -> [3, 4] [1] -> [3] [5, 3, 0, 1] -> [7, 5, 2, 3] Questions: [2, 3] -> ? Answer:
[2, 3] -> [4, 5]
[2, 3]
[4, 5]
c098
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add the index to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 83, 43, 53, 86, 69, 49, 75] -> [7, 85, 46, 57, 91, 75, 56, 83] [9, 16, 28, 80] -> [10, 18, 31, 84] [36, 73, 47, 13, 6, 8, 17, 2, 19, 71] -> [37, 75, 50, 17, 11, 14, 24, 10, 28, 81] [3, 2, 47, 29, 9, 8, 0, 7, 75] -> [4, 4, 50, 33, 14, 14, 7, 15, 84] [2, 26] -> [3, 28] [0, 7, 1, 80, 4, 83, 46, 79] -> [1, 9, 4, 84, 9, 89, 53, 87] [55, 2, 22, 33, 53, 20, 37] -> [56, 4, 25, 37, 58, 26, 44] [16] -> [17] Questions: [2, 9, 7, 4, 83, 68, 5, 10, 30, 16] -> ? Answer:
[2, 9, 7, 4, 83, 68, 5, 10, 30, 16] -> [3, 11, 10, 8, 88, 74, 12, 18, 39, 26]
[2, 9, 7, 4, 83, 68, 5, 10, 30, 16]
[3, 11, 10, 8, 88, 74, 12, 18, 39, 26]
c060
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 3, 2, 1, the number 4, then elements 5 and 7, in that order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 2, 8, 4, 6, 1, 3, 5, 9, 0] -> [8, 2, 7, 4, 6, 3] [8, 4, 9, 1, 3, 2, 7] -> [9, 4, 8, 4, 3, 7] [0, 1, 2, 3, 6, 9, 8, 4] -> [2, 1, 0, 4, 6, 8] [1, 4, 5, 2, 3, 7, 9, 6, 0] -> [5, 4, 1, 4, 3, 9] [9, 7, 5, 4, 8, 3, 0, 2] -> [5, 7, 9, 4, 8, 0] [4, 2, 1, 7, 6, 4, 0, 8, 5] -> [1, 2, 4, 4, 6, 0] [3, 1, 0, 4, 5, 8, 9, 2] -> [0, 1, 3, 4, 5, 9] [6, 2, 1, 0, 9, 8, 5] -> [1, 2, 6, 4, 9, 5] Questions: [2, 0, 5, 8, 9, 4, 7, 1] -> ? Answer:
[2, 0, 5, 8, 9, 4, 7, 1] -> [5, 0, 2, 4, 9, 7]
[2, 0, 5, 8, 9, 4, 7, 1]
[5, 0, 2, 4, 9, 7]
c243
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of odd elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 33, 9, 1, 7, 62, 88, 9, 8] -> [5] [72, 1, 6, 2, 5, 0, 82, 9] -> [3] [8, 45, 77, 9, 88, 77, 81, 66] -> [5] [34, 2, 88, 4, 63, 7, 9, 62, 7, 2] -> [4] [3, 27, 5, 1, 8, 4, 7, 6, 37] -> [6] [1, 0, 85, 3, 99, 68, 8] -> [4] [24, 51, 1, 7, 55, 9, 70, 77, 95, 90] -> [7] [89, 4, 93, 92, 67, 18, 7, 1] -> [5] Questions: [42, 39, 6, 51, 30, 84, 58, 5, 9, 99] -> ? Answer:
[42, 39, 6, 51, 30, 84, 58, 5, 9, 99] -> [5]
[42, 39, 6, 51, 30, 84, 58, 5, 9, 99]
[5]
c087
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [91, 1, 34, 73, 90, 4, 7] -> [91, 34, 1, 73, 90, 4, 7] [68, 2, 30] -> [68, 30, 2] [72, 48, 82, 86, 4, 7, 88] -> [72, 82, 48, 86, 4, 7, 88] [1, 47, 17, 26, 9, 65, 21, 50, 5, 59] -> [1, 17, 47, 26, 9, 65, 21, 50, 5, 59] [21, 47, 13, 70, 58, 26, 42] -> [21, 13, 47, 70, 58, 26, 42] [65, 80, 6, 22, 50] -> [65, 6, 80, 22, 50] [3, 60, 9, 47, 18, 16] -> [3, 9, 60, 47, 18, 16] [65, 12, 5, 43, 9, 6, 31, 69, 92] -> [65, 5, 12, 43, 9, 6, 31, 69, 92] Questions: [4, 40, 7] -> ? Answer:
[4, 40, 7] -> [4, 7, 40]
[4, 40, 7]
[4, 7, 40]
c213
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "three smallest elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 51, 55, 73, 3, 56, 87, 10, 5] -> [3, 5, 8] [70, 76, 71, 10, 60, 42, 7, 40] -> [7, 10, 40] [6, 59, 22, 7, 30, 68] -> [6, 7, 22] [40, 1, 72, 18, 61, 27, 48] -> [1, 18, 27] [75, 7, 16, 2, 8, 26] -> [2, 7, 8] [77, 5, 2, 1] -> [1, 2, 5] [25, 2, 70, 85, 35] -> [2, 25, 35] [4, 46, 20, 7, 41, 96, 42, 84] -> [4, 7, 20] Questions: [60, 5, 13, 24, 3, 4, 86, 9, 78] -> ? Answer:
[60, 5, 13, 24, 3, 4, 86, 9, 78] -> [3, 4, 5]
[60, 5, 13, 24, 3, 4, 86, 9, 78]
[3, 4, 5]
c124
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element M, M = element N, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 0] -> [1] [8, 24, 5, 24, 0, 82, 5, 4, 2] -> [24] [1, 1, 1, 1, 1, 1, 1, 1] -> [1] [2, 8, 2, 65, 7, 7, 9, 11, 2] -> [11] [7, 2, 7, 7, 3, 2, 3, 3, 63, 2] -> [7] [2, 5, 4, 55, 81, 0] -> [81] [1, 4, 49, 3, 2, 0, 4] -> [1] [6, 6, 6, 17, 29, 4, 6, 32, 32] -> [17] Questions: [9, 86, 82, 47, 39, 53, 0, 13, 4, 2] -> ? Answer:
[9, 86, 82, 47, 39, 53, 0, 13, 4, 2] -> [47]
[9, 86, 82, 47, 39, 53, 0, 13, 4, 2]
[47]
c154
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3] [3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9] [91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91] [63, 7, 1, 2, 77, 57, 0, 5] -> [63, 7, 1, 6, 77, 57, 0, 5] [10, 93, 22, 10, 5, 10] -> [30, 93, 66, 30, 5, 30] [33, 2, 0, 21, 6, 28, 3, 8, 4] -> [33, 6, 0, 21, 18, 84, 3, 24, 12] [77, 8, 1, 77, 3, 9, 7, 4] -> [77, 24, 1, 77, 3, 9, 7, 12] [6, 9, 43, 7, 65, 7] -> [18, 9, 43, 7, 65, 7] Questions: [6, 30, 79, 99, 0, 65, 3] -> ? Answer:
[6, 30, 79, 99, 0, 65, 3] -> [18, 90, 79, 99, 0, 65, 3]
[6, 30, 79, 99, 0, 65, 3]
[18, 90, 79, 99, 0, 65, 3]
c194
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input; prepend and append the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7] [74, 1, 24] -> [3, 24, 1, 74, 3] [94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8] [6] -> [1, 6, 1] [53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7] [4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10] [92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7] [21] -> [1, 21, 1] Questions: [9, 32, 46, 57, 5, 34, 26, 2, 3, 4] -> ? Answer:
[9, 32, 46, 57, 5, 34, 26, 2, 3, 4] -> [10, 4, 3, 2, 26, 34, 5, 57, 46, 32, 9, 10]
[9, 32, 46, 57, 5, 34, 26, 2, 3, 4]
[10, 4, 3, 2, 26, 34, 5, 57, 46, 32, 9, 10]
c250
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; concatenate reverse of each sublist".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [57, 57, 33, 33, 0, 57, 33, 0, 6] -> [33, 33, 57, 57, 33, 57, 6] [7, 0, 0, 93, 4, 9, 9, 96, 71] -> [7, 71, 96, 9, 9, 4, 93] [6, 0, 90, 6, 0, 6] -> [6, 6, 90, 6] [9, 78, 7, 0, 7, 78, 0, 9, 7] -> [7, 78, 9, 78, 7, 7, 9] [68, 91, 91, 3, 1, 49, 98, 70, 7] -> [7, 70, 98, 49, 1, 3, 91, 91, 68] [27, 95, 2, 95, 46, 0, 7, 4, 17, 47] -> [46, 95, 2, 95, 27, 47, 17, 4, 7] [93, 4, 35, 62, 19, 10, 87, 15, 9, 15] -> [15, 9, 15, 87, 10, 19, 62, 35, 4, 93] [8, 6, 0, 6, 5, 0, 82, 5, 6, 0] -> [6, 8, 5, 6, 6, 5, 82] Questions: [47, 92, 0, 87, 92, 0, 92, 47, 92, 0] -> ? Answer:
[47, 92, 0, 87, 92, 0, 92, 47, 92, 0] -> [92, 47, 92, 87, 92, 47, 92]
[47, 92, 0, 87, 92, 0, 92, 47, 92, 0]
[92, 47, 92, 87, 92, 47, 92]
c242
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "take the largest unique element, append the second largest unique element, prepend the third largest unique element, append the fourth largest unique element, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [14, 9, 50, 48, 67, 64, 1, 6] -> [6, 14, 50, 67, 64, 48, 9, 1] [2, 2, 2, 77, 77, 2, 77, 77, 2, 21] -> [21, 77, 2] [42, 49, 56, 36, 88, 4, 5, 93, 0] -> [4, 36, 49, 88, 93, 56, 42, 5, 0] [3, 5, 8, 56, 60, 1, 9, 79, 23, 92] -> [3, 8, 23, 60, 92, 79, 56, 9, 5, 1] [13, 16, 47, 42, 94, 94] -> [16, 47, 94, 42, 13] [3, 54, 93, 91, 75, 2, 90] -> [3, 75, 91, 93, 90, 54, 2] [4, 1, 3, 73, 0, 41, 31, 18, 9] -> [1, 4, 18, 41, 73, 31, 9, 3, 0] [85, 71, 71, 1, 71, 1, 71] -> [71, 85, 1] Questions: [67, 67, 67, 67, 67, 67, 67, 67, 67] -> ? Answer:
[67, 67, 67, 67, 67, 67, 67, 67, 67] -> [67]
[67, 67, 67, 67, 67, 67, 67, 67, 67]
[67]
c088
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 9, 9, 4, 67, 67, 2] -> [4, 9, 9, 7, 67, 67, 2] [6, 6, 38, 6, 12, 2, 2, 21, 13, 6] -> [6, 38, 6, 6, 12, 2, 2, 21, 13, 6] [1, 6, 4, 1, 26, 48, 0] -> [1, 4, 6, 1, 26, 48, 0] [67, 87, 9, 67, 87] -> [67, 9, 87, 67, 87] [97, 90, 8, 97] -> [97, 8, 90, 97] [11, 1, 1, 24] -> [24, 1, 1, 11] [25, 84, 60, 25, 0, 60, 77, 5] -> [25, 60, 84, 25, 0, 60, 77, 5] [26, 27, 27, 0, 26, 27, 26, 0] -> [0, 27, 27, 26, 26, 27, 26, 0] Questions: [3, 4, 4, 8, 15, 2, 85, 64, 3, 49] -> ? Answer:
[3, 4, 4, 8, 15, 2, 85, 64, 3, 49] -> [8, 4, 4, 3, 15, 2, 85, 64, 3, 49]
[3, 4, 4, 8, 15, 2, 85, 64, 3, 49]
[8, 4, 4, 3, 15, 2, 85, 64, 3, 49]
c227
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave input and reversed input; keep only unique elements in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 32, 76, 4, 13, 0] -> [84, 0, 32, 13, 76, 4] [] -> [] [17, 59, 69, 46, 28, 3, 67, 54] -> [17, 54, 59, 67, 69, 3, 46, 28] [50, 72, 32, 3, 1, 3, 2, 32, 1] -> [50, 1, 72, 32, 2, 3] [63, 94, 68, 92, 61, 96, 1] -> [63, 1, 94, 96, 68, 61, 92] [83, 92, 6, 1, 72, 7, 66, 64, 40] -> [83, 40, 92, 64, 6, 66, 1, 7, 72] [7, 27, 24, 51, 80, 3, 34, 47, 68] -> [7, 68, 27, 47, 24, 34, 51, 3, 80] [93, 93, 29, 93, 29, 29, 93, 93, 29] -> [93, 29] Questions: [0, 0, 9, 0, 9, 0, 9, 9, 9, 9] -> ? Answer:
[0, 0, 9, 0, 9, 0, 9, 9, 9, 9] -> [0, 9]
[0, 0, 9, 0, 9, 0, 9, 9, 9, 9]
[0, 9]
c003
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5] [5, 6, 2, 3, 9, 7, 1, 0] -> [1] [9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6] [1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3] [1, 0, 9, 5, 4, 2, 8] -> [8] [4, 5, 8, 3, 1, 6, 0] -> [0] [8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6] [1, 7, 9, 4, 6, 2, 0] -> [0] Questions: [0, 4, 6, 7, 2, 5, 8, 9, 3, 1] -> ? Answer:
[0, 4, 6, 7, 2, 5, 8, 9, 3, 1] -> [8]
[0, 4, 6, 7, 2, 5, 8, 9, 3, 1]
[8]
c035
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 1, 0] -> [0, 1, 5, 0] [7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8] [0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7] [4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4, 6, 9] [1, 1, 9, 1, 8, 7] -> [1, 9, 1, 1, 8, 7] [3, 1, 1, 6] -> [6, 1, 1, 3] [3, 4, 4, 0, 5, 9, 9, 7, 5] -> [0, 4, 4, 3, 5, 9, 9, 7, 5] [2, 5, 1, 2, 8, 6] -> [2, 1, 5, 2, 8, 6] Questions: [4, 8, 8, 7, 9] -> ? Answer:
[4, 8, 8, 7, 9] -> [7, 8, 8, 4, 9]
[4, 8, 8, 7, 9]
[7, 8, 8, 4, 9]
c109
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69] -> [69] [5, 5, 1, 1, 1, 1] -> [25] [43, 2] -> [86] [2, 1, 1, 1, 1, 18, 2] -> [72] [4, 8] -> [32] [95] -> [95] [1, 1, 9, 1, 1] -> [9] [4, 6] -> [24] Questions: [70] -> ? Answer:
[70] -> [70]
[70]
[70]
c175
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements larger than any preceding element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83] [1, 9, 60, 0, 60, 38] -> [1, 9, 60] [6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67] [0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53] [9, 52, 4, 51, 96, 12] -> [9, 52, 96] [4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85] [7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97] [1, 1, 7, 5, 63, 42] -> [1, 7, 63] Questions: [2, 61, 5, 73, 73, 5, 19, 86, 78] -> ? Answer:
[2, 61, 5, 73, 73, 5, 19, 86, 78] -> [2, 61, 73, 86]
[2, 61, 5, 73, 73, 5, 19, 86, 78]
[2, 61, 73, 86]
c194
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input; prepend and append the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7] [74, 1, 24] -> [3, 24, 1, 74, 3] [94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8] [6] -> [1, 6, 1] [53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7] [4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10] [92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7] [21] -> [1, 21, 1] Questions: [13, 19, 18, 68, 4, 97, 16, 91, 2] -> ? Answer:
[13, 19, 18, 68, 4, 97, 16, 91, 2] -> [9, 2, 91, 16, 97, 4, 68, 18, 19, 13, 9]
[13, 19, 18, 68, 4, 97, 16, 91, 2]
[9, 2, 91, 16, 97, 4, 68, 18, 19, 13, 9]
c175
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements larger than any preceding element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83] [1, 9, 60, 0, 60, 38] -> [1, 9, 60] [6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67] [0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53] [9, 52, 4, 51, 96, 12] -> [9, 52, 96] [4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85] [7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97] [1, 1, 7, 5, 63, 42] -> [1, 7, 63] Questions: [61, 71, 30, 19, 3, 96, 66] -> ? Answer:
[61, 71, 30, 19, 3, 96, 66] -> [61, 71, 96]
[61, 71, 30, 19, 3, 96, 66]
[61, 71, 96]
c087
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [91, 1, 34, 73, 90, 4, 7] -> [91, 34, 1, 73, 90, 4, 7] [68, 2, 30] -> [68, 30, 2] [72, 48, 82, 86, 4, 7, 88] -> [72, 82, 48, 86, 4, 7, 88] [1, 47, 17, 26, 9, 65, 21, 50, 5, 59] -> [1, 17, 47, 26, 9, 65, 21, 50, 5, 59] [21, 47, 13, 70, 58, 26, 42] -> [21, 13, 47, 70, 58, 26, 42] [65, 80, 6, 22, 50] -> [65, 6, 80, 22, 50] [3, 60, 9, 47, 18, 16] -> [3, 9, 60, 47, 18, 16] [65, 12, 5, 43, 9, 6, 31, 69, 92] -> [65, 5, 12, 43, 9, 6, 31, 69, 92] Questions: [4, 2, 28, 5, 7, 55, 8] -> ? Answer:
[4, 2, 28, 5, 7, 55, 8] -> [4, 28, 2, 5, 7, 55, 8]
[4, 2, 28, 5, 7, 55, 8]
[4, 28, 2, 5, 7, 55, 8]
c150
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from element 1 up to each element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [17, 7, 2, 4] -> [17, 7, 2, 4] [52, 18, 3] -> [52, 18, 3] [80, 0, 7, 52, 62, 73] -> [80, 0, 7, 52, 62, 73] [2, 0, 3, 6, 1] -> [2, 0, 2, 3, 2, 3, 4, 5, 6, 1] [45, 23, 7, 4, 1, 47] -> [45, 23, 7, 4, 1, 45, 46, 47] [90, 90, 90] -> [90, 90, 90] [69, 3, 37, 55, 57, 1, 4, 6, 72] -> [69, 3, 37, 55, 57, 1, 4, 6, 69, 70, 71, 72] [99, 9, 0, 72] -> [99, 9, 0, 72] Questions: [65, 6, 0, 68, 51, 65] -> ? Answer:
[65, 6, 0, 68, 51, 65] -> [65, 6, 0, 65, 66, 67, 68, 51, 65]
[65, 6, 0, 68, 51, 65]
[65, 6, 0, 65, 66, 67, 68, 51, 65]
c192
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with its tens digit".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [58, 5, 53, 1] -> [5, 0, 5, 0] [5, 18, 73, 61, 74, 69] -> [0, 1, 7, 6, 7, 6] [5, 4, 19, 74, 2, 7, 32, 31, 8] -> [0, 0, 1, 7, 0, 0, 3, 3, 0] [96, 50, 98, 92, 70] -> [9, 5, 9, 9, 7] [66, 85, 7, 68, 29, 97, 65, 20] -> [6, 8, 0, 6, 2, 9, 6, 2] [56, 62] -> [5, 6] [3, 36, 67, 6, 40, 72, 95] -> [0, 3, 6, 0, 4, 7, 9] [42] -> [4] Questions: [45, 23] -> ? Answer:
[45, 23] -> [4, 2]
[45, 23]
[4, 2]
c105
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate all but the last element with all but the first element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [49, 11, 73, 7] -> [49, 11, 73, 11, 73, 7] [3, 81, 35, 26] -> [3, 81, 35, 81, 35, 26] [6, 8, 5] -> [6, 8, 8, 5] [47, 45, 73] -> [47, 45, 45, 73] [62, 4, 8, 75, 2, 19] -> [62, 4, 8, 75, 2, 4, 8, 75, 2, 19] [39, 61, 49, 63, 89] -> [39, 61, 49, 63, 61, 49, 63, 89] [59, 65, 90, 9] -> [59, 65, 90, 65, 90, 9] [2, 20, 8, 28, 17, 88] -> [2, 20, 8, 28, 17, 20, 8, 28, 17, 88] Questions: [78, 6, 59] -> ? Answer:
[78, 6, 59] -> [78, 6, 6, 59]
[78, 6, 59]
[78, 6, 6, 59]
c111
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat the largest element N times, where N is the smallest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [90, 5] -> [90, 90, 90, 90, 90] [61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61] [10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91] [62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88] [38, 39, 1] -> [39] [6, 62] -> [62, 62, 62, 62, 62, 62] [0, 30, 25, 57, 2, 5] -> [] Questions: [9, 40, 5] -> ? Answer:
[9, 40, 5] -> [40, 40, 40, 40, 40]
[9, 40, 5]
[40, 40, 40, 40, 40]
c162
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16] [15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52] [6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25] [5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13] [4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25] [16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28] [1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37] [0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34] Questions: [2, 8, 7, 6, 7, 17] -> ? Answer:
[2, 8, 7, 6, 7, 17] -> [13, 31, 28, 25, 28, 58]
[2, 8, 7, 6, 7, 17]
[13, 31, 28, 25, 28, 58]
c039
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list length is 3, else append 9 if the list length is 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 2, 7, 0, 5, 1, 6, 4, 8] -> [9, 2, 7, 0, 5, 1, 6, 4, 8, 9] [2, 0, 5, 3, 7, 6, 1, 9, 8] -> [2, 0, 5, 3, 7, 6, 1, 9, 8, 9] [6, 2, 0] -> [6, 2, 0, 3] [0, 9, 8, 2, 7, 5, 4, 1, 6] -> [0, 9, 8, 2, 7, 5, 4, 1, 6, 9] [] -> [] [8, 4, 3] -> [8, 4, 3, 3] [2, 4, 5, 3, 1, 7, 0, 8, 6] -> [2, 4, 5, 3, 1, 7, 0, 8, 6, 9] [6, 1, 2, 0, 4, 3, 5, 7, 8] -> [6, 1, 2, 0, 4, 3, 5, 7, 8, 9] Questions: [1, 6, 4, 2, 9, 3] -> ? Answer:
[1, 6, 4, 2, 9, 3] -> [1, 6, 4, 2, 9, 3]
[1, 6, 4, 2, 9, 3]
[1, 6, 4, 2, 9, 3]
c209
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order; insert sum of smallest and largest elements at index 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [94, 76, 5] -> [5, 76, 99, 94] [53, 17, 64] -> [17, 53, 81, 64] [77, 21, 20, 2] -> [2, 20, 79, 21, 77] [2, 39, 42] -> [2, 39, 44, 42] [7, 76, 86] -> [7, 76, 93, 86] [8, 1, 35, 56, 32, 63] -> [1, 8, 64, 32, 35, 56, 63] [96, 28, 3, 11, 0] -> [0, 3, 96, 11, 28, 96] [2, 4, 3, 54] -> [2, 3, 56, 4, 54] Questions: [5, 28, 3, 46, 79, 7] -> ? Answer:
[5, 28, 3, 46, 79, 7] -> [3, 5, 82, 7, 28, 46, 79]
[5, 28, 3, 46, 79, 7]
[3, 5, 82, 7, 28, 46, 79]
c051
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1 five times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8, 3, 5, 4] -> [0, 0, 0, 0, 0, 0, 8, 3, 5, 4] [4, 0, 6, 5, 3, 8, 9, 1, 7, 2] -> [4, 4, 4, 4, 4, 4, 0, 6, 5, 3, 8, 9, 1, 7, 2] [9, 4] -> [9, 9, 9, 9, 9, 9, 4] [0] -> [0, 0, 0, 0, 0, 0] [1, 6, 5, 2, 3, 7, 8, 4] -> [1, 1, 1, 1, 1, 1, 6, 5, 2, 3, 7, 8, 4] [5] -> [5, 5, 5, 5, 5, 5] [5, 6, 9, 2, 4] -> [5, 5, 5, 5, 5, 5, 6, 9, 2, 4] [7, 4, 1] -> [7, 7, 7, 7, 7, 7, 4, 1] Questions: [6, 8, 4] -> ? Answer:
[6, 8, 4] -> [6, 6, 6, 6, 6, 6, 8, 4]
[6, 8, 4]
[6, 6, 6, 6, 6, 6, 8, 4]
c077
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 4, 8, 5, 7] -> [5] [9, 4, 5, 2, 0, 1, 8, 6, 3] -> [9] [6, 4, 3] -> [3] [6, 2, 1, 4, 3, 0, 5, 7] -> [8] [1, 6, 4, 8, 7, 0, 5] -> [7] [9, 8, 0, 7] -> [4] [8, 4, 5, 3, 7, 2, 9, 0, 6] -> [9] [0] -> [1] Questions: [6, 0, 1, 2, 5, 7] -> ? Answer:
[6, 0, 1, 2, 5, 7] -> [6]
[6, 0, 1, 2, 5, 7]
[6]
c007
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the first 2 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 6, 4, 5, 7] -> [8, 6] [2, 4, 7, 0, 8, 3, 5, 6, 1, 9] -> [2, 4] [3, 4, 2, 1] -> [3, 4] [3] -> [3] [3, 1, 0, 5, 7, 6, 2, 8] -> [3, 1] [0, 1, 4, 7, 5, 6, 3, 8, 2, 9] -> [0, 1] [5] -> [5] [6, 1, 7, 9, 5] -> [6, 1] Questions: [2, 0, 5, 1, 3, 8, 9, 4, 7] -> ? Answer:
[2, 0, 5, 1, 3, 8, 9, 4, 7] -> [2, 0]
[2, 0, 5, 1, 3, 8, 9, 4, 7]
[2, 0]
c166
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in ascending order by the sum of their digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 49, 53, 70, 8, 14, 94, 7] -> [14, 61, 70, 7, 53, 8, 49, 94] [98, 41, 5, 3, 20, 7, 4, 37, 55, 36] -> [20, 3, 4, 41, 5, 7, 36, 37, 55, 98] [93, 70, 19, 5, 52, 8, 0, 61] -> [0, 5, 70, 52, 61, 8, 19, 93] [37, 1, 43, 63, 93, 26, 4, 73] -> [1, 4, 43, 26, 63, 37, 73, 93] [2, 65, 4, 7, 25, 98, 6] -> [2, 4, 6, 7, 25, 65, 98] [43, 96, 0, 27, 85, 7] -> [0, 43, 7, 27, 85, 96] [73, 93, 6, 25, 71, 9, 53, 84, 1, 3] -> [1, 3, 6, 25, 71, 53, 9, 73, 93, 84] [2, 66, 6, 50, 21, 74, 14, 4, 1, 29] -> [1, 2, 21, 4, 50, 14, 6, 74, 29, 66] Questions: [45, 54, 48, 65, 49, 45] -> ? Answer:
[45, 54, 48, 65, 49, 45] -> [45, 54, 65, 48, 49]
[45, 54, 48, 65, 49, 45]
[45, 54, 65, 48, 49]
c019
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 6 with a 3 if there is an element 6".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 4, 5, 6, 2, 0, 7, 8] -> [9, 4, 5, 6, 2, 3, 7, 8] [4] -> [4] [1, 6, 5, 4, 9, 8, 0, 3] -> [1, 6, 5, 4, 9, 3, 0, 3] [0, 9, 1, 7, 3, 5] -> [0, 9, 1, 7, 3, 3] [5, 7, 8, 2, 1, 4, 6] -> [5, 7, 8, 2, 1, 3, 6] [7] -> [7] [9, 2, 6, 0, 1, 4, 7] -> [9, 2, 6, 0, 1, 3, 7] [8, 2, 0, 9] -> [8, 2, 0, 9] Questions: [2, 4, 0, 6, 5, 7] -> ? Answer:
[2, 4, 0, 6, 5, 7] -> [2, 4, 0, 6, 5, 3]
[2, 4, 0, 6, 5, 7]
[2, 4, 0, 6, 5, 3]
c055
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6] [4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0] [3, 8, 0, 7] -> [0, 7, 3, 8] [3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4] [0, 3, 7, 1, 5, 8, 9, 6, 4, 2] -> [7, 1, 0, 3, 5, 8, 9, 6, 4, 2] [7, 1, 8, 0, 3, 4, 9] -> [8, 0, 7, 1, 3, 4, 9] [9, 4] -> [9, 4] [9, 6, 8, 7, 5, 0, 1, 4] -> [8, 7, 9, 6, 5, 0, 1, 4] Questions: [4, 2, 1, 8, 6] -> ? Answer:
[4, 2, 1, 8, 6] -> [1, 8, 4, 2, 6]
[4, 2, 1, 8, 6]
[1, 8, 4, 2, 6]
c047
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [9, 6, 3, 8, 5] and input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 2, 0, 6, 3, 1, 5, 7, 9] -> [9, 6, 3, 8, 5, 8, 2, 0, 6, 3, 1, 5, 7, 9] [7, 1, 9, 2] -> [9, 6, 3, 8, 5, 7, 1, 9, 2] [0, 5, 4] -> [9, 6, 3, 8, 5, 0, 5, 4] [1] -> [9, 6, 3, 8, 5, 1] [6, 1, 0, 2, 7, 8, 9, 3, 5, 4] -> [9, 6, 3, 8, 5, 6, 1, 0, 2, 7, 8, 9, 3, 5, 4] [2, 8, 6, 7, 1] -> [9, 6, 3, 8, 5, 2, 8, 6, 7, 1] [1, 7, 4, 8, 5, 2, 3, 9, 6, 0] -> [9, 6, 3, 8, 5, 1, 7, 4, 8, 5, 2, 3, 9, 6, 0] [] -> [9, 6, 3, 8, 5] Questions: [2, 5] -> ? Answer:
[2, 5] -> [9, 6, 3, 8, 5, 2, 5]
[2, 5]
[9, 6, 3, 8, 5, 2, 5]
c127
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [47] -> [] [51, 40, 36, 45, 20, 7, 6] -> [51, 40, 36, 45, 20, 7] [7, 0, 38, 5, 23, 3, 1, 14, 84, 92] -> [7, 0, 38, 5, 23, 3, 1, 14, 84] [9, 43, 60, 83, 5, 18] -> [9, 43, 60, 83, 5] [8, 25, 0, 4, 77, 6, 83, 78, 35] -> [8, 25, 0, 4, 77, 6, 83, 78] [71, 7, 31, 40, 9, 16, 86, 6] -> [71, 7, 31, 40, 9, 16, 86] [53, 34, 39, 85, 8, 87, 2, 99, 62] -> [53, 34, 39, 85, 8, 87, 2, 99] [8, 0, 59, 43, 5, 11, 6, 2, 1] -> [8, 0, 59, 43, 5, 11, 6, 2] Questions: [5, 75, 56, 55, 58] -> ? Answer:
[5, 75, 56, 55, 58] -> [5, 75, 56, 55]
[5, 75, 56, 55, 58]
[5, 75, 56, 55]