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
c074
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 every element whose value < 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3] -> [] [1, 4, 5, 6, 2, 7, 0, 8, 3] -> [8] [4, 1] -> [] [2, 1, 3, 0, 7] -> [] [2, 9, 7, 5, 6] -> [9] [2, 5, 8, 7, 9, 0, 1, 3, 6, 4] -> [8, 9] [8, 1, 6, 3, 4, 7, 9, 0, 5] -> [8, 9] [0, 4, 3, 7, 6, 5, 1, 9, 2, 8] -> [9, 8] Questions: [9, 2, 4, 8, 3] -> ? Answer:
[9, 2, 4, 8, 3] -> [9, 8]
[9, 2, 4, 8, 3]
[9, 8]
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: [8, 78, 87, 53, 7, 10, 9, 4, 27, 5] -> ? Answer:
[8, 78, 87, 53, 7, 10, 9, 4, 27, 5] -> [87, 10, 27]
[8, 78, 87, 53, 7, 10, 9, 4, 27, 5]
[87, 10, 27]
c102
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: [39, 8, 4] -> [39, 8, 4] [3, 89] -> [3, 89] [52, 67] -> [52, 67] [96, 68] -> [96, 68] [58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70] [93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71] [60, 92] -> [60, 92] [83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8] Questions: [66, 57, 1, 84, 83, 38, 0, 74, 9, 3] -> ? Answer:
[66, 57, 1, 84, 83, 38, 0, 74, 9, 3] -> [66, 57, 1, 84, 83, 38, 0, 74, 9, 3]
[66, 57, 1, 84, 83, 38, 0, 74, 9, 3]
[66, 57, 1, 84, 83, 38, 0, 74, 9, 3]
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, 8, 7, 6, 9, 1, 0, 2] -> ? Answer:
[5, 8, 7, 6, 9, 1, 0, 2] -> [1]
[5, 8, 7, 6, 9, 1, 0, 2]
[1]
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: [8, 6] -> ? Answer:
[8, 6] -> [8, 6, 8]
[8, 6]
[8, 6, 8]
c093
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: [7, 5, 15, 16, 57, 68, 1] -> [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] [2, 17, 0, 38, 1, 86, 91, 65, 16] -> [2, 2, 2, 2, 2, 2, 2, 2, 2, 2] [75, 27, 9, 56, 26, 92, 2, 99, 42, 0] -> [75, 75, 75, 75, 75, 75, 75, 75, 75, 75] [81, 2] -> [81, 81, 81, 81, 81, 81, 81, 81, 81, 81] [34, 5, 25] -> [34, 34, 34, 34, 34, 34, 34, 34, 34, 34] [33, 8, 2, 96, 6] -> [33, 33, 33, 33, 33, 33, 33, 33, 33, 33] [21] -> [21, 21, 21, 21, 21, 21, 21, 21, 21, 21] [38, 0] -> [38, 38, 38, 38, 38, 38, 38, 38, 38, 38] Questions: [94, 59, 74, 78, 5, 67, 36, 66, 98, 1] -> ? Answer:
[94, 59, 74, 78, 5, 67, 36, 66, 98, 1] -> [94, 94, 94, 94, 94, 94, 94, 94, 94, 94]
[94, 59, 74, 78, 5, 67, 36, 66, 98, 1]
[94, 94, 94, 94, 94, 94, 94, 94, 94, 94]
c176
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sums of each consecutive pair of elements, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 4, 67, 17, 56, 1] -> [73, 71, 84, 73, 57] [32, 3, 12, 57, 27, 7, 6, 88, 8, 9] -> [35, 15, 69, 84, 34, 13, 94, 96, 17] [59, 8, 2, 5, 71, 1] -> [67, 10, 7, 76, 72] [26, 33, 6, 5, 85, 8, 3, 1, 0, 2] -> [59, 39, 11, 90, 93, 11, 4, 1, 2] [62, 25, 5, 7, 42, 19] -> [87, 30, 12, 49, 61] [0, 52, 9, 83, 4, 1] -> [52, 61, 92, 87, 5] [7, 1, 0, 4, 6, 56] -> [8, 1, 4, 10, 62] [51, 5, 3, 8, 36, 1, 2, 6, 2, 4] -> [56, 8, 11, 44, 37, 3, 8, 8, 6] Questions: [3, 44, 2, 7, 49, 6, 0] -> ? Answer:
[3, 44, 2, 7, 49, 6, 0] -> [47, 46, 9, 56, 55, 6]
[3, 44, 2, 7, 49, 6, 0]
[47, 46, 9, 56, 55, 6]
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: [37, 1, 16] -> ? Answer:
[37, 1, 16] -> [3]
[37, 1, 16]
[3]
c125
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 equals the tens digit of element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [59, 82, 59, 82, 9, 83] -> [59, 59] [7, 9, 26, 5, 70, 6, 3] -> [7, 9, 5, 6, 3] [23, 80, 23, 2, 1, 5, 77, 91] -> [23, 23] [1, 9, 7, 78, 6, 5, 8, 0, 3, 4] -> [1, 9, 7, 6, 5, 8, 0, 3, 4] [78, 78, 78, 66, 78] -> [78, 78, 78, 78] [5, 8, 40, 6, 90, 2] -> [5, 8, 6, 2] [3, 5, 95, 21, 0, 2, 3] -> [3, 5, 0, 2, 3] [45, 62, 43, 73, 45, 52] -> [45, 43, 45] Questions: [56, 2, 74, 6, 56] -> ? Answer:
[56, 2, 74, 6, 56] -> [56, 56]
[56, 2, 74, 6, 56]
[56, 56]
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: [5, 0, 6, 1, 8] -> ? Answer:
[5, 0, 6, 1, 8] -> [0, 6, 1]
[5, 0, 6, 1, 8]
[0, 6, 1]
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: [7, 29, 5, 76, 4, 28, 0, 91, 8, 91] -> ? Answer:
[7, 29, 5, 76, 4, 28, 0, 91, 8, 91] -> [28, 4, 76, 5, 29, 7, 91, 8, 91]
[7, 29, 5, 76, 4, 28, 0, 91, 8, 91]
[28, 4, 76, 5, 29, 7, 91, 8, 91]
c208
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 the last N elements, where N is the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 33, 8, 97, 71, 74, 90, 3] -> [74, 90, 3] [6, 37, 19, 13, 4, 9, 19, 2] -> [19, 2] [6, 25, 2, 35, 8, 4, 0, 83, 63, 5] -> [4, 0, 83, 63, 5] [43, 3, 4, 3, 6, 8, 60, 90, 7] -> [4, 3, 6, 8, 60, 90, 7] [36, 2, 74, 5, 64, 31, 8, 18, 7] -> [74, 5, 64, 31, 8, 18, 7] [33, 2, 69, 24, 24, 38, 5, 4] -> [24, 38, 5, 4] [11, 75, 4, 7, 8, 10, 5, 6] -> [4, 7, 8, 10, 5, 6] [7, 0, 8, 12, 3, 2, 2] -> [2, 2] Questions: [43, 10, 74, 4, 98, 69, 1, 45, 0, 5] -> ? Answer:
[43, 10, 74, 4, 98, 69, 1, 45, 0, 5] -> [69, 1, 45, 0, 5]
[43, 10, 74, 4, 98, 69, 1, 45, 0, 5]
[69, 1, 45, 0, 5]
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: [9, 0, 8, 5, 52, 2, 12, 68, 6, 22] -> ? Answer:
[9, 0, 8, 5, 52, 2, 12, 68, 6, 22] -> [0, 8, 5, 52, 2, 12, 68, 6, 22]
[9, 0, 8, 5, 52, 2, 12, 68, 6, 22]
[0, 8, 5, 52, 2, 12, 68, 6, 22]
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: [6, 89, 7, 5, 80] -> ? Answer:
[6, 89, 7, 5, 80] -> [6, 89, 5, 80]
[6, 89, 7, 5, 80]
[6, 89, 5, 80]
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, 0] -> ? Answer:
[4, 0] -> [4]
[4, 0]
[4]
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: [50] -> ? Answer:
[50] -> [11, 21, 43, 19, 50, 7, 89, 0, 57]
[50]
[11, 21, 43, 19, 50, 7, 89, 0, 57]
c200
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "tens digits of the elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 1, 14, 28, 78, 53, 9] -> [0, 0, 0, 1, 2, 5, 7] [7, 67, 48, 6, 92, 0, 9, 79] -> [0, 0, 0, 0, 4, 6, 7, 9] [79, 87, 57] -> [5, 7, 8] [69, 84, 8, 36, 15] -> [0, 1, 3, 6, 8] [12, 66, 98, 37] -> [1, 3, 6, 9] [1, 47, 84] -> [0, 4, 8] [66, 10, 74, 56] -> [1, 5, 6, 7] [79, 7, 90, 76, 0, 1] -> [0, 0, 0, 7, 7, 9] Questions: [6, 95, 81, 49] -> ? Answer:
[6, 95, 81, 49] -> [0, 4, 8, 9]
[6, 95, 81, 49]
[0, 4, 8, 9]
c160
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 99 - M".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 1, 14, 94, 7, 4, 0, 48, 34] -> [38, 98, 85, 5, 92, 95, 99, 51, 65] [1, 25, 5, 16, 56, 0, 64, 9, 29, 49] -> [98, 74, 94, 83, 43, 99, 35, 90, 70, 50] [56, 90, 41, 24, 4, 13, 94, 7, 6, 51] -> [43, 9, 58, 75, 95, 86, 5, 92, 93, 48] [2, 80, 39, 33, 59, 0, 4] -> [97, 19, 60, 66, 40, 99, 95] [37, 6, 11, 58, 12, 2, 8, 63] -> [62, 93, 88, 41, 87, 97, 91, 36] [7, 5, 61, 63, 4, 75, 57, 37, 16] -> [92, 94, 38, 36, 95, 24, 42, 62, 83] [75, 7, 1, 54, 5, 6] -> [24, 92, 98, 45, 94, 93] [4, 66, 6, 8, 72, 7, 9] -> [95, 33, 93, 91, 27, 92, 90] Questions: [77, 0, 18, 72, 5, 7, 1, 78] -> ? Answer:
[77, 0, 18, 72, 5, 7, 1, 78] -> [22, 99, 81, 27, 94, 92, 98, 21]
[77, 0, 18, 72, 5, 7, 1, 78]
[22, 99, 81, 27, 94, 92, 98, 21]
c046
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 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 0, 4, 1, 6, 8, 9] -> [7, 5, 0, 4, 1, 6, 8, 9] [2, 6, 9, 8] -> [7, 2, 6, 9, 8] [0, 6, 2, 4, 8, 1, 9] -> [7, 0, 6, 2, 4, 8, 1, 9] [1, 8, 2, 4, 9, 0, 3] -> [7, 1, 8, 2, 4, 9, 0, 3] [1, 9, 2, 0, 6, 4, 8, 5, 3] -> [7, 1, 9, 2, 0, 6, 4, 8, 5, 3] [7, 4, 1, 5, 6, 9, 8, 0, 2, 3] -> [7, 7, 4, 1, 5, 6, 9, 8, 0, 2, 3] [0, 8, 1, 3, 7, 6, 5, 9, 2] -> [7, 0, 8, 1, 3, 7, 6, 5, 9, 2] [5, 3, 2, 6, 0, 4, 8, 7] -> [7, 5, 3, 2, 6, 0, 4, 8, 7] Questions: [5, 8, 1, 9, 4, 6] -> ? Answer:
[5, 8, 1, 9, 4, 6] -> [7, 5, 8, 1, 9, 4, 6]
[5, 8, 1, 9, 4, 6]
[7, 5, 8, 1, 9, 4, 6]
c050
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 7, 0, 5] -> [4, 4, 7, 0, 5] [1] -> [1, 1] [5, 2] -> [5, 5, 2] [1, 4, 0, 8, 6, 7, 3, 2] -> [1, 1, 4, 0, 8, 6, 7, 3, 2] [5] -> [5, 5] [6, 9, 2, 1, 3] -> [6, 6, 9, 2, 1, 3] [4, 3, 6, 2, 5, 0, 7, 8, 1, 9] -> [4, 4, 3, 6, 2, 5, 0, 7, 8, 1, 9] [2, 4, 1, 3, 8, 0, 9, 7, 5, 6] -> [2, 2, 4, 1, 3, 8, 0, 9, 7, 5, 6] Questions: [7, 9, 6, 0, 3, 8, 2, 5, 4, 1] -> ? Answer:
[7, 9, 6, 0, 3, 8, 2, 5, 4, 1] -> [7, 7, 9, 6, 0, 3, 8, 2, 5, 4, 1]
[7, 9, 6, 0, 3, 8, 2, 5, 4, 1]
[7, 7, 9, 6, 0, 3, 8, 2, 5, 4, 1]
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: [6, 7, 5, 2, 8, 76, 8, 98, 13, 41] -> ? Answer:
[6, 7, 5, 2, 8, 76, 8, 98, 13, 41] -> [5, 6, 7, 8, 8, 13, 41, 76]
[6, 7, 5, 2, 8, 76, 8, 98, 13, 41]
[5, 6, 7, 8, 8, 13, 41, 76]
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: [47, 47] -> ? Answer:
[47, 47] -> [47]
[47, 47]
[47]
c050
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 7, 0, 5] -> [4, 4, 7, 0, 5] [1] -> [1, 1] [5, 2] -> [5, 5, 2] [1, 4, 0, 8, 6, 7, 3, 2] -> [1, 1, 4, 0, 8, 6, 7, 3, 2] [5] -> [5, 5] [6, 9, 2, 1, 3] -> [6, 6, 9, 2, 1, 3] [4, 3, 6, 2, 5, 0, 7, 8, 1, 9] -> [4, 4, 3, 6, 2, 5, 0, 7, 8, 1, 9] [2, 4, 1, 3, 8, 0, 9, 7, 5, 6] -> [2, 2, 4, 1, 3, 8, 0, 9, 7, 5, 6] Questions: [8, 4, 3, 9, 0] -> ? Answer:
[8, 4, 3, 9, 0] -> [8, 8, 4, 3, 9, 0]
[8, 4, 3, 9, 0]
[8, 8, 4, 3, 9, 0]
c145
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 element with element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [89, 0, 73] -> [89, 89, 89] [57, 0, 4, 9, 6, 97, 7, 2, 48, 77] -> [57, 57, 57, 57, 57, 57, 57, 57, 57, 57] [63, 6] -> [63, 63] [50, 1, 59, 28] -> [50, 50, 50, 50] [18, 9, 1, 38, 8] -> [18, 18, 18, 18, 18] [8, 0, 4] -> [8, 8, 8] [] -> [] [30, 39, 84, 7, 0, 1] -> [30, 30, 30, 30, 30, 30] Questions: [69, 40, 0, 3, 52, 5, 97, 2] -> ? Answer:
[69, 40, 0, 3, 52, 5, 97, 2] -> [69, 69, 69, 69, 69, 69, 69, 69]
[69, 40, 0, 3, 52, 5, 97, 2]
[69, 69, 69, 69, 69, 69, 69, 69]
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: [3, 52, 8, 1, 48, 95, 4, 47, 9, 66] -> ? Answer:
[3, 52, 8, 1, 48, 95, 4, 47, 9, 66] -> [1, 95, 47]
[3, 52, 8, 1, 48, 95, 4, 47, 9, 66]
[1, 95, 47]
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: [1, 9, 0, 7, 5, 6, 8, 2, 3] -> ? Answer:
[1, 9, 0, 7, 5, 6, 8, 2, 3] -> [1, 8, 9, 0, 7, 5, 6, 8, 2, 3]
[1, 9, 0, 7, 5, 6, 8, 2, 3]
[1, 8, 9, 0, 7, 5, 6, 8, 2, 3]
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: [31, 78, 9, 5, 1, 94, 7] -> ? Answer:
[31, 78, 9, 5, 1, 94, 7] -> [5, 78, 9, 31, 1, 94, 7]
[31, 78, 9, 5, 1, 94, 7]
[5, 78, 9, 31, 1, 94, 7]
c102
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: [39, 8, 4] -> [39, 8, 4] [3, 89] -> [3, 89] [52, 67] -> [52, 67] [96, 68] -> [96, 68] [58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70] [93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71] [60, 92] -> [60, 92] [83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8] Questions: [33, 37, 6, 57] -> ? Answer:
[33, 37, 6, 57] -> [33, 37, 6, 57]
[33, 37, 6, 57]
[33, 37, 6, 57]
c069
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, 3, 4, 0], input, and [7, 2, 9, 1]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 7, 0, 5, 3] -> [9, 3, 4, 0, 4, 2, 7, 0, 5, 3, 7, 2, 9, 1] [4, 0, 6, 5, 8] -> [9, 3, 4, 0, 4, 0, 6, 5, 8, 7, 2, 9, 1] [9, 8] -> [9, 3, 4, 0, 9, 8, 7, 2, 9, 1] [6, 5, 2, 0, 1, 7, 9] -> [9, 3, 4, 0, 6, 5, 2, 0, 1, 7, 9, 7, 2, 9, 1] [5, 0, 8, 3] -> [9, 3, 4, 0, 5, 0, 8, 3, 7, 2, 9, 1] [1, 6, 5] -> [9, 3, 4, 0, 1, 6, 5, 7, 2, 9, 1] [7, 4, 6, 9, 3, 0, 8] -> [9, 3, 4, 0, 7, 4, 6, 9, 3, 0, 8, 7, 2, 9, 1] [2, 8, 6, 7] -> [9, 3, 4, 0, 2, 8, 6, 7, 7, 2, 9, 1] Questions: [0, 5, 3, 2, 8, 4] -> ? Answer:
[0, 5, 3, 2, 8, 4] -> [9, 3, 4, 0, 0, 5, 3, 2, 8, 4, 7, 2, 9, 1]
[0, 5, 3, 2, 8, 4]
[9, 3, 4, 0, 0, 5, 3, 2, 8, 4, 7, 2, 9, 1]
c082
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: [87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13] [91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15] [9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13] [0, 76, 8, 52, 68] -> [8] [38] -> [] [1] -> [] [79, 66, 1] -> [1] [] -> [] Questions: [64, 68, 3, 59] -> ? Answer:
[64, 68, 3, 59] -> [3]
[64, 68, 3, 59]
[3]
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: [9, 2, 4, 8, 3, 0, 5, 1, 6, 7] -> ? Answer:
[9, 2, 4, 8, 3, 0, 5, 1, 6, 7] -> [9, 2, 4, 8, 3, 0, 4, 5, 1, 6, 7]
[9, 2, 4, 8, 3, 0, 5, 1, 6, 7]
[9, 2, 4, 8, 3, 0, 4, 5, 1, 6, 7]
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: [2, 74, 44, 44, 2, 44, 44, 2, 44, 74] -> ? Answer:
[2, 74, 44, 44, 2, 44, 44, 2, 44, 74] -> [2, 74, 74, 44]
[2, 74, 44, 44, 2, 44, 44, 2, 44, 74]
[2, 74, 74, 44]
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: [7, 95, 8, 46, 6, 4, 2, 0, 3, 10] -> ? Answer:
[7, 95, 8, 46, 6, 4, 2, 0, 3, 10] -> [7, 95, 8, 46, 6, 4, 10, 2, 0, 3, 10]
[7, 95, 8, 46, 6, 4, 2, 0, 3, 10]
[7, 95, 8, 46, 6, 4, 10, 2, 0, 3, 10]
c167
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 divisible by 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [19, 73, 1, 3, 2, 6] -> [3, 6] [82, 89, 67, 51, 88, 8] -> [51] [9, 1, 83, 4, 95, 29, 44, 7] -> [9] [15, 6, 60, 66, 37, 63, 33, 53, 3, 0] -> [15, 6, 60, 66, 63, 33, 3, 0] [54, 8, 6, 0, 2, 70, 7, 9, 3, 19] -> [54, 6, 0, 9, 3] [2, 14, 7, 91, 80, 20, 31, 38] -> [] [0, 4, 73, 8, 8, 78] -> [0, 78] [96, 94, 9, 12, 7, 57, 0, 5, 1] -> [96, 9, 12, 57, 0] Questions: [78, 90, 7, 42, 60, 5, 78, 36, 0, 65] -> ? Answer:
[78, 90, 7, 42, 60, 5, 78, 36, 0, 65] -> [78, 90, 42, 60, 78, 36, 0]
[78, 90, 7, 42, 60, 5, 78, 36, 0, 65]
[78, 90, 42, 60, 78, 36, 0]
c241
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 even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 4, 78, 6, 6, 28, 1, 78, 4, 70] -> [9] [84, 83, 51, 5, 85, 77, 59] -> [1] [28, 5, 4, 6, 57, 12, 90, 61, 50] -> [6] [2, 6, 78, 87, 97, 93, 11, 0, 34] -> [5] [5, 3, 1, 4, 25, 32, 8] -> [3] [80, 9, 38, 1, 4, 5, 6, 72, 98] -> [6] [18, 7, 53, 11, 6, 64, 8, 2, 68, 4] -> [7] [3, 6, 4, 63, 89, 41, 9] -> [2] Questions: [4, 26, 91, 6, 67, 14, 8, 96, 42, 2] -> ? Answer:
[4, 26, 91, 6, 67, 14, 8, 96, 42, 2] -> [8]
[4, 26, 91, 6, 67, 14, 8, 96, 42, 2]
[8]
c144
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 or smallest element with their absolute difference".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 55] -> [1, 55, 55] [29, 3, 93, 4, 74, 8, 7, 5, 43, 0] -> [29, 3, 93, 4, 74, 8, 7, 5, 43, 93] [89, 4, 35, 76] -> [85, 85, 35, 76] [3, 98, 41, 0, 50, 80] -> [3, 98, 41, 98, 50, 80] [7, 35, 9, 5, 11, 84, 13, 2, 48, 21] -> [7, 35, 9, 5, 11, 82, 13, 82, 48, 21] [2, 6, 19, 1, 39, 79, 9] -> [2, 6, 19, 78, 39, 78, 9] [7, 54, 21] -> [47, 47, 21] [49] -> [0] Questions: [91, 79, 72, 0, 8, 87, 26, 6, 61] -> ? Answer:
[91, 79, 72, 0, 8, 87, 26, 6, 61] -> [91, 79, 72, 91, 8, 87, 26, 6, 61]
[91, 79, 72, 0, 8, 87, 26, 6, 61]
[91, 79, 72, 91, 8, 87, 26, 6, 61]
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: [7, 1, 4] -> ? Answer:
[7, 1, 4] -> [7, 1]
[7, 1, 4]
[7, 1]
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: [1, 3, 0, 6] -> ? Answer:
[1, 3, 0, 6] -> [1, 1, 1, 1, 1, 1, 3, 0, 6]
[1, 3, 0, 6]
[1, 1, 1, 1, 1, 1, 3, 0, 6]
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: [50, 49, 78, 22, 57, 27, 2, 14, 5, 7] -> ? Answer:
[50, 49, 78, 22, 57, 27, 2, 14, 5, 7] -> [50, 49, 2, 22, 57, 27, 2, 14, 5, 7]
[50, 49, 78, 22, 57, 27, 2, 14, 5, 7]
[50, 49, 2, 22, 57, 27, 2, 14, 5, 7]
c112
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 the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [14, 23, 88, 7, 0, 82, 8] -> [1, 2, 3, 4, 5, 6, 7, 8] [38, 0, 5, 47, 80, 86, 4, 21, 94, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [2, 28, 78, 80, 90, 79, 8, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [12] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] [95, 93, 13] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] [0, 4, 8, 53, 1] -> [1] [38, 0, 1, 22, 16, 3] -> [1, 2, 3] [0, 9, 1, 3, 98, 4, 77, 36, 8] -> [1, 2, 3, 4, 5, 6, 7, 8] Questions: [69, 58, 7, 3, 2] -> ? Answer:
[69, 58, 7, 3, 2] -> [1, 2]
[69, 58, 7, 3, 2]
[1, 2]
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: [77, 23, 77, 23, 66, 66, 77, 23, 77] -> ? Answer:
[77, 23, 77, 23, 66, 66, 77, 23, 77] -> [23, 23, 66, 66, 23]
[77, 23, 77, 23, 66, 66, 77, 23, 77]
[23, 23, 66, 66, 23]
c221
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 even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [60, 6, 7, 47, 23, 1, 39, 13] -> [66] [99, 8, 46, 6, 73, 47, 7, 4, 5] -> [64] [6, 7, 1, 91, 21, 8, 20, 9, 18] -> [52] [16, 8, 13, 6, 11, 75, 4, 58] -> [92] [0, 37, 55, 3, 6, 15, 5, 2, 8] -> [16] [87, 93, 9, 87, 2, 5, 5, 1] -> [2] [44, 3, 39, 87, 5, 0, 6, 95] -> [50] [6, 4, 12, 29, 5, 2, 38, 34, 17, 9] -> [96] Questions: [0, 12, 38, 3, 63, 49, 31] -> ? Answer:
[0, 12, 38, 3, 63, 49, 31] -> [50]
[0, 12, 38, 3, 63, 49, 31]
[50]
c062
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 element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 7, 2, 9, 0, 6] -> [8, 5, 7, 2, 9, 0] [9, 2, 8, 1, 4, 5, 3] -> [9, 2, 8, 1, 4, 5] [7, 9, 0, 1, 5, 4, 6, 8, 3, 2] -> [7, 9, 0, 1, 5, 4, 6, 8, 3] [6, 8, 3, 9, 7] -> [6, 8, 3, 9] [6, 4, 2, 3, 0] -> [6, 4, 2, 3] [6, 0, 7, 9, 3, 8] -> [6, 0, 7, 9, 3] [2, 7, 1] -> [2, 7] [9, 3, 6] -> [9, 3] Questions: [1, 5, 3] -> ? Answer:
[1, 5, 3] -> [1, 5]
[1, 5, 3]
[1, 5]
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: [7, 9, 2, 6, 0, 4] -> ? Answer:
[7, 9, 2, 6, 0, 4] -> [7, 9, 2, 6, 0, 3]
[7, 9, 2, 6, 0, 4]
[7, 9, 2, 6, 0, 3]
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: [5, 24, 78, 39, 8] -> ? Answer:
[5, 24, 78, 39, 8] -> [78]
[5, 24, 78, 39, 8]
[78]
c013
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 through 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 9, 0, 6, 5] -> [0, 6, 5] [2, 6, 1, 3] -> [1, 3] [4, 5, 7] -> [7] [8, 3] -> [] [4, 2, 8, 0, 5, 9, 7, 1, 3] -> [8, 0, 5, 9, 7] [2] -> [] [7, 9, 1, 6, 5, 2] -> [1, 6, 5, 2] [9, 7] -> [] Questions: [4, 0, 5, 7, 6, 1] -> ? Answer:
[4, 0, 5, 7, 6, 1] -> [5, 7, 6, 1]
[4, 0, 5, 7, 6, 1]
[5, 7, 6, 1]
c155
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "multiply each element by its index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 8, 8, 3, 3, 8, 3] -> [3, 16, 24, 12, 15, 48, 21] [3, 3, 3, 1, 2, 1] -> [3, 6, 9, 4, 10, 6] [5, 7, 1, 2, 3, 8, 4, 0, 6] -> [5, 14, 3, 8, 15, 48, 28, 0, 54] [8, 8, 1, 9, 1, 1] -> [8, 16, 3, 36, 5, 6] [6, 6, 9, 6, 9, 9, 9, 6] -> [6, 12, 27, 24, 45, 54, 63, 48] [1, 8, 1, 8, 8, 1, 1] -> [1, 16, 3, 32, 40, 6, 7] [0, 5, 0, 3, 1, 1, 3, 0, 3] -> [0, 10, 0, 12, 5, 6, 21, 0, 27] [1, 4, 6, 3, 4, 8, 1] -> [1, 8, 18, 12, 20, 48, 7] Questions: [6, 0, 6, 6, 6, 0, 5, 6, 6] -> ? Answer:
[6, 0, 6, 6, 6, 0, 5, 6, 6] -> [6, 0, 18, 24, 30, 0, 35, 48, 54]
[6, 0, 6, 6, 6, 0, 5, 6, 6]
[6, 0, 18, 24, 30, 0, 35, 48, 54]
c190
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 first element to the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 84, 9] -> [1, 3, 5, 7, 9] [44, 7, 45, 40, 2, 8, 3, 6, 26] -> [] [68, 1, 84] -> [68, 70, 72, 74, 76, 78, 80, 82, 84] [62, 45, 75, 38, 97, 7, 2, 0] -> [] [3, 6, 7, 82, 70, 5] -> [3, 5] [0, 99, 9, 0, 4, 4] -> [0, 2, 4] [8, 56, 8, 42, 14] -> [8, 10, 12, 14] [9, 13] -> [9, 11, 13] Questions: [2, 2, 3, 92, 12] -> ? Answer:
[2, 2, 3, 92, 12] -> [2, 4, 6, 8, 10, 12]
[2, 2, 3, 92, 12]
[2, 4, 6, 8, 10, 12]
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: [1, 2, 3] -> ? Answer:
[1, 2, 3] -> [2, 3]
[1, 2, 3]
[2, 3]
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: [3, 9, 7, 6, 0, 5, 1] -> ? Answer:
[3, 9, 7, 6, 0, 5, 1] -> [7, 9, 3, 4, 0, 1]
[3, 9, 7, 6, 0, 5, 1]
[7, 9, 3, 4, 0, 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: [88, 43, 44, 43, 9, 6, 60, 4] -> ? Answer:
[88, 43, 44, 43, 9, 6, 60, 4] -> [95, 49, 49, 47, 12, 8, 61, 4]
[88, 43, 44, 43, 9, 6, 60, 4]
[95, 49, 49, 47, 12, 8, 61, 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: [1, 1, 8, 1] -> ? Answer:
[1, 1, 8, 1] -> [1, 8, 1, 1]
[1, 1, 8, 1]
[1, 8, 1, 1]
c172
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative product of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6] -> [6] [0, 13, 6, 70, 7, 12, 13, 7] -> [0, 0, 0, 0, 0, 0, 0, 0] [1, 1, 82] -> [1, 1, 82] [3, 4, 8] -> [3, 12, 96] [3, 3, 1, 1] -> [3, 9, 9, 9] [3, 0, 42, 33, 5, 98, 62, 2, 41, 77] -> [3, 0, 0, 0, 0, 0, 0, 0, 0, 0] [1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1] [0, 9, 5, 3, 8, 8] -> [0, 0, 0, 0, 0, 0] Questions: [3, 1, 3] -> ? Answer:
[3, 1, 3] -> [3, 3, 9]
[3, 1, 3]
[3, 3, 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: [53, 53, 53, 65, 12, 65, 12, 54, 54, 65] -> ? Answer:
[53, 53, 53, 65, 12, 65, 12, 54, 54, 65] -> [3, 3, 3, 3, 2, 3, 2, 2, 2, 3]
[53, 53, 53, 65, 12, 65, 12, 54, 54, 65]
[3, 3, 3, 3, 2, 3, 2, 2, 2, 3]
c067
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 first and last elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 0, 2, 8, 6, 7, 5, 1] -> [1, 0, 2, 8, 6, 7, 5, 9] [9, 8] -> [8, 9] [8, 0] -> [0, 8] [4, 0, 8, 5, 3, 7, 1, 9, 6] -> [6, 0, 8, 5, 3, 7, 1, 9, 4] [3, 4, 6, 2, 8, 1] -> [1, 4, 6, 2, 8, 3] [3, 7, 4, 5, 2, 1, 0, 8] -> [8, 7, 4, 5, 2, 1, 0, 3] [1, 7, 6, 9, 4] -> [4, 7, 6, 9, 1] [4, 2, 1, 9, 7, 8, 0, 3, 6, 5] -> [5, 2, 1, 9, 7, 8, 0, 3, 6, 4] Questions: [6, 4, 5] -> ? Answer:
[6, 4, 5] -> [5, 4, 6]
[6, 4, 5]
[5, 4, 6]
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, 9, 7, 2, 0, 4, 1, 6, 8] -> ? Answer:
[5, 9, 7, 2, 0, 4, 1, 6, 8] -> [5, 9, 7, 2, 0, 4, 1, 6, 8, 9]
[5, 9, 7, 2, 0, 4, 1, 6, 8]
[5, 9, 7, 2, 0, 4, 1, 6, 8, 9]
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: [2, 8, 7, 6] -> ? Answer:
[2, 8, 7, 6] -> [2, 8, 7, 6, 9]
[2, 8, 7, 6]
[2, 8, 7, 6, 9]
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: [9, 7, 0, 9, 9, 6, 0, 7, 6] -> ? Answer:
[9, 7, 0, 9, 9, 6, 0, 7, 6] -> [7, 6]
[9, 7, 0, 9, 9, 6, 0, 7, 6]
[7, 6]
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: [9, 7, 1, 34, 34, 11, 4] -> ? Answer:
[9, 7, 1, 34, 34, 11, 4] -> [9, 7, 1, 1, 1, 11, 4]
[9, 7, 1, 34, 34, 11, 4]
[9, 7, 1, 1, 1, 11, 4]
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: [4, 13, 80, 3, 2, 0, 26, 97, 6, 4] -> ? Answer:
[4, 13, 80, 3, 2, 0, 26, 97, 6, 4] -> [80]
[4, 13, 80, 3, 2, 0, 26, 97, 6, 4]
[80]
c117
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by three elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5] [9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69] [7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4] [14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83] [70, 5, 77, 54] -> [54, 70, 5, 77] [64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42] [2, 45, 32, 14] -> [14, 2, 45, 32] [4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3] Questions: [8, 31, 0, 32, 76, 9] -> ? Answer:
[8, 31, 0, 32, 76, 9] -> [32, 76, 9, 8, 31, 0]
[8, 31, 0, 32, 76, 9]
[32, 76, 9, 8, 31, 0]
c008
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 6 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 9, 3, 1, 6, 0, 7, 4, 2] -> [8, 5, 9, 3, 1, 6] [0, 4, 6] -> [0, 4, 6] [4, 8, 2, 3, 6] -> [4, 8, 2, 3, 6] [1, 0, 7, 3, 4, 2, 8, 9, 6, 5] -> [1, 0, 7, 3, 4, 2] [1] -> [1] [6, 4, 2, 1, 0, 7, 3, 5, 9] -> [6, 4, 2, 1, 0, 7] [1, 5, 6, 9, 0, 4, 8, 2, 3] -> [1, 5, 6, 9, 0, 4] [0, 6, 1, 3, 8, 9, 7] -> [0, 6, 1, 3, 8, 9] Questions: [] -> ? Answer:
[] -> []
[]
[]
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, 8, 0, 3, 6, 4, 5, 1, 7, 2] -> ? Answer:
[9, 8, 0, 3, 6, 4, 5, 1, 7, 2] -> [9, 8, 0, 3, 6, 4]
[9, 8, 0, 3, 6, 4, 5, 1, 7, 2]
[9, 8, 0, 3, 6, 4]
c215
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 + 1 with the length of the input, M = element 1; drop element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 9, 4, 1, 93] -> [9, 4, 5, 93] [3, 87, 87, 33, 59, 2, 6, 72, 45, 8] -> [87, 87, 10, 59, 2, 6, 72, 45, 8] [2, 61, 0, 27, 1, 4, 72, 92, 84] -> [61, 9, 27, 1, 4, 72, 92, 84] [4, 1, 5, 2, 0, 68, 36, 2, 14, 6] -> [1, 5, 2, 10, 68, 36, 2, 14, 6] [4, 97, 57, 8, 83, 1] -> [97, 57, 8, 6, 1] [6, 45, 1, 99, 53, 0, 41, 5, 4] -> [45, 1, 99, 53, 0, 9, 5, 4] [1, 1, 82] -> [3, 82] [6, 75, 55, 9, 0, 16, 0, 5] -> [75, 55, 9, 0, 16, 8, 5] Questions: [4, 4, 6, 8, 8, 88] -> ? Answer:
[4, 4, 6, 8, 8, 88] -> [4, 6, 8, 6, 88]
[4, 4, 6, 8, 8, 88]
[4, 6, 8, 6, 88]
c107
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [35, 70, 1, 35, 70, 9, 35, 26, 9] -> [35, 70, 1, 9, 26] [17, 25, 25, 43, 8, 25, 43] -> [17, 25, 43, 8] [96, 25, 25, 3, 81, 16, 16, 16, 81] -> [96, 25, 3, 81, 16] [37, 11, 11, 3, 3, 87, 87, 11] -> [37, 11, 3, 87] [] -> [] [51, 51, 51, 51] -> [51] [75, 21, 21, 21, 75, 75] -> [75, 21] [8, 8, 8, 8] -> [8] Questions: [90, 76, 90, 90, 90, 90, 76] -> ? Answer:
[90, 76, 90, 90, 90, 90, 76] -> [90, 76]
[90, 76, 90, 90, 90, 90, 76]
[90, 76]
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: [95, 90, 1, 14, 6, 7, 9, 91] -> ? Answer:
[95, 90, 1, 14, 6, 7, 9, 91] -> [91, 9, 7, 6, 14, 14, 6, 1, 90, 95]
[95, 90, 1, 14, 6, 7, 9, 91]
[91, 9, 7, 6, 14, 14, 6, 1, 90, 95]
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: [5, 2, 4, 0, 1, 3, 8, 9, 7] -> ? Answer:
[5, 2, 4, 0, 1, 3, 8, 9, 7] -> [5, 2, 4, 0, 1, 3, 8]
[5, 2, 4, 0, 1, 3, 8, 9, 7]
[5, 2, 4, 0, 1, 3, 8]
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: [53, 82, 85, 31, 49] -> ? Answer:
[53, 82, 85, 31, 49] -> [1, 31, 2, 49, 3, 53, 4, 82, 5, 85]
[53, 82, 85, 31, 49]
[1, 31, 2, 49, 3, 53, 4, 82, 5, 85]
c120
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 first element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [99, 2] -> [99] [2, 24, 1, 76, 46, 48, 13, 0] -> [2] [18, 6, 95, 2, 5, 1] -> [18] [65, 71, 30] -> [65] [52, 9, 1, 13, 49, 5, 35, 87] -> [52] [55, 81, 20, 8, 29] -> [55] [32, 49, 44] -> [32] [4, 3, 8, 2] -> [4] Questions: [91, 50, 8, 39, 51, 2, 46, 29, 31] -> ? Answer:
[91, 50, 8, 39, 51, 2, 46, 29, 31] -> [91]
[91, 50, 8, 39, 51, 2, 46, 29, 31]
[91]
c171
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 6, 7, 6, 4, 4] -> [7, 13, 20, 26, 30, 34] [3, 5, 15, 2, 3, 4, 7, 2] -> [3, 8, 23, 25, 28, 32, 39, 41] [7, 9, 9, 9, 7, 7, 9, 7, 7] -> [7, 16, 25, 34, 41, 48, 57, 64, 71] [1, 0, 1, 1, 1, 0] -> [1, 1, 2, 3, 4, 4] [8, 0, 8, 0, 0, 8, 16] -> [8, 8, 16, 16, 16, 24, 40] [5, 5, 5, 5, 5, 5] -> [5, 10, 15, 20, 25, 30] [0, 0, 0, 6, 6, 3, 6] -> [0, 0, 0, 6, 12, 15, 21] [1, 3, 13, 13, 10, 12, 2, 3, 13, 2] -> [1, 4, 17, 30, 40, 52, 54, 57, 70, 72] Questions: [1, 1, 6, 6] -> ? Answer:
[1, 1, 6, 6] -> [1, 2, 8, 14]
[1, 1, 6, 6]
[1, 2, 8, 14]
c102
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: [39, 8, 4] -> [39, 8, 4] [3, 89] -> [3, 89] [52, 67] -> [52, 67] [96, 68] -> [96, 68] [58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70] [93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71] [60, 92] -> [60, 92] [83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8] Questions: [78] -> ? Answer:
[78] -> [78]
[78]
[78]
c185
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 sublist between the first and last elements with its sum".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [33, 7, 8, 24, 29, 21, 1, 5] -> [33, 90, 5] [8, 81, 7, 1, 3, 0] -> [8, 92, 0] [6, 22, 1, 7, 20, 14, 14, 14] -> [6, 78, 14] [60, 11, 63, 4, 11, 1, 7] -> [60, 90, 7] [96, 4, 0, 1, 63, 17] -> [96, 68, 17] [9, 0, 24, 4, 50, 0, 7] -> [9, 78, 7] [74, 9, 3, 0, 44, 54] -> [74, 56, 54] [31, 7, 1, 62, 2, 7, 8, 6, 4] -> [31, 93, 4] Questions: [5, 7, 19, 6, 2, 0, 1] -> ? Answer:
[5, 7, 19, 6, 2, 0, 1] -> [5, 34, 1]
[5, 7, 19, 6, 2, 0, 1]
[5, 34, 1]
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: [5, 74, 90, 38] -> ? Answer:
[5, 74, 90, 38] -> [38, 74, 5, 90]
[5, 74, 90, 38]
[38, 74, 5, 90]
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: [1, 8, 2, 7, 4, 6, 5, 0, 9, 3] -> ? Answer:
[1, 8, 2, 7, 4, 6, 5, 0, 9, 3] -> [1, 8, 2, 7, 4, 3, 5, 0, 9, 3]
[1, 8, 2, 7, 4, 6, 5, 0, 9, 3]
[1, 8, 2, 7, 4, 3, 5, 0, 9, 3]
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: [1, 38, 74, 37, 16, 40, 40, 87] -> ? Answer:
[1, 38, 74, 37, 16, 40, 40, 87] -> [40]
[1, 38, 74, 37, 16, 40, 40, 87]
[40]
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: [4, 58, 9, 90, 2, 49, 7, 21] -> ? Answer:
[4, 58, 9, 90, 2, 49, 7, 21] -> [21, 7, 49, 2, 90, 90, 2, 9, 58, 4]
[4, 58, 9, 90, 2, 49, 7, 21]
[21, 7, 49, 2, 90, 90, 2, 9, 58, 4]
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: [87, 73, 72, 98, 29, 2, 85, 37] -> ? Answer:
[87, 73, 72, 98, 29, 2, 85, 37] -> [29, 72, 85, 98, 87, 73, 37, 2]
[87, 73, 72, 98, 29, 2, 85, 37]
[29, 72, 85, 98, 87, 73, 37, 2]
c240
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 elements equal to the input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 61, 9, 55, 87, 10, 90, 1, 39] -> [2] [24, 7, 85, 79, 7, 79, 9] -> [2] [93, 93, 93, 9, 93, 93, 9, 9, 33] -> [3] [2, 2] -> [2] [72, 8, 72, 6, 6, 70, 28, 8] -> [2] [52, 2, 14, 37, 92, 1, 96, 29] -> [0] [2, 9, 4, 9, 9, 9, 9, 4, 4] -> [5] [2, 1, 9, 2, 9, 13, 93, 93, 45] -> [2] Questions: [43, 4, 4, 4] -> ? Answer:
[43, 4, 4, 4] -> [3]
[43, 4, 4, 4]
[3]
c065
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 9 and append 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 6, 1] -> [9, 8, 6, 1, 7] [3] -> [9, 3, 7] [9, 4, 0, 2, 1, 8] -> [9, 9, 4, 0, 2, 1, 8, 7] [2, 7, 1, 6, 9, 8, 5, 4, 0, 3] -> [9, 2, 7, 1, 6, 9, 8, 5, 4, 0, 3, 7] [3, 0, 8, 6, 2, 5, 4] -> [9, 3, 0, 8, 6, 2, 5, 4, 7] [1] -> [9, 1, 7] [0, 2, 3, 4] -> [9, 0, 2, 3, 4, 7] [9, 4, 2, 3, 5, 1, 8, 7, 0, 6] -> [9, 9, 4, 2, 3, 5, 1, 8, 7, 0, 6, 7] Questions: [9, 4, 1, 5] -> ? Answer:
[9, 4, 1, 5] -> [9, 9, 4, 1, 5, 7]
[9, 4, 1, 5]
[9, 9, 4, 1, 5, 7]
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: [78, 93, 47, 5, 9, 14, 1, 25, 32] -> ? Answer:
[78, 93, 47, 5, 9, 14, 1, 25, 32] -> [78, 93]
[78, 93, 47, 5, 9, 14, 1, 25, 32]
[78, 93]
c217
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 ones digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [46, 0, 9, 36] -> [0, 46, 36, 9] [9, 7, 92, 23] -> [92, 23, 7, 9] [88, 8, 5, 7, 2, 9, 4] -> [2, 4, 5, 7, 88, 8, 9] [55, 31, 78, 70] -> [70, 31, 55, 78] [48, 31, 26, 99, 86, 2] -> [31, 2, 26, 86, 48, 99] [9, 7, 21, 0] -> [0, 21, 7, 9] [5, 9, 98, 75, 73, 10] -> [10, 73, 5, 75, 98, 9] [23, 90, 69, 67, 9] -> [90, 23, 67, 69, 9] Questions: [68, 50, 7, 90, 6, 75] -> ? Answer:
[68, 50, 7, 90, 6, 75] -> [50, 90, 75, 6, 7, 68]
[68, 50, 7, 90, 6, 75]
[50, 90, 75, 6, 7, 68]
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: [9, 63, 92, 3, 21, 92, 3] -> ? Answer:
[9, 63, 92, 3, 21, 92, 3] -> [9, 63, 21]
[9, 63, 92, 3, 21, 92, 3]
[9, 63, 21]
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: [6, 2, 9, 8, 44, 7, 3] -> ? Answer:
[6, 2, 9, 8, 44, 7, 3] -> [3]
[6, 2, 9, 8, 44, 7, 3]
[3]
c023
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 the list length > 5 else 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 8, 0, 7, 6, 4, 2] -> [9, 5, 3, 8, 0, 7, 6, 4, 2] [4, 1, 2, 0, 6, 9] -> [4, 5, 1, 2, 0, 6, 9] [6, 2, 8, 5, 1, 9, 7, 3, 4] -> [6, 5, 2, 8, 5, 1, 9, 7, 3, 4] [6, 2] -> [6, 8, 2] [7, 9, 2, 1, 4, 3, 8, 6, 0] -> [7, 5, 9, 2, 1, 4, 3, 8, 6, 0] [6, 2, 4, 3] -> [6, 8, 2, 4, 3] [0, 7, 1, 5, 4] -> [0, 5, 7, 1, 5, 4] [4, 8, 9, 5, 1, 7, 6, 3, 0, 2] -> [4, 5, 8, 9, 5, 1, 7, 6, 3, 0, 2] Questions: [1, 9, 6, 5, 0, 3, 8, 4, 7, 2] -> ? Answer:
[1, 9, 6, 5, 0, 3, 8, 4, 7, 2] -> [1, 5, 9, 6, 5, 0, 3, 8, 4, 7, 2]
[1, 9, 6, 5, 0, 3, 8, 4, 7, 2]
[1, 5, 9, 6, 5, 0, 3, 8, 4, 7, 2]
c188
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 it is divisible by 3, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0] [89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0] [54, 12, 73] -> [1, 1, 0] [71, 48, 3, 6] -> [0, 1, 1, 1] [27, 8, 7, 36, 2, 6, 62] -> [1, 0, 0, 1, 0, 1, 0] [21, 0, 9, 25, 44, 95, 65] -> [1, 1, 1, 0, 0, 0, 0] [15, 63] -> [1, 1] [4, 72, 9, 0, 8, 95, 5, 2, 15, 49] -> [0, 1, 1, 1, 0, 0, 0, 0, 1, 0] Questions: [8, 17, 3, 69, 1, 0, 32, 97, 7] -> ? Answer:
[8, 17, 3, 69, 1, 0, 32, 97, 7] -> [0, 0, 1, 1, 0, 1, 0, 0, 0]
[8, 17, 3, 69, 1, 0, 32, 97, 7]
[0, 0, 1, 1, 0, 1, 0, 0, 0]
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: [7, 80, 4, 57, 3] -> ? Answer:
[7, 80, 4, 57, 3] -> [3, 4, 7, 57, 80]
[7, 80, 4, 57, 3]
[3, 4, 7, 57, 80]
c043
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 [8, 2, 7, 0, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 6, 6, 6, 6, 3] -> [8, 2, 7, 0, 3] [6] -> [8, 2, 7, 0, 3] [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3] [5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3] [1, 1, 1, 1, 1, 1] -> [8, 2, 7, 0, 3] [5, 1, 5, 9, 6, 5, 1] -> [8, 2, 7, 0, 3] [6, 1, 9, 5, 0, 4] -> [8, 2, 7, 0, 3] [1, 1, 1, 6, 5, 6, 1, 5] -> [8, 2, 7, 0, 3] Questions: [4, 4, 4] -> ? Answer:
[4, 4, 4] -> [8, 2, 7, 0, 3]
[4, 4, 4]
[8, 2, 7, 0, 3]
c220
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "if input length is even, double each element, else triple it".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [27, 5, 5] -> [81, 15, 15] [8, 7, 31] -> [24, 21, 93] [4, 0, 5, 2, 1, 3, 6, 9, 33] -> [12, 0, 15, 6, 3, 9, 18, 27, 99] [2, 6] -> [4, 12] [42, 42] -> [84, 84] [7, 0, 2, 5, 9, 1, 4] -> [21, 0, 6, 15, 27, 3, 12] [14, 6] -> [28, 12] [9, 5, 1, 49, 9, 15] -> [18, 10, 2, 98, 18, 30] Questions: [3, 5] -> ? Answer:
[3, 5] -> [6, 10]
[3, 5]
[6, 10]
c189
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 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: [7, 7, 5, 5, 5, 5, 7] -> [5, 6, 7] [57, 65, 65, 57, 65, 57, 65, 57, 65] -> [57, 58, 59, 60, 61, 62, 63, 64, 65] [9, 12, 9, 9, 12] -> [9, 10, 11, 12] [4, 8, 4, 3, 6, 4, 3] -> [3, 4, 5, 6, 7, 8] [77, 64, 77, 64, 64, 64, 77, 77, 64, 77] -> [64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77] [4, 6, 6, 6, 4] -> [4, 5, 6] [6, 6, 4, 0, 5, 0, 0, 6, 5] -> [0, 1, 2, 3, 4, 5, 6] [2, 6, 3, 2] -> [2, 3, 4, 5, 6] Questions: [0, 5, 5, 5, 5] -> ? Answer:
[0, 5, 5, 5, 5] -> [0, 1, 2, 3, 4, 5]
[0, 5, 5, 5, 5]
[0, 1, 2, 3, 4, 5]
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: [94, 10, 8, 0, 33, 51] -> ? Answer:
[94, 10, 8, 0, 33, 51] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[94, 10, 8, 0, 33, 51]
[1, 2, 3, 4, 5, 7, 8, 9, 10]
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: [99, 8, 5, 55, 2, 16, 92, 61, 6] -> ? Answer:
[99, 8, 5, 55, 2, 16, 92, 61, 6] -> [5, 6, 8, 16, 55, 61, 92]
[99, 8, 5, 55, 2, 16, 92, 61, 6]
[5, 6, 8, 16, 55, 61, 92]
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: [62, 66, 86, 68, 16] -> ? Answer:
[62, 66, 86, 68, 16] -> [59]
[62, 66, 86, 68, 16]
[59]
c092
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 [92, 63, 34, 18, 55] with input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [21, 40, 9, 52, 7, 80] -> [92, 63, 34, 18, 55, 21, 40, 9, 52, 7, 80] [12, 27, 65, 4, 31, 8] -> [92, 63, 34, 18, 55, 12, 27, 65, 4, 31, 8] [23, 33, 76, 58, 90, 8] -> [92, 63, 34, 18, 55, 23, 33, 76, 58, 90, 8] [7, 16, 60, 34, 58, 73, 0, 79, 86] -> [92, 63, 34, 18, 55, 7, 16, 60, 34, 58, 73, 0, 79, 86] [57, 9, 33, 52, 4, 3, 0, 39] -> [92, 63, 34, 18, 55, 57, 9, 33, 52, 4, 3, 0, 39] [87, 12, 50, 66, 64] -> [92, 63, 34, 18, 55, 87, 12, 50, 66, 64] [41, 35, 4, 3, 25, 47, 88, 98, 0] -> [92, 63, 34, 18, 55, 41, 35, 4, 3, 25, 47, 88, 98, 0] [47, 5, 57] -> [92, 63, 34, 18, 55, 47, 5, 57] Questions: [5, 87] -> ? Answer:
[5, 87] -> [92, 63, 34, 18, 55, 5, 87]
[5, 87]
[92, 63, 34, 18, 55, 5, 87]
c044
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 [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] Questions: [8, 3] -> ? Answer:
[8, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 3]
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
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: [1, 63, 9, 19, 37, 6, 7, 19, 8, 42] -> ? Answer:
[1, 63, 9, 19, 37, 6, 7, 19, 8, 42] -> [1, 0, 0, 0, 0, 1, 1, 0, 0, 0]
[1, 63, 9, 19, 37, 6, 7, 19, 8, 42]
[1, 0, 0, 0, 0, 1, 1, 0, 0, 0]
c136
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 occurrence of the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [64, 3, 64, 64, 1, 55] -> [3, 64, 64, 1, 55] [5, 24, 11, 26, 73, 41, 60, 73] -> [5, 24, 11, 26, 41, 60, 73] [82, 5, 82, 82, 81, 12, 31, 5, 31] -> [5, 82, 82, 81, 12, 31, 5, 31] [59, 4, 5, 16, 59, 9] -> [4, 5, 16, 59, 9] [0, 78, 78, 9, 78] -> [0, 78, 9, 78] [25, 25] -> [25] [71, 1, 0, 22, 6, 18, 4, 99, 3, 87] -> [71, 1, 0, 22, 6, 18, 4, 3, 87] [4, 1, 40, 56, 71, 8, 45, 3, 13] -> [4, 1, 40, 56, 8, 45, 3, 13] Questions: [50, 50, 8, 50] -> ? Answer:
[50, 50, 8, 50] -> [50, 8, 50]
[50, 50, 8, 50]
[50, 8, 50]
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: [2, 40, 65, 65] -> ? Answer:
[2, 40, 65, 65] -> [40, 65]
[2, 40, 65, 65]
[40, 65]
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: [40, 25, 4, 67, 54, 7, 42] -> ? Answer:
[40, 25, 4, 67, 54, 7, 42] -> [40, 25, 4, 67, 7, 42]
[40, 25, 4, 67, 54, 7, 42]
[40, 25, 4, 67, 7, 42]
c033
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: [2, 0, 4, 6, 7, 3] -> [6, 0, 4, 2, 7, 3] [1, 9, 3, 5] -> [5, 9, 3, 1] [6, 8, 7, 4] -> [4, 8, 7, 6] [1, 4, 0, 8, 6, 7, 3, 2, 5] -> [8, 4, 0, 1, 6, 7, 3, 2, 5] [7, 2, 6, 8, 0, 5, 9] -> [8, 2, 6, 7, 0, 5, 9] [7, 6, 2, 9, 1, 3, 5, 8, 0, 4] -> [9, 6, 2, 7, 1, 3, 5, 8, 0, 4] [2, 7, 5, 0, 3] -> [0, 7, 5, 2, 3] [7, 9, 4, 0, 3, 8, 1] -> [0, 9, 4, 7, 3, 8, 1] Questions: [3, 1, 8, 4, 7, 2, 6, 5, 0, 9] -> ? Answer:
[3, 1, 8, 4, 7, 2, 6, 5, 0, 9] -> [4, 1, 8, 3, 7, 2, 6, 5, 0, 9]
[3, 1, 8, 4, 7, 2, 6, 5, 0, 9]
[4, 1, 8, 3, 7, 2, 6, 5, 0, 9]
c100
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [96, 69] -> [69, 96] [3, 53, 99, 51, 50, 92, 6] -> [6, 92, 50, 51, 99, 53, 3] [87, 91, 74] -> [74, 91, 87] [90, 5, 0, 96] -> [96, 0, 5, 90] [32, 0, 88, 5, 83, 2, 44, 16, 1, 97] -> [97, 1, 16, 44, 2, 83, 5, 88, 0, 32] [18, 59, 10, 83, 86, 64, 0] -> [0, 64, 86, 83, 10, 59, 18] [0, 42, 11, 2, 35] -> [35, 2, 11, 42, 0] [39, 65, 0, 1, 49, 30] -> [30, 49, 1, 0, 65, 39] Questions: [39, 6, 4, 7, 9, 3] -> ? Answer:
[39, 6, 4, 7, 9, 3] -> [3, 9, 7, 4, 6, 39]
[39, 6, 4, 7, 9, 3]
[3, 9, 7, 4, 6, 39]