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
c034
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: [1, 6, 8, 9, 2] -> [1, 8, 6, 9, 2] [1, 4, 3, 8, 5, 0, 2] -> [1, 3, 4, 8, 5, 0, 2] [9, 0, 3, 1, 7, 2, 6, 5] -> [9, 3, 0, 1, 7, 2, 6, 5] [0, 8, 5, 4, 3, 2, 7] -> [0, 5, 8, 4, 3, 2, 7] [7, 6, 2, 5, 0, 9, 1, 8, 3] -> [7, 2, 6, 5, 0, 9, 1, 8, 3] [9, 4, 0, 5] -> [9, 0, 4, 5] [2, 4, 6, 1, 7, 9] -> [2, 6, 4, 1, 7, 9] [0, 6, 4, 7, 1] -> [0, 4, 6, 7, 1] Questions: [7, 9, 0, 4] -> ? Answer:
[7, 9, 0, 4] -> [7, 0, 9, 4]
[7, 9, 0, 4]
[7, 0, 9, 4]
c064
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 first and last elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 8, 4] -> [8] [7, 1, 2, 9, 3, 0, 8, 4, 5, 6] -> [1, 2, 9, 3, 0, 8, 4, 5] [7, 9, 3, 6, 5, 1, 2, 8, 0] -> [9, 3, 6, 5, 1, 2, 8] [1, 6, 7, 2, 3, 5, 0, 4, 9] -> [6, 7, 2, 3, 5, 0, 4] [0, 5] -> [] [8, 7, 5, 2, 0, 4] -> [7, 5, 2, 0] [8, 3, 6, 1] -> [3, 6] [8, 2, 1, 0, 9, 7, 3, 6] -> [2, 1, 0, 9, 7, 3] Questions: [6, 1, 9, 8, 2] -> ? Answer:
[6, 1, 9, 8, 2] -> [1, 9, 8]
[6, 1, 9, 8, 2]
[1, 9, 8]
c097
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 [11, 21, 43, 19], input, and [7, 89, 0, 57]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 46, 9] -> [11, 21, 43, 19, 84, 46, 9, 7, 89, 0, 57] [27, 1, 53, 9] -> [11, 21, 43, 19, 27, 1, 53, 9, 7, 89, 0, 57] [27, 98, 73, 6, 67, 42] -> [11, 21, 43, 19, 27, 98, 73, 6, 67, 42, 7, 89, 0, 57] [91, 72, 12, 88, 66] -> [11, 21, 43, 19, 91, 72, 12, 88, 66, 7, 89, 0, 57] [9, 74, 1, 51, 55, 97] -> [11, 21, 43, 19, 9, 74, 1, 51, 55, 97, 7, 89, 0, 57] [37, 58] -> [11, 21, 43, 19, 37, 58, 7, 89, 0, 57] [8, 23, 39] -> [11, 21, 43, 19, 8, 23, 39, 7, 89, 0, 57] [6, 37, 44, 31, 5, 81] -> [11, 21, 43, 19, 6, 37, 44, 31, 5, 81, 7, 89, 0, 57] Questions: [22, 1, 8, 52, 0, 31, 23] -> ? Answer:
[22, 1, 8, 52, 0, 31, 23] -> [11, 21, 43, 19, 22, 1, 8, 52, 0, 31, 23, 7, 89, 0, 57]
[22, 1, 8, 52, 0, 31, 23]
[11, 21, 43, 19, 22, 1, 8, 52, 0, 31, 23, 7, 89, 0, 57]
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: [0, 9, 1, 3, 4, 6] -> ? Answer:
[0, 9, 1, 3, 4, 6] -> [0, 9, 1, 3, 4, 6, 0, 9, 1, 3, 4, 6]
[0, 9, 1, 3, 4, 6]
[0, 9, 1, 3, 4, 6, 0, 9, 1, 3, 4, 6]
c203
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 first M positive multiples of the smallest element, where M is the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 60, 47] -> [31, 62, 93] [58, 33] -> [33, 66] [2, 23, 94, 91, 14, 1, 36, 32, 97, 77] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [8, 86, 35, 22, 9] -> [8, 16, 24, 32, 40] [91] -> [91] [22, 25] -> [22, 44] [67, 46, 27] -> [27, 54, 81] [56, 97, 24, 79] -> [24, 48, 72, 96] Questions: [] -> ? Answer:
[] -> []
[]
[]
c164
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 / 4 + 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 13, 9, 2, 6, 63, 0, 3, 15, 7] -> [7, 8, 7, 5, 6, 20, 5, 5, 8, 6] [27] -> [11] [0, 16, 98, 4, 46, 52, 40, 2] -> [5, 9, 29, 6, 16, 18, 15, 5] [12, 28, 22, 1, 5, 4] -> [8, 12, 10, 5, 6, 6] [26] -> [11] [1, 34, 93, 9, 5, 6, 2, 3, 99, 92] -> [5, 13, 28, 7, 6, 6, 5, 5, 29, 28] [7, 3, 87, 0, 34, 66, 97, 64, 9] -> [6, 5, 26, 5, 13, 21, 29, 21, 7] [23, 7, 8, 97, 15, 55, 0, 49, 92] -> [10, 6, 7, 29, 8, 18, 5, 17, 28] Questions: [12, 24, 3, 5, 42, 0, 25, 73] -> ? Answer:
[12, 24, 3, 5, 42, 0, 25, 73] -> [8, 11, 5, 6, 15, 5, 11, 23]
[12, 24, 3, 5, 42, 0, 25, 73]
[8, 11, 5, 6, 15, 5, 11, 23]
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: [6, 33, 4, 77, 8, 21, 29, 23] -> ? Answer:
[6, 33, 4, 77, 8, 21, 29, 23] -> [23, 21, 77, 33, 6, 4, 8, 29]
[6, 33, 4, 77, 8, 21, 29, 23]
[23, 21, 77, 33, 6, 4, 8, 29]
c122
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 penultimate element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [68, 58, 4, 55, 10, 27, 46, 16, 90, 2] -> [90] [2, 66, 10, 90, 27, 6] -> [27] [53, 0, 15, 9, 5, 65, 1, 63] -> [1] [14, 79] -> [14] [44, 0] -> [44] [42, 55] -> [42] [8, 79, 45, 7, 68, 75, 84, 9] -> [84] [53, 49, 52, 1] -> [52] Questions: [47, 1, 89, 39] -> ? Answer:
[47, 1, 89, 39] -> [89]
[47, 1, 89, 39]
[89]
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: [0, 91] -> ? Answer:
[0, 91] -> [0, 9]
[0, 91]
[0, 9]
c225
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 first and last two elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 5, 10, 34, 57, 44] -> [10, 34] [6, 5, 11, 42, 91, 70, 4] -> [11, 42, 91] [3, 91, 25, 90, 92, 0] -> [25, 90] [24, 46, 0, 31, 74, 5, 44, 80, 94] -> [0, 31, 74, 5, 44] [99, 9, 35, 98, 7, 54, 69, 8, 6] -> [35, 98, 7, 54, 69] [58, 8, 86, 6, 5] -> [86] [1, 6, 5, 48, 3, 76, 7, 83] -> [5, 48, 3, 76] [2, 7, 9, 20, 32, 60, 13] -> [9, 20, 32] Questions: [2, 1, 95, 58, 93, 79, 4, 6, 9, 55] -> ? Answer:
[2, 1, 95, 58, 93, 79, 4, 6, 9, 55] -> [95, 58, 93, 79, 4, 6]
[2, 1, 95, 58, 93, 79, 4, 6, 9, 55]
[95, 58, 93, 79, 4, 6]
c011
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 2 through 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8] -> [8] [0, 8, 7, 9] -> [8, 7, 9] [7, 6] -> [6] [7] -> [] [8, 9, 6, 5, 4] -> [9, 6, 5] [7, 4] -> [4] [8, 2, 1, 6, 7] -> [2, 1, 6] [3, 0, 4] -> [0, 4] Questions: [4, 2, 0, 3, 5, 1, 9, 7] -> ? Answer:
[4, 2, 0, 3, 5, 1, 9, 7] -> [2, 0, 3]
[4, 2, 0, 3, 5, 1, 9, 7]
[2, 0, 3]
c106
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [43, 0, 98, 5, 2] -> [0, 2, 5, 43, 98] [76, 70, 7, 2, 0, 7] -> [0, 2, 7, 7, 70, 76] [66, 28, 1, 11, 96, 80, 64] -> [1, 11, 28, 64, 66, 80, 96] [72, 93, 0, 43] -> [0, 43, 72, 93] [87, 2, 55, 30, 34, 61] -> [2, 30, 34, 55, 61, 87] [86, 1, 89, 29] -> [1, 29, 86, 89] [3, 74, 25, 6] -> [3, 6, 25, 74] [32, 21, 84, 42, 14] -> [14, 21, 32, 42, 84] Questions: [27, 34, 37, 86, 2, 45] -> ? Answer:
[27, 34, 37, 86, 2, 45] -> [2, 27, 34, 37, 45, 86]
[27, 34, 37, 86, 2, 45]
[2, 27, 34, 37, 45, 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: [53, 9, 88] -> ? Answer:
[53, 9, 88] -> [3, 88, 9, 53, 3]
[53, 9, 88]
[3, 88, 9, 53, 3]
c085
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 N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 62, 4] -> [62] [5, 17, 1, 4, 3, 88, 68] -> [88] [1, 56, 7, 30] -> [56] [2, 1, 40, 92, 26, 95, 45] -> [40] [3, 79, 55, 55, 1, 74] -> [55] [1, 14, 3, 2, 78, 9] -> [14] [3, 23, 72, 23] -> [23] [3, 7, 55, 75, 5, 24, 14, 1] -> [75] Questions: [4, 5, 44, 65, 65, 8] -> ? Answer:
[4, 5, 44, 65, 65, 8] -> [65]
[4, 5, 44, 65, 65, 8]
[65]
c085
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 N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 62, 4] -> [62] [5, 17, 1, 4, 3, 88, 68] -> [88] [1, 56, 7, 30] -> [56] [2, 1, 40, 92, 26, 95, 45] -> [40] [3, 79, 55, 55, 1, 74] -> [55] [1, 14, 3, 2, 78, 9] -> [14] [3, 23, 72, 23] -> [23] [3, 7, 55, 75, 5, 24, 14, 1] -> [75] Questions: [5, 4, 72, 73, 87, 90] -> ? Answer:
[5, 4, 72, 73, 87, 90] -> [90]
[5, 4, 72, 73, 87, 90]
[90]
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: [95, 1, 54, 34, 6, 33, 72, 0, 8] -> ? Answer:
[95, 1, 54, 34, 6, 33, 72, 0, 8] -> [96, 3, 57, 38, 11, 39, 79, 8, 17]
[95, 1, 54, 34, 6, 33, 72, 0, 8]
[96, 3, 57, 38, 11, 39, 79, 8, 17]
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: [7] -> ? Answer:
[7] -> [1]
[7]
[1]
c234
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repetitions in order of first appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [76, 42, 17, 76, 17] -> [76, 17] [57, 77, 57, 77, 77, 77] -> [57, 77, 77, 77] [0, 17, 17, 17, 70, 17] -> [17, 17, 17] [62, 6, 48, 1, 67, 69, 0, 59, 15, 48] -> [48] [81, 58, 58, 58, 58, 81, 58, 81, 81] -> [81, 81, 81, 58, 58, 58, 58] [97, 97, 97, 97] -> [97, 97, 97] [95, 95, 79, 5, 6, 22, 2] -> [95] [98, 2, 77, 98, 19] -> [98] Questions: [20, 66, 59, 7, 56, 59, 56] -> ? Answer:
[20, 66, 59, 7, 56, 59, 56] -> [59, 56]
[20, 66, 59, 7, 56, 59, 56]
[59, 56]
c169
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "second largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [38, 4, 32, 9, 28, 96, 21, 59, 14, 8] -> [59] [1, 37, 2, 59, 60, 71, 96, 30] -> [71] [34, 9, 6, 42, 0, 8, 36] -> [36] [66, 7, 31, 0, 8, 4, 2, 65, 1, 86] -> [66] [1, 6, 3, 62, 2, 87] -> [62] [69, 67, 75, 9, 66, 34, 4] -> [69] [18, 40, 0, 58, 33, 5, 6] -> [40] [62, 76, 4, 0, 42, 91, 8, 98] -> [91] Questions: [10, 51, 3, 6, 1, 2, 12, 27] -> ? Answer:
[10, 51, 3, 6, 1, 2, 12, 27] -> [27]
[10, 51, 3, 6, 1, 2, 12, 27]
[27]
c131
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 tens digit is even".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [80, 0, 97, 50, 3, 6] -> [80, 0, 3, 6] [9, 7, 75, 26, 3, 8, 82, 0, 94] -> [9, 7, 26, 3, 8, 82, 0] [36, 7] -> [7] [7, 66, 0, 6, 42, 9, 52, 80, 23, 81] -> [7, 66, 0, 6, 42, 9, 80, 23, 81] [0, 69, 9, 10, 1, 72, 6, 37] -> [0, 69, 9, 1, 6] [55, 88, 39, 1, 95, 85, 6] -> [88, 1, 85, 6] [53, 74, 15, 74, 53, 0, 15, 53, 53] -> [0] [4, 69, 7, 50] -> [4, 69, 7] Questions: [93] -> ? Answer:
[93] -> []
[93]
[]
c226
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 first M and last N elements, M = element 1, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 25, 4, 98, 0, 8, 30, 82, 1] -> [98, 0, 8, 30, 82] [1, 37, 4, 88, 4, 1, 88, 1, 1] -> [37, 4, 88, 4, 1, 88, 1] [3, 77, 41, 5, 28, 1, 2, 6, 69, 3] -> [5, 28, 1, 2] [2, 4, 21, 0, 0, 1] -> [21, 0, 0] [1, 33, 1, 95, 1, 6, 9, 3, 2] -> [33, 1, 95, 1, 6, 9] [1, 8, 32, 0, 3, 40, 62, 6] -> [8] [1, 85, 34, 95, 58, 68, 9, 2, 4] -> [85, 34, 95, 58] [5, 9, 9, 8, 4, 55, 1] -> [55] Questions: [1, 1, 1] -> ? Answer:
[1, 1, 1] -> [1]
[1, 1, 1]
[1]
c022
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 5 as element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 0, 3] -> [6, 5, 0, 3] [1, 4] -> [1, 5, 4] [5, 6, 3, 9, 2, 0] -> [5, 5, 6, 3, 9, 2, 0] [6, 8, 9, 0, 5, 3, 2, 4, 7, 1] -> [6, 5, 8, 9, 0, 5, 3, 2, 4, 7, 1] [7, 2, 4, 8, 9, 3, 5, 1, 6, 0] -> [7, 5, 2, 4, 8, 9, 3, 5, 1, 6, 0] [1, 7, 3, 0] -> [1, 5, 7, 3, 0] [1, 7, 6, 8, 4] -> [1, 5, 7, 6, 8, 4] [4, 8, 3] -> [4, 5, 8, 3] Questions: [7, 9, 3, 5, 1, 4, 0] -> ? Answer:
[7, 9, 3, 5, 1, 4, 0] -> [7, 5, 9, 3, 5, 1, 4, 0]
[7, 9, 3, 5, 1, 4, 0]
[7, 5, 9, 3, 5, 1, 4, 0]
c103
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: [24, 47, 46, 40, 20] -> [5] [5, 99, 8, 30, 42, 13, 2, 83, 58, 44] -> [10] [40, 11] -> [2] [44, 6, 51, 71, 81, 68, 3] -> [7] [35, 17, 3, 6, 23, 0, 5, 90] -> [8] [9, 97, 28, 78, 48, 6, 31] -> [7] [71, 80] -> [2] [86, 27, 53] -> [3] Questions: [11, 65, 87, 88, 0, 5, 73, 93, 52, 22] -> ? Answer:
[11, 65, 87, 88, 0, 5, 73, 93, 52, 22] -> [10]
[11, 65, 87, 88, 0, 5, 73, 93, 52, 22]
[10]
c059
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 4 and 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 5, 2, 9, 1, 8, 7, 6] -> [4, 3, 5, 7, 9, 1, 8, 2, 6] [7, 0, 5, 2, 8, 4, 9, 1, 3] -> [7, 0, 5, 1, 8, 4, 9, 2, 3] [6, 4, 5, 0, 3, 1, 7, 9, 2] -> [6, 4, 5, 9, 3, 1, 7, 0, 2] [9, 4, 2, 3, 4, 1, 6, 8, 0, 7] -> [9, 4, 2, 8, 4, 1, 6, 3, 0, 7] [6, 3, 8, 5, 2, 1, 0, 4] -> [6, 3, 8, 4, 2, 1, 0, 5] [6, 7, 3, 1, 9, 5, 8, 0] -> [6, 7, 3, 0, 9, 5, 8, 1] [3, 1, 5, 8, 7, 4, 0, 9, 6, 2] -> [3, 1, 5, 9, 7, 4, 0, 8, 6, 2] [0, 6, 7, 9, 3, 5, 4, 2, 8] -> [0, 6, 7, 2, 3, 5, 4, 9, 8] Questions: [6, 3, 5, 4, 1, 7, 0, 8, 2] -> ? Answer:
[6, 3, 5, 4, 1, 7, 0, 8, 2] -> [6, 3, 5, 8, 1, 7, 0, 4, 2]
[6, 3, 5, 4, 1, 7, 0, 8, 2]
[6, 3, 5, 8, 1, 7, 0, 4, 2]
c203
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 first M positive multiples of the smallest element, where M is the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 60, 47] -> [31, 62, 93] [58, 33] -> [33, 66] [2, 23, 94, 91, 14, 1, 36, 32, 97, 77] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [8, 86, 35, 22, 9] -> [8, 16, 24, 32, 40] [91] -> [91] [22, 25] -> [22, 44] [67, 46, 27] -> [27, 54, 81] [56, 97, 24, 79] -> [24, 48, 72, 96] Questions: [46, 46] -> ? Answer:
[46, 46] -> [46, 92]
[46, 46]
[46, 92]
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, 48, 54, 54, 2, 9, 31] -> ? Answer:
[5, 48, 54, 54, 2, 9, 31] -> [5, 48, 54, 2, 31, 9, 31]
[5, 48, 54, 54, 2, 9, 31]
[5, 48, 54, 2, 31, 9, 31]
c164
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 / 4 + 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 13, 9, 2, 6, 63, 0, 3, 15, 7] -> [7, 8, 7, 5, 6, 20, 5, 5, 8, 6] [27] -> [11] [0, 16, 98, 4, 46, 52, 40, 2] -> [5, 9, 29, 6, 16, 18, 15, 5] [12, 28, 22, 1, 5, 4] -> [8, 12, 10, 5, 6, 6] [26] -> [11] [1, 34, 93, 9, 5, 6, 2, 3, 99, 92] -> [5, 13, 28, 7, 6, 6, 5, 5, 29, 28] [7, 3, 87, 0, 34, 66, 97, 64, 9] -> [6, 5, 26, 5, 13, 21, 29, 21, 7] [23, 7, 8, 97, 15, 55, 0, 49, 92] -> [10, 6, 7, 29, 8, 18, 5, 17, 28] Questions: [35, 4, 98, 7, 3, 2, 88, 1, 13, 8] -> ? Answer:
[35, 4, 98, 7, 3, 2, 88, 1, 13, 8] -> [13, 6, 29, 6, 5, 5, 27, 5, 8, 7]
[35, 4, 98, 7, 3, 2, 88, 1, 13, 8]
[13, 6, 29, 6, 5, 5, 27, 5, 8, 7]
c148
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 1 to each original element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 4] -> [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4] [2, 5, 2, 5] -> [1, 2, 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5] [1, 5, 3, 4] -> [1, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4] [3, 3, 1, 0] -> [1, 2, 3, 1, 2, 3, 1] [2, 1, 1] -> [1, 2, 1, 1] [5, 3, 1] -> [1, 2, 3, 4, 5, 1, 2, 3, 1] [6, 3, 3] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3] [6, 4, 1] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1] Questions: [] -> ? Answer:
[] -> []
[]
[]
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: [60, 50, 8, 1, 54, 95] -> ? Answer:
[60, 50, 8, 1, 54, 95] -> [60, 0, 50, 0, 8, 0, 1, 1, 54, 0, 95, 1]
[60, 50, 8, 1, 54, 95]
[60, 0, 50, 0, 8, 0, 1, 1, 54, 0, 95, 1]
c184
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 odd elements with an even index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 48, 8, 2, 98, 13] -> [1] [67, 78, 17, 5, 55, 3, 6, 4, 41] -> [5, 3] [3, 5, 6, 21, 15, 77, 8, 86, 1] -> [5, 21, 77] [90, 31, 8, 2, 7, 24] -> [31] [9, 8, 0, 58, 21, 3] -> [3] [5, 10, 96, 79, 1, 7, 9, 99] -> [79, 7, 99] [9, 6, 2, 64, 15, 84] -> [] [3, 41, 7, 1, 11, 77, 9, 61, 4, 17] -> [41, 1, 77, 61, 17] Questions: [6, 5, 0, 37, 52, 36] -> ? Answer:
[6, 5, 0, 37, 52, 36] -> [5, 37]
[6, 5, 0, 37, 52, 36]
[5, 37]
c119
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 or append 8, if necessary, so the list begins and ends with 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [37] -> [8, 37, 8] [99, 7, 79, 8] -> [8, 99, 7, 79, 8] [39, 8, 39, 77, 8] -> [8, 39, 8, 39, 77, 8] [8, 5] -> [8, 5, 8] [8, 3, 8, 70, 90] -> [8, 3, 8, 70, 90, 8] [58, 9, 8] -> [8, 58, 9, 8] [8, 6, 99, 34, 8] -> [8, 6, 99, 34, 8] [8, 8] -> [8, 8] Questions: [67, 13, 79] -> ? Answer:
[67, 13, 79] -> [8, 67, 13, 79, 8]
[67, 13, 79]
[8, 67, 13, 79, 8]
c234
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repetitions in order of first appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [76, 42, 17, 76, 17] -> [76, 17] [57, 77, 57, 77, 77, 77] -> [57, 77, 77, 77] [0, 17, 17, 17, 70, 17] -> [17, 17, 17] [62, 6, 48, 1, 67, 69, 0, 59, 15, 48] -> [48] [81, 58, 58, 58, 58, 81, 58, 81, 81] -> [81, 81, 81, 58, 58, 58, 58] [97, 97, 97, 97] -> [97, 97, 97] [95, 95, 79, 5, 6, 22, 2] -> [95] [98, 2, 77, 98, 19] -> [98] Questions: [46, 46, 46, 46, 46, 46] -> ? Answer:
[46, 46, 46, 46, 46, 46] -> [46, 46, 46, 46, 46]
[46, 46, 46, 46, 46, 46]
[46, 46, 46, 46, 46]
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: [29, 9, 86] -> ? Answer:
[29, 9, 86] -> [3, 86, 9, 29, 3]
[29, 9, 86]
[3, 86, 9, 29, 3]
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, 3, 13, 7, 44] -> ? Answer:
[9, 3, 13, 7, 44] -> [15]
[9, 3, 13, 7, 44]
[15]
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: [53, 63, 83, 24, 0] -> ? Answer:
[53, 63, 83, 24, 0] -> [53, 63, 83, 24, 63, 83, 24, 0]
[53, 63, 83, 24, 0]
[53, 63, 83, 24, 63, 83, 24, 0]
c138
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 element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [30, 71, 30, 30, 47, 47, 90, 59, 59, 90] -> [71, 47, 47, 90, 59, 59, 90] [30, 47, 30, 30, 78, 8, 47, 78] -> [47, 78, 8, 47, 78] [90, 90, 90] -> [] [58, 58, 2, 58] -> [2] [25, 80] -> [80] [3, 83, 3, 8, 36, 28, 28, 9, 8] -> [83, 8, 36, 28, 28, 9, 8] [92, 92, 8, 92] -> [8] [38, 45, 9, 8, 47, 38, 3, 81, 47, 45] -> [45, 9, 8, 47, 3, 81, 47, 45] Questions: [19, 19, 64, 64, 19, 64, 4, 32, 19] -> ? Answer:
[19, 19, 64, 64, 19, 64, 4, 32, 19] -> [64, 64, 64, 4, 32]
[19, 19, 64, 64, 19, 64, 4, 32, 19]
[64, 64, 64, 4, 32]
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: [6, 5, 7] -> ? Answer:
[6, 5, 7] -> [8, 7, 9]
[6, 5, 7]
[8, 7, 9]
c028
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 2 if element 1 > element 2, else remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 7, 3, 8, 3, 8] -> [4, 7, 8, 3, 8] [1, 0, 9, 8, 2, 7, 3, 6, 5, 4] -> [1, 9, 8, 2, 7, 3, 6, 5, 4] [8, 7, 9, 1, 4, 5, 5, 5, 3, 2] -> [8, 9, 1, 4, 5, 5, 5, 3, 2] [7, 0, 8] -> [7, 8] [4, 5, 1, 5, 4, 1, 4, 5] -> [4, 5, 5, 4, 1, 4, 5] [2, 9, 1, 5, 0, 3, 7, 8, 6, 4] -> [2, 9, 5, 0, 3, 7, 8, 6, 4] [3, 2, 9] -> [3, 9] [7, 9, 4, 2, 0, 5, 8] -> [7, 9, 2, 0, 5, 8] Questions: [3, 5, 1, 0, 1, 2, 0, 2] -> ? Answer:
[3, 5, 1, 0, 1, 2, 0, 2] -> [3, 5, 0, 1, 2, 0, 2]
[3, 5, 1, 0, 1, 2, 0, 2]
[3, 5, 0, 1, 2, 0, 2]
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: [0, 6, 1, 9, 2, 8, 5] -> ? Answer:
[0, 6, 1, 9, 2, 8, 5] -> [0, 6, 1, 9, 2, 8, 5, 9]
[0, 6, 1, 9, 2, 8, 5]
[0, 6, 1, 9, 2, 8, 5, 9]
c094
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: [27, 4, 70, 28, 91, 82, 80, 7, 0] -> [70, 28, 27, 4, 91, 82, 80, 7, 0] [37, 5, 34, 45, 63, 25] -> [34, 45, 37, 5, 63, 25] [34, 8, 5, 0, 86, 52, 53, 33, 4, 1] -> [5, 0, 34, 8, 86, 52, 53, 33, 4, 1] [22, 2, 27, 48] -> [27, 48, 22, 2] [6, 59, 5] -> [5, 6, 59] [18, 6, 8, 54, 2, 38, 91] -> [8, 54, 18, 6, 2, 38, 91] [5, 73, 6, 2, 89, 87, 30, 85, 64, 1] -> [6, 2, 5, 73, 89, 87, 30, 85, 64, 1] [8, 26, 9, 31, 4, 13, 7, 50] -> [9, 31, 8, 26, 4, 13, 7, 50] Questions: [78, 61, 79, 88, 5, 21, 3, 2] -> ? Answer:
[78, 61, 79, 88, 5, 21, 3, 2] -> [79, 88, 78, 61, 5, 21, 3, 2]
[78, 61, 79, 88, 5, 21, 3, 2]
[79, 88, 78, 61, 5, 21, 3, 2]
c024
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 as element 2: 8 if element 1 > 5 else 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 2, 4, 6, 7] -> [9, 5, 3, 2, 4, 6, 7] [6, 8, 2, 0, 1] -> [6, 5, 8, 2, 0, 1] [0, 1, 8, 4, 2, 6, 9, 7, 5] -> [0, 8, 1, 8, 4, 2, 6, 9, 7, 5] [0, 1, 5, 3, 2, 6, 9] -> [0, 8, 1, 5, 3, 2, 6, 9] [6, 7, 9, 1, 0] -> [6, 5, 7, 9, 1, 0] [6, 8, 3, 0, 5, 2, 4, 7] -> [6, 5, 8, 3, 0, 5, 2, 4, 7] [3, 0, 1, 4, 5, 9] -> [3, 8, 0, 1, 4, 5, 9] [0, 7, 1, 2, 4] -> [0, 8, 7, 1, 2, 4] Questions: [6, 8, 1, 9, 0, 5, 7, 4, 3] -> ? Answer:
[6, 8, 1, 9, 0, 5, 7, 4, 3] -> [6, 5, 8, 1, 9, 0, 5, 7, 4, 3]
[6, 8, 1, 9, 0, 5, 7, 4, 3]
[6, 5, 8, 1, 9, 0, 5, 7, 4, 3]
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: [5, 0, 1, 0, 1, 89, 1] -> ? Answer:
[5, 0, 1, 0, 1, 89, 1] -> [1, 0, 1, 89, 0]
[5, 0, 1, 0, 1, 89, 1]
[1, 0, 1, 89, 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: [34, 29, 7, 9, 26, 5, 27, 46, 6, 90] -> ? Answer:
[34, 29, 7, 9, 26, 5, 27, 46, 6, 90] -> [43, 92, 70, 90, 62, 50, 72, 64, 60, 9]
[34, 29, 7, 9, 26, 5, 27, 46, 6, 90]
[43, 92, 70, 90, 62, 50, 72, 64, 60, 9]
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, 2, 2, 9, 2, 0, 5] -> ? Answer:
[4, 2, 2, 9, 2, 0, 5] -> [9, 2, 2, 4, 2, 0, 5]
[4, 2, 2, 9, 2, 0, 5]
[9, 2, 2, 4, 2, 0, 5]
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: [66, 2, 2, 80, 84, 80] -> ? Answer:
[66, 2, 2, 80, 84, 80] -> [66, 2, 2, 80]
[66, 2, 2, 80, 84, 80]
[66, 2, 2, 80]
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: [] -> ? Answer:
[] -> [17, 38, 82, 1, 55, 27]
[]
[17, 38, 82, 1, 55, 27]
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: [5, 8, 9, 1, 3, 2, 6, 4, 7] -> ? Answer:
[5, 8, 9, 1, 3, 2, 6, 4, 7] -> [5, 8, 9, 1, 3, 2, 6, 4, 7, 9]
[5, 8, 9, 1, 3, 2, 6, 4, 7]
[5, 8, 9, 1, 3, 2, 6, 4, 7, 9]
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: [4, 79, 57, 8, 55, 90, 6, 2, 3] -> ? Answer:
[4, 79, 57, 8, 55, 90, 6, 2, 3] -> [2, 3, 4, 6, 8, 90, 55, 57, 79]
[4, 79, 57, 8, 55, 90, 6, 2, 3]
[2, 3, 4, 6, 8, 90, 55, 57, 79]
c135
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 first 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 19, 7, 6, 9, 1, 5, 64, 47, 93] -> [2, 19, 6, 9, 1, 5, 64, 47, 93] [1, 69, 1, 7, 17, 17, 10, 7, 3, 37] -> [1, 69, 1, 17, 17, 10, 7, 3, 37] [7, 7, 9, 21, 7, 4, 4, 91, 0] -> [7, 9, 21, 7, 4, 4, 91, 0] [5, 7, 39, 7] -> [5, 39, 7] [7, 7, 7] -> [7, 7] [7, 7, 6, 6, 88, 7, 8] -> [7, 6, 6, 88, 7, 8] [7, 6, 9, 7] -> [6, 9, 7] [5, 7, 7, 7] -> [5, 7, 7] Questions: [42, 33, 49, 52, 1, 50, 7, 10] -> ? Answer:
[42, 33, 49, 52, 1, 50, 7, 10] -> [42, 33, 49, 52, 1, 50, 10]
[42, 33, 49, 52, 1, 50, 7, 10]
[42, 33, 49, 52, 1, 50, 10]
c009
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 6 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 2] -> [7, 2] [6, 2, 4, 9, 0, 8, 1] -> [6, 2, 4, 9, 0, 8] [8, 6, 1, 7, 2, 5] -> [8, 6, 1, 7, 2, 5] [1, 4, 0, 3, 6, 8, 9, 2] -> [1, 4, 0, 3, 6, 8] [9] -> [9] [6, 9, 4, 1] -> [6, 9, 4, 1] [1, 7, 5, 2, 3, 0, 8] -> [1, 7, 5, 2, 3, 0] [7, 8, 9, 2, 3] -> [7, 8, 9, 2, 3] Questions: [9, 2, 4, 5] -> ? Answer:
[9, 2, 4, 5] -> [9, 2, 4, 5]
[9, 2, 4, 5]
[9, 2, 4, 5]
c235
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 up and down between elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 5] -> [5, 4, 3, 2, 1, 2, 3, 4, 5] [0, 1] -> [0, 1] [51, 51, 51, 47] -> [51, 50, 49, 48, 47] [63, 67, 63] -> [63, 64, 65, 66, 67, 66, 65, 64, 63] [3, 1, 0, 1] -> [3, 2, 1, 0, 1] [6, 9, 8, 1] -> [6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1] [5, 4, 5] -> [5, 4, 5] [3, 4, 8, 9] -> [3, 4, 5, 6, 7, 8, 9] Questions: [9, 4, 2] -> ? Answer:
[9, 4, 2] -> [9, 8, 7, 6, 5, 4, 3, 2]
[9, 4, 2]
[9, 8, 7, 6, 5, 4, 3, 2]
c156
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 add each element to its new index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 64, 6, 94, 79, 5, 9, 26] -> [27, 11, 8, 83, 99, 12, 71, 12] [3, 25, 2, 83, 1, 5, 0, 19, 9, 64] -> [65, 11, 22, 4, 10, 7, 90, 10, 34, 13] [3, 59, 76, 6, 81, 1] -> [2, 83, 9, 80, 64, 9] [11, 17, 1, 5, 62, 10, 14] -> [15, 12, 65, 9, 6, 23, 18] [4, 76, 71, 2, 52, 6, 94, 1] -> [2, 96, 9, 56, 7, 77, 83, 12] [66, 7, 5, 4, 12, 6, 16, 70, 37] -> [38, 72, 19, 10, 17, 10, 12, 15, 75] [92, 1, 7, 9, 69, 6] -> [7, 71, 12, 11, 6, 98] [6, 18, 8, 1, 3, 2, 17] -> [18, 4, 6, 5, 13, 24, 13] Questions: [9, 37, 39, 96, 5, 52] -> ? Answer:
[9, 37, 39, 96, 5, 52] -> [53, 7, 99, 43, 42, 15]
[9, 37, 39, 96, 5, 52]
[53, 7, 99, 43, 42, 15]
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: [8, 7, 9, 4, 5, 3, 1, 6, 2, 0] -> ? Answer:
[8, 7, 9, 4, 5, 3, 1, 6, 2, 0] -> [4, 7, 9, 8, 5, 3, 1, 6, 2, 0]
[8, 7, 9, 4, 5, 3, 1, 6, 2, 0]
[4, 7, 9, 8, 5, 3, 1, 6, 2, 0]
c068
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 and [7, 3, 8, 4, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 9] -> [0, 9, 7, 3, 8, 4, 3] [4, 6, 9, 0, 5] -> [4, 6, 9, 0, 5, 7, 3, 8, 4, 3] [9, 5, 7, 0, 1, 6, 2, 4, 8, 3] -> [9, 5, 7, 0, 1, 6, 2, 4, 8, 3, 7, 3, 8, 4, 3] [2, 7] -> [2, 7, 7, 3, 8, 4, 3] [4, 8, 1, 9, 3, 0, 2, 5, 6, 7] -> [4, 8, 1, 9, 3, 0, 2, 5, 6, 7, 7, 3, 8, 4, 3] [2] -> [2, 7, 3, 8, 4, 3] [1, 6, 7, 5, 2, 0] -> [1, 6, 7, 5, 2, 0, 7, 3, 8, 4, 3] [3, 7, 1, 2, 6, 9, 0, 4, 8, 5] -> [3, 7, 1, 2, 6, 9, 0, 4, 8, 5, 7, 3, 8, 4, 3] Questions: [8, 9, 5, 1] -> ? Answer:
[8, 9, 5, 1] -> [8, 9, 5, 1, 7, 3, 8, 4, 3]
[8, 9, 5, 1]
[8, 9, 5, 1, 7, 3, 8, 4, 3]
c193
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 in ascending order, minus an occurrence of both the smallest and largest elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [64, 85, 45, 1, 7, 52, 1, 60, 64, 6] -> [1, 6, 7, 45, 52, 60, 64, 64] [52, 6, 54, 0, 5, 33, 8, 82, 92] -> [5, 6, 8, 33, 52, 54, 82] [53, 50, 1, 7, 9, 74, 0, 25, 80, 4] -> [1, 4, 7, 9, 25, 50, 53, 74] [66, 9, 2, 8, 8, 34, 3, 1, 0] -> [1, 2, 3, 8, 8, 9, 34] [43, 0, 39, 4, 53, 57, 55, 52, 8] -> [4, 8, 39, 43, 52, 53, 55] [0, 3, 2, 6, 53, 8, 20, 5, 37] -> [2, 3, 5, 6, 8, 20, 37] [6, 8, 78, 9, 75, 1, 1, 17, 4, 2] -> [1, 2, 4, 6, 8, 9, 17, 75] [19, 17, 77, 6, 7, 0, 52, 1, 76, 41] -> [1, 6, 7, 17, 19, 41, 52, 76] Questions: [54, 8, 85, 86, 6, 69, 5, 69, 9] -> ? Answer:
[54, 8, 85, 86, 6, 69, 5, 69, 9] -> [6, 8, 9, 54, 69, 69, 85]
[54, 8, 85, 86, 6, 69, 5, 69, 9]
[6, 8, 9, 54, 69, 69, 85]
c143
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 every occurrence of the largest element with the smallest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 31, 0] -> [0, 0, 0] [35, 7, 63, 78, 78, 27, 46] -> [35, 7, 63, 7, 7, 27, 46] [6, 6] -> [6, 6] [57, 60, 42, 97, 4, 7, 97, 5, 8, 49] -> [57, 60, 42, 4, 4, 7, 4, 5, 8, 49] [83, 83, 45] -> [45, 45, 45] [41, 20, 2, 93, 52, 65, 63, 47, 48] -> [41, 20, 2, 2, 52, 65, 63, 47, 48] [1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1] [6, 16, 5, 4, 98, 15, 32, 89, 20] -> [6, 16, 5, 4, 4, 15, 32, 89, 20] Questions: [28, 39, 39, 14] -> ? Answer:
[28, 39, 39, 14] -> [28, 14, 14, 14]
[28, 39, 39, 14]
[28, 14, 14, 14]
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: [3] -> ? Answer:
[3] -> [3]
[3]
[3]
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: [9, 3, 5, 1, 8, 2, 0, 7, 4] -> ? Answer:
[9, 3, 5, 1, 8, 2, 0, 7, 4] -> [0]
[9, 3, 5, 1, 8, 2, 0, 7, 4]
[0]
c244
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 3s".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [95, 5, 0, 7, 9, 99, 6, 8] -> [0] [37, 81, 73, 4, 87, 9, 1, 93, 7] -> [0] [8, 27, 4, 44, 65, 9, 3, 5, 7] -> [1] [0, 3, 2, 7, 9, 4, 15, 64, 1, 6] -> [1] [68, 1, 69, 32, 43, 8, 25, 6, 9] -> [0] [1, 24, 83, 71, 50, 3, 2, 8, 12, 63] -> [1] [3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> [10] [3, 3, 3, 10, 46, 3, 3] -> [5] Questions: [0, 8, 9, 5, 3, 67, 44, 7, 6, 4] -> ? Answer:
[0, 8, 9, 5, 3, 67, 44, 7, 6, 4] -> [1]
[0, 8, 9, 5, 3, 67, 44, 7, 6, 4]
[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: [3, 7, 81, 6, 3, 8, 81, 4] -> ? Answer:
[3, 7, 81, 6, 3, 8, 81, 4] -> [32]
[3, 7, 81, 6, 3, 8, 81, 4]
[32]
c182
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 every third element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 52, 12, 4, 6, 0, 75, 5, 63] -> [12, 0, 63] [94, 7, 6, 4, 2, 3, 5, 16, 8] -> [6, 3, 8] [8, 50, 31, 43, 94, 24, 2, 11, 95, 1] -> [31, 24, 95] [61, 41, 21, 5, 42, 8, 6, 4, 8, 54] -> [21, 8, 8] [7, 6, 13, 64, 37, 34, 44, 9, 4] -> [13, 34, 4] [6, 86, 3, 4, 26, 41, 54, 90, 9, 62] -> [3, 41, 9] [12, 4, 40, 8, 91, 32, 83, 98, 7, 29] -> [40, 32, 7] [5, 88, 3, 12, 2, 72, 75, 15, 88] -> [3, 72, 88] Questions: [39, 5, 86, 47, 55, 13, 41, 8, 55] -> ? Answer:
[39, 5, 86, 47, 55, 13, 41, 8, 55] -> [86, 13, 55]
[39, 5, 86, 47, 55, 13, 41, 8, 55]
[86, 13, 55]
c233
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 occurrences of each unique element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 80, 86, 80, 62, 7, 78, 62, 4] -> [1, 2, 1, 2, 1, 1, 1] [81, 76, 71, 76, 71] -> [1, 2, 2] [0, 0, 4] -> [2, 1] [47, 5, 90, 19, 0, 86, 63, 86, 87] -> [1, 1, 1, 1, 1, 2, 1, 1] [68, 6, 8, 7, 17, 75, 0, 69, 19, 49] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [17, 84, 84, 84, 84, 92, 84, 92, 92] -> [1, 5, 3] [25, 7, 75, 79, 25, 75] -> [2, 1, 2, 1] [41, 65, 65, 65, 41] -> [2, 3] Questions: [98, 98, 98, 98, 98, 98, 98, 98, 98, 98] -> ? Answer:
[98, 98, 98, 98, 98, 98, 98, 98, 98, 98] -> [10]
[98, 98, 98, 98, 98, 98, 98, 98, 98, 98]
[10]
c138
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 element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [30, 71, 30, 30, 47, 47, 90, 59, 59, 90] -> [71, 47, 47, 90, 59, 59, 90] [30, 47, 30, 30, 78, 8, 47, 78] -> [47, 78, 8, 47, 78] [90, 90, 90] -> [] [58, 58, 2, 58] -> [2] [25, 80] -> [80] [3, 83, 3, 8, 36, 28, 28, 9, 8] -> [83, 8, 36, 28, 28, 9, 8] [92, 92, 8, 92] -> [8] [38, 45, 9, 8, 47, 38, 3, 81, 47, 45] -> [45, 9, 8, 47, 3, 81, 47, 45] Questions: [7, 7, 7, 7] -> ? Answer:
[7, 7, 7, 7] -> []
[7, 7, 7, 7]
[]
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: [4, 1, 64, 8, 24, 5, 88] -> ? Answer:
[4, 1, 64, 8, 24, 5, 88] -> [4, 1, 8, 5, 24, 64, 88]
[4, 1, 64, 8, 24, 5, 88]
[4, 1, 8, 5, 24, 64, 88]
c103
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: [24, 47, 46, 40, 20] -> [5] [5, 99, 8, 30, 42, 13, 2, 83, 58, 44] -> [10] [40, 11] -> [2] [44, 6, 51, 71, 81, 68, 3] -> [7] [35, 17, 3, 6, 23, 0, 5, 90] -> [8] [9, 97, 28, 78, 48, 6, 31] -> [7] [71, 80] -> [2] [86, 27, 53] -> [3] Questions: [56] -> ? Answer:
[56] -> [1]
[56]
[1]
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: [81, 70, 4, 62, 9] -> ? Answer:
[81, 70, 4, 62, 9] -> [4, 9, 62]
[81, 70, 4, 62, 9]
[4, 9, 62]
c149
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 * element 1; remove element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 19, 5, 42, 85, 31, 65, 28, 34, 6] -> [0, 0, 0, 0, 0, 0, 0, 0, 0] [3, 5, 4] -> [15, 12] [9, 0] -> [0] [51] -> [] [6, 3] -> [18] [2, 3, 8, 0] -> [6, 16, 0] [7, 9, 3] -> [63, 21] [1, 2, 8, 83, 4, 3, 57] -> [2, 8, 83, 4, 3, 57] Questions: [8] -> ? Answer:
[8] -> []
[8]
[]
c005
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 N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 4, 6, 4] -> [4] [3, 7, 9, 7, 1, 1, 8, 9] -> [7] [2, 5, 3, 1, 0, 4, 7, 8] -> [3] [7, 6, 8, 3, 1, 9, 0, 2, 4] -> [2] [4, 2, 6, 3, 1, 0] -> [1] [2, 6, 6] -> [6] [2, 8, 6, 3, 1] -> [6] [4, 2, 5, 7, 6, 9, 8] -> [6] Questions: [3, 8, 2, 1, 7, 5, 6, 4] -> ? Answer:
[3, 8, 2, 1, 7, 5, 6, 4] -> [1]
[3, 8, 2, 1, 7, 5, 6, 4]
[1]
c052
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 element 1 ten times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 9, 0, 3, 8, 1, 5, 6, 7] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] [1, 4, 7, 3, 6] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [8, 1, 2, 9, 6, 3, 4, 7] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [5, 9, 1, 6, 2, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] [8, 4, 6] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [8] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [6, 7, 5, 1, 4, 9, 3, 2, 0, 8] -> [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] [0, 2, 6, 8, 1, 5, 9, 4] -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Questions: [9, 8, 7, 3, 2, 6, 1, 4, 5] -> ? Answer:
[9, 8, 7, 3, 2, 6, 1, 4, 5] -> [9, 9, 9, 9, 9, 9, 9, 9, 9, 9]
[9, 8, 7, 3, 2, 6, 1, 4, 5]
[9, 9, 9, 9, 9, 9, 9, 9, 9, 9]
c197
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 number of occurrences of that element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8, 7, 20, 61, 45, 0] -> [2, 1, 1, 1, 1, 1, 2] [11, 11, 11] -> [3, 3, 3] [94, 53, 35, 60, 1, 38] -> [1, 1, 1, 1, 1, 1] [] -> [] [75, 75, 75, 75, 75, 75, 75, 75, 75, 75] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [26, 63, 63, 63, 26, 26, 63, 63, 26] -> [4, 5, 5, 5, 4, 4, 5, 5, 4] [58, 71, 11, 11, 58] -> [2, 1, 2, 2, 2] [25, 25, 25, 25, 25, 25, 25] -> [7, 7, 7, 7, 7, 7, 7] Questions: [49] -> ? Answer:
[49] -> [1]
[49]
[1]
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: [49, 43, 9] -> ? Answer:
[49, 43, 9] -> [4, 4, 0]
[49, 43, 9]
[4, 4, 0]
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: [7, 1, 4, 8, 2, 3, 6] -> ? Answer:
[7, 1, 4, 8, 2, 3, 6] -> [7, 1, 4, 8, 2]
[7, 1, 4, 8, 2, 3, 6]
[7, 1, 4, 8, 2]
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: [89, 97, 8, 7, 4, 6, 16, 24, 73] -> ? Answer:
[89, 97, 8, 7, 4, 6, 16, 24, 73] -> [89, 73, 97, 24, 8, 16, 7, 6, 4]
[89, 97, 8, 7, 4, 6, 16, 24, 73]
[89, 73, 97, 24, 8, 16, 7, 6, 4]
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: [68, 69, 85, 13, 25, 50] -> ? Answer:
[68, 69, 85, 13, 25, 50] -> [50, 68]
[68, 69, 85, 13, 25, 50]
[50, 68]
c134
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 M through N, M = element 1, N = element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 9, 37, 37, 3, 9, 9, 3, 37, 2] -> [3, 9, 2] [5, 7, 1, 10, 3, 18, 93, 2, 4] -> [5, 7, 1, 10, 2, 4] [3, 6, 7, 30, 1, 29, 4, 3, 2, 2] -> [3, 6, 4, 3, 2, 2] [2, 2, 41, 41, 2, 89] -> [2, 41, 41, 2, 89] [6, 7, 23, 2, 1, 8, 4, 4] -> [6, 7, 23, 2, 1, 4] [3, 7, 86, 3, 3, 7, 3, 86, 86, 86] -> [3, 7, 86, 86, 86] [2, 5, 3, 3, 37, 2, 3, 3, 1, 94] -> [2, 2, 3, 3, 1, 94] [6, 7, 1, 40, 5, 8, 27, 89] -> [6, 7, 1, 40, 5, 89] Questions: [2, 6, 6, 99, 16, 2] -> ? Answer:
[2, 6, 6, 99, 16, 2] -> [2]
[2, 6, 6, 99, 16, 2]
[2]
c247
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 before the first 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [30, 6, 0, 8, 0, 88, 3] -> [30, 6] [62, 0, 3, 0, 5, 56, 49] -> [62] [66, 0, 66, 66, 1] -> [66] [39, 39, 0, 39, 0, 39, 39, 39, 39] -> [39, 39] [6, 1, 7, 0, 6, 2, 0, 6, 69] -> [6, 1, 7] [84, 84, 84, 0, 7, 0, 62, 7, 62, 0] -> [84, 84, 84] [44, 8, 0, 13, 82, 16, 48, 5, 32] -> [44, 8] [6, 50, 50, 0, 7, 0, 8] -> [6, 50, 50] Questions: [52, 92, 1] -> ? Answer:
[52, 92, 1] -> [52, 92, 1]
[52, 92, 1]
[52, 92, 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: [0, 8, 5, 3, 7, 1, 2] -> ? Answer:
[0, 8, 5, 3, 7, 1, 2] -> [0, 8, 5, 3, 7, 1, 2, 9]
[0, 8, 5, 3, 7, 1, 2]
[0, 8, 5, 3, 7, 1, 2, 9]
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, 8, 5, 0, 2, 3, 6] -> ? Answer:
[9, 8, 5, 0, 2, 3, 6] -> [9, 8, 5, 0, 2, 3, 6, 9, 8, 5, 0, 2, 3, 6]
[9, 8, 5, 0, 2, 3, 6]
[9, 8, 5, 0, 2, 3, 6, 9, 8, 5, 0, 2, 3, 6]
c234
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repetitions in order of first appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [76, 42, 17, 76, 17] -> [76, 17] [57, 77, 57, 77, 77, 77] -> [57, 77, 77, 77] [0, 17, 17, 17, 70, 17] -> [17, 17, 17] [62, 6, 48, 1, 67, 69, 0, 59, 15, 48] -> [48] [81, 58, 58, 58, 58, 81, 58, 81, 81] -> [81, 81, 81, 58, 58, 58, 58] [97, 97, 97, 97] -> [97, 97, 97] [95, 95, 79, 5, 6, 22, 2] -> [95] [98, 2, 77, 98, 19] -> [98] Questions: [34, 34, 34, 8, 9, 75, 75, 8, 9] -> ? Answer:
[34, 34, 34, 8, 9, 75, 75, 8, 9] -> [34, 34, 8, 9, 75]
[34, 34, 34, 8, 9, 75, 75, 8, 9]
[34, 34, 8, 9, 75]
c202
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 indices of every even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [79, 74, 7, 82, 61, 9, 80, 22] -> [2, 4, 7, 8] [11, 2, 24, 52, 6, 51, 4] -> [2, 3, 4, 5, 7] [3, 99, 1, 28, 8, 2] -> [4, 5, 6] [80, 23, 89, 36, 5, 4, 3, 18, 8] -> [1, 4, 6, 8, 9] [18, 7, 50, 5, 64, 62, 1, 4] -> [1, 3, 5, 6, 8] [7, 74, 4] -> [2, 3] [94, 66, 3, 6, 30, 29, 61, 77, 9, 13] -> [1, 2, 4, 5] [11, 86, 45, 3, 9, 27, 6, 8] -> [2, 7, 8] Questions: [1, 90, 41, 67, 7, 4, 6, 99, 87, 93] -> ? Answer:
[1, 90, 41, 67, 7, 4, 6, 99, 87, 93] -> [2, 6, 7]
[1, 90, 41, 67, 7, 4, 6, 99, 87, 93]
[2, 6, 7]
c199
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, each preceded by its rank".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [93, 3, 51] -> [1, 3, 2, 51, 3, 93] [7, 29, 9, 32, 74, 96, 95] -> [1, 7, 2, 9, 3, 29, 4, 32, 5, 74, 6, 95, 7, 96] [41, 29, 82, 46, 33, 5] -> [1, 5, 2, 29, 3, 33, 4, 41, 5, 46, 6, 82] [18, 14, 47, 15] -> [1, 14, 2, 15, 3, 18, 4, 47] [] -> [] [54, 41, 21, 48, 14, 59] -> [1, 14, 2, 21, 3, 41, 4, 48, 5, 54, 6, 59] [73, 75, 0, 15] -> [1, 0, 2, 15, 3, 73, 4, 75] [12, 37, 38, 63, 60, 45, 72] -> [1, 12, 2, 37, 3, 38, 4, 45, 5, 60, 6, 63, 7, 72] Questions: [73, 5, 68] -> ? Answer:
[73, 5, 68] -> [1, 5, 2, 68, 3, 73]
[73, 5, 68]
[1, 5, 2, 68, 3, 73]
c158
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 1 if element N equals N, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1] [1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0] [8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0] [7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0] [5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] [2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0] [1, 1, 1] -> [1, 0, 0] Questions: [9, 9, 9, 9, 9, 9, 9, 9, 9] -> ? Answer:
[9, 9, 9, 9, 9, 9, 9, 9, 9] -> [0, 0, 0, 0, 0, 0, 0, 0, 1]
[9, 9, 9, 9, 9, 9, 9, 9, 9]
[0, 0, 0, 0, 0, 0, 0, 0, 1]
c054
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 elements 1 and 2 with element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 8, 4, 3, 7, 6, 2, 0] -> [4, 4, 4, 3, 7, 6, 2, 0] [4, 8, 3, 6, 5, 1, 0] -> [3, 3, 3, 6, 5, 1, 0] [3, 1, 2, 8, 7, 9, 5] -> [2, 2, 2, 8, 7, 9, 5] [9, 0, 5, 7, 3] -> [5, 5, 5, 7, 3] [2, 1, 3, 8] -> [3, 3, 3, 8] [3, 4, 5] -> [5, 5, 5] [8, 2, 3, 9, 6, 7, 5] -> [3, 3, 3, 9, 6, 7, 5] [6, 3, 4] -> [4, 4, 4] Questions: [7, 4, 8, 9] -> ? Answer:
[7, 4, 8, 9] -> [8, 8, 8, 9]
[7, 4, 8, 9]
[8, 8, 8, 9]
c228
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 number of occurrences of that element so far in the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 6, 6, 6] -> [1, 2, 3, 4] [36, 60, 36, 36, 60, 60, 36] -> [1, 1, 2, 3, 2, 3, 4] [80, 80, 80] -> [1, 2, 3] [62, 62, 62, 62, 62] -> [1, 2, 3, 4, 5] [5, 5, 5, 5] -> [1, 2, 3, 4] [17, 69, 17, 12, 12, 12, 12, 69, 69, 69] -> [1, 1, 2, 1, 2, 3, 4, 2, 3, 4] [3, 49, 49, 3, 49, 3, 3, 49] -> [1, 1, 2, 2, 3, 3, 4, 4] [3, 3, 3, 3] -> [1, 2, 3, 4] Questions: [0, 7, 0, 7, 7, 0] -> ? Answer:
[0, 7, 0, 7, 7, 0] -> [1, 1, 2, 2, 3, 3]
[0, 7, 0, 7, 7, 0]
[1, 1, 2, 2, 3, 3]
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: [11, 90, 98, 13, 5, 36, 73, 20, 6] -> ? Answer:
[11, 90, 98, 13, 5, 36, 73, 20, 6] -> [79, 8, 85, 8, 31, 37, 53, 14]
[11, 90, 98, 13, 5, 36, 73, 20, 6]
[79, 8, 85, 8, 31, 37, 53, 14]
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: [95, 8, 39, 83, 5] -> ? Answer:
[95, 8, 39, 83, 5] -> [17, 38, 82, 95, 8, 39, 83, 5, 1, 55, 27]
[95, 8, 39, 83, 5]
[17, 38, 82, 95, 8, 39, 83, 5, 1, 55, 27]
c063
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 first N + 1 elements, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 9, 3, 5, 2, 0, 6, 7, 4] -> [3, 5, 2, 0, 6, 7, 4] [1, 2, 6, 9] -> [6, 9] [9] -> [] [2, 9, 6, 0, 3, 5, 4, 7, 8, 1] -> [0, 3, 5, 4, 7, 8, 1] [0, 5, 9, 6, 2] -> [5, 9, 6, 2] [1, 4, 8, 5] -> [8, 5] [0, 7] -> [7] [0, 9, 6, 2, 3, 8] -> [9, 6, 2, 3, 8] Questions: [1, 6, 2, 8, 7, 4, 3, 5, 0, 9] -> ? Answer:
[1, 6, 2, 8, 7, 4, 3, 5, 0, 9] -> [2, 8, 7, 4, 3, 5, 0, 9]
[1, 6, 2, 8, 7, 4, 3, 5, 0, 9]
[2, 8, 7, 4, 3, 5, 0, 9]
c089
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: [69, 0, 0, 42] -> [42, 0, 0, 69] [3, 30, 6, 6] -> [3, 6, 30, 6] [21, 6, 7, 14, 26, 26, 5, 8, 13, 67] -> [14, 6, 7, 21, 26, 26, 5, 8, 13, 67] [25, 19, 1, 31, 12, 13, 57, 7, 32] -> [25, 1, 19, 31, 12, 13, 57, 7, 32] [3, 8, 2, 6, 55, 7, 54] -> [3, 2, 8, 6, 55, 7, 54] [4, 87, 4, 87] -> [4, 4, 87, 87] [28, 60, 80, 8, 65] -> [8, 60, 80, 28, 65] [36, 66, 91, 9, 3, 18, 1, 7] -> [9, 66, 91, 36, 3, 18, 1, 7] Questions: [0, 8, 6, 12, 78, 20, 72, 39] -> ? Answer:
[0, 8, 6, 12, 78, 20, 72, 39] -> [0, 6, 8, 12, 78, 20, 72, 39]
[0, 8, 6, 12, 78, 20, 72, 39]
[0, 6, 8, 12, 78, 20, 72, 39]
c134
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 M through N, M = element 1, N = element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 9, 37, 37, 3, 9, 9, 3, 37, 2] -> [3, 9, 2] [5, 7, 1, 10, 3, 18, 93, 2, 4] -> [5, 7, 1, 10, 2, 4] [3, 6, 7, 30, 1, 29, 4, 3, 2, 2] -> [3, 6, 4, 3, 2, 2] [2, 2, 41, 41, 2, 89] -> [2, 41, 41, 2, 89] [6, 7, 23, 2, 1, 8, 4, 4] -> [6, 7, 23, 2, 1, 4] [3, 7, 86, 3, 3, 7, 3, 86, 86, 86] -> [3, 7, 86, 86, 86] [2, 5, 3, 3, 37, 2, 3, 3, 1, 94] -> [2, 2, 3, 3, 1, 94] [6, 7, 1, 40, 5, 8, 27, 89] -> [6, 7, 1, 40, 5, 89] Questions: [4, 6, 3, 3, 31, 6, 6, 31, 96, 61] -> ? Answer:
[4, 6, 3, 3, 31, 6, 6, 31, 96, 61] -> [4, 6, 3, 6, 31, 96, 61]
[4, 6, 3, 3, 31, 6, 6, 31, 96, 61]
[4, 6, 3, 6, 31, 96, 61]
c245
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 times element 1 appears in elements 2 and following".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 4, 5, 9, 2, 63, 8] -> [1] [33, 33, 33, 33, 33, 33, 33] -> [6] [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9] [35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0] [1, 75, 61, 2, 53, 86, 93, 4] -> [0] [9, 9, 9, 9, 58, 9, 58, 9] -> [5] [13, 13, 13, 13, 13, 13, 13, 13] -> [7] [4, 34, 77, 6, 0, 8, 94, 2, 7] -> [0] Questions: [94, 49, 12, 94, 54, 37, 99, 71] -> ? Answer:
[94, 49, 12, 94, 54, 37, 99, 71] -> [1]
[94, 49, 12, 94, 54, 37, 99, 71]
[1]
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: [7, 62, 3, 5, 44, 70, 0, 9, 78] -> ? Answer:
[7, 62, 3, 5, 44, 70, 0, 9, 78] -> [15, 69, 9, 10, 48, 73, 2, 10, 78]
[7, 62, 3, 5, 44, 70, 0, 9, 78]
[15, 69, 9, 10, 48, 73, 2, 10, 78]
c005
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 N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 4, 6, 4] -> [4] [3, 7, 9, 7, 1, 1, 8, 9] -> [7] [2, 5, 3, 1, 0, 4, 7, 8] -> [3] [7, 6, 8, 3, 1, 9, 0, 2, 4] -> [2] [4, 2, 6, 3, 1, 0] -> [1] [2, 6, 6] -> [6] [2, 8, 6, 3, 1] -> [6] [4, 2, 5, 7, 6, 9, 8] -> [6] Questions: [5, 7, 2, 3, 1, 0, 9, 6] -> ? Answer:
[5, 7, 2, 3, 1, 0, 9, 6] -> [0]
[5, 7, 2, 3, 1, 0, 9, 6]
[0]
c076
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 maximum, last element, length, first element, and minimum, in that order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 21, 57] -> [57, 57, 3, 31, 21] [61] -> [61, 61, 1, 61, 61] [90, 60, 70, 14, 44, 86, 43, 80, 56, 2] -> [90, 2, 10, 90, 2] [65] -> [65, 65, 1, 65, 65] [8, 63, 25, 2, 35, 41, 61, 79, 95] -> [95, 95, 9, 8, 2] [7, 9, 61, 37] -> [61, 37, 4, 7, 7] [9, 67] -> [67, 67, 2, 9, 9] [45, 1, 36] -> [45, 36, 3, 45, 1] Questions: [6, 89, 2, 4, 8, 1, 85] -> ? Answer:
[6, 89, 2, 4, 8, 1, 85] -> [89, 85, 7, 6, 1]
[6, 89, 2, 4, 8, 1, 85]
[89, 85, 7, 6, 1]
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: [9, 5, 4, 8, 6, 2] -> ? Answer:
[9, 5, 4, 8, 6, 2] -> [9, 5, 4, 8]
[9, 5, 4, 8, 6, 2]
[9, 5, 4, 8]
c130
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 2 through N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 44, 96, 40, 40, 3, 8] -> [44, 96, 40] [4, 6, 0, 5, 2, 8, 3, 7, 37, 24] -> [6, 0, 5, 2] [3, 51, 21, 21, 2] -> [51, 21, 21] [6, 1, 90, 77, 85, 7, 4, 9, 5] -> [1, 90, 77, 85, 7, 4] [2, 55, 5, 88, 9, 3, 45] -> [55, 5] [5, 6, 35, 3, 67, 41, 27, 82] -> [6, 35, 3, 67, 41] [5, 35, 4, 0, 7, 3, 9, 2] -> [35, 4, 0, 7, 3] [7, 9, 81, 2, 6, 1, 5, 6, 3] -> [9, 81, 2, 6, 1, 5, 6] Questions: [5, 8, 5, 0, 60, 80, 1] -> ? Answer:
[5, 8, 5, 0, 60, 80, 1] -> [8, 5, 0, 60, 80]
[5, 8, 5, 0, 60, 80, 1]
[8, 5, 0, 60, 80]
c086
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [98, 91, 81, 25, 20, 0, 88] -> [25, 91, 81, 98, 20, 0, 88] [3, 2, 5, 8, 74] -> [8, 2, 5, 3, 74] [3, 25, 4, 55] -> [55, 25, 4, 3] [0, 71, 15, 81, 8, 80, 3] -> [81, 71, 15, 0, 8, 80, 3] [2, 3, 78, 86, 33, 46, 5, 16, 7, 85] -> [86, 3, 78, 2, 33, 46, 5, 16, 7, 85] [6, 27, 3, 7, 25, 4, 29, 62] -> [7, 27, 3, 6, 25, 4, 29, 62] [1, 87, 7, 4, 9, 57, 8, 50, 18] -> [4, 87, 7, 1, 9, 57, 8, 50, 18] [91, 71, 67, 34, 47] -> [34, 71, 67, 91, 47] Questions: [6, 9, 10, 66, 63, 35, 22, 89, 39] -> ? Answer:
[6, 9, 10, 66, 63, 35, 22, 89, 39] -> [66, 9, 10, 6, 63, 35, 22, 89, 39]
[6, 9, 10, 66, 63, 35, 22, 89, 39]
[66, 9, 10, 6, 63, 35, 22, 89, 39]
c042
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 list [5, 2]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 7, 8] -> [5, 2] [1, 8, 7, 7, 8] -> [5, 2] [4, 0, 1, 4, 0, 6, 0, 9, 6, 6] -> [5, 2] [3, 7, 0, 7, 7, 0] -> [5, 2] [0, 8, 4, 8] -> [5, 2] [6, 3, 7, 7, 4, 6] -> [5, 2] [3, 4, 4, 1, 1, 3, 3, 4, 1, 3] -> [5, 2] [3, 8] -> [5, 2] Questions: [1, 1, 1, 1, 7, 7, 7] -> ? Answer:
[1, 1, 1, 1, 7, 7, 7] -> [5, 2]
[1, 1, 1, 1, 7, 7, 7]
[5, 2]
c168
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 1 to 10, skipping the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [20, 9, 16, 92, 82, 3] -> [1, 2, 3, 4, 5, 7, 8, 9, 10] [77, 76, 34, 12, 26, 20, 79] -> [1, 2, 3, 4, 5, 6, 8, 9, 10] [6, 74, 2, 9, 5, 67] -> [1, 2, 3, 4, 5, 7, 8, 9, 10] [95] -> [2, 3, 4, 5, 6, 7, 8, 9, 10] [97, 86, 90, 37, 43, 5, 57, 33, 72, 7] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [40, 86] -> [1, 3, 4, 5, 6, 7, 8, 9, 10] [87, 5, 66] -> [1, 2, 4, 5, 6, 7, 8, 9, 10] [85, 20, 90, 5, 65] -> [1, 2, 3, 4, 6, 7, 8, 9, 10] Questions: [8, 48, 96, 4, 3, 94, 7, 11, 59, 6] -> ? Answer:
[8, 48, 96, 4, 3, 94, 7, 11, 59, 6] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[8, 48, 96, 4, 3, 94, 7, 11, 59, 6]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
c247
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 before the first 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [30, 6, 0, 8, 0, 88, 3] -> [30, 6] [62, 0, 3, 0, 5, 56, 49] -> [62] [66, 0, 66, 66, 1] -> [66] [39, 39, 0, 39, 0, 39, 39, 39, 39] -> [39, 39] [6, 1, 7, 0, 6, 2, 0, 6, 69] -> [6, 1, 7] [84, 84, 84, 0, 7, 0, 62, 7, 62, 0] -> [84, 84, 84] [44, 8, 0, 13, 82, 16, 48, 5, 32] -> [44, 8] [6, 50, 50, 0, 7, 0, 8] -> [6, 50, 50] Questions: [52, 0, 52, 0, 52, 0] -> ? Answer:
[52, 0, 52, 0, 52, 0] -> [52]
[52, 0, 52, 0, 52, 0]
[52]
c081
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 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [23, 9, 13, 67, 24, 20, 71, 77] -> [13] [84, 51, 3, 47, 4, 67, 43, 88, 13] -> [3] [7, 55, 4] -> [4] [2, 0, 70, 3, 5, 8, 9, 7, 1, 33] -> [70] [41, 2, 48] -> [48] [6, 50, 65] -> [65] [2, 30, 7, 6, 89, 8, 45, 88] -> [7] [60, 19, 68, 0, 4, 9, 95, 82] -> [68] Questions: [64, 76, 27, 58, 1, 32, 0, 2, 67] -> ? Answer:
[64, 76, 27, 58, 1, 32, 0, 2, 67] -> [27]
[64, 76, 27, 58, 1, 32, 0, 2, 67]
[27]