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
c195
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98] [9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7] [14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54] [9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5] [4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81] [85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47] [50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74] [24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80] Questions: [3, 6, 8] -> ? Answer:
[3, 6, 8] -> [3, 23, 68, 42, 99, 71, 8]
[3, 6, 8]
[3, 23, 68, 42, 99, 71, 8]
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: [0, 74, 19, 18, 96, 3, 27, 40, 6, 75] -> ? Answer:
[0, 74, 19, 18, 96, 3, 27, 40, 6, 75] -> [96, 75, 10, 0, 0]
[0, 74, 19, 18, 96, 3, 27, 40, 6, 75]
[96, 75, 10, 0, 0]
c090
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 [18, 42, 77, 20, 36]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 6, 9, 49, 90, 34, 24, 51, 35] -> [18, 42, 77, 20, 36] [24, 55] -> [18, 42, 77, 20, 36] [89, 4, 30, 8, 82, 63, 7, 1] -> [18, 42, 77, 20, 36] [37, 6, 37, 37, 10, 10, 10, 37] -> [18, 42, 77, 20, 36] [9, 84, 87, 78] -> [18, 42, 77, 20, 36] [32, 97, 3, 30, 8, 1, 3, 97, 79, 30] -> [18, 42, 77, 20, 36] [52, 52, 72, 98, 4, 52, 52, 72, 72] -> [18, 42, 77, 20, 36] [] -> [18, 42, 77, 20, 36] Questions: [85, 15, 13, 27, 15, 15, 7, 27, 85, 1] -> ? Answer:
[85, 15, 13, 27, 15, 15, 7, 27, 85, 1] -> [18, 42, 77, 20, 36]
[85, 15, 13, 27, 15, 15, 7, 27, 85, 1]
[18, 42, 77, 20, 36]
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: [4] -> ? Answer:
[4] -> [4, 4]
[4]
[4, 4]
c195
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98] [9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7] [14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54] [9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5] [4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81] [85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47] [50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74] [24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80] Questions: [46, 4, 5, 1, 94] -> ? Answer:
[46, 4, 5, 1, 94] -> [46, 23, 68, 42, 99, 71, 94]
[46, 4, 5, 1, 94]
[46, 23, 68, 42, 99, 71, 94]
c142
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "every digit in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [36] -> [3, 6] [44, 94] -> [4, 4, 9, 4] [8, 79, 9, 85] -> [0, 8, 7, 9, 0, 9, 8, 5] [6, 37, 2, 25] -> [0, 6, 3, 7, 0, 2, 2, 5] [98, 7, 22, 58, 73, 43, 78] -> [9, 8, 0, 7, 2, 2, 5, 8, 7, 3, 4, 3, 7, 8] [1, 37, 98, 69, 12, 70] -> [0, 1, 3, 7, 9, 8, 6, 9, 1, 2, 7, 0] [11, 4, 17] -> [1, 1, 0, 4, 1, 7] [2, 7, 73, 14, 3, 40] -> [0, 2, 0, 7, 7, 3, 1, 4, 0, 3, 4, 0] Questions: [56, 24, 15] -> ? Answer:
[56, 24, 15] -> [5, 6, 2, 4, 1, 5]
[56, 24, 15]
[5, 6, 2, 4, 1, 5]
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, 5, 5, 5] -> ? Answer:
[1, 5, 5, 5] -> [5, 5, 5, 1]
[1, 5, 5, 5]
[5, 5, 5, 1]
c002
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: [5, 0] -> [] [3, 2, 9, 7] -> [9] [8, 9, 2, 6, 5, 0] -> [2] [9, 1] -> [] [0, 8, 4, 3, 2, 5, 9, 7, 6] -> [4] [6] -> [] [8, 4, 5, 6, 7, 3, 2, 9] -> [5] [6, 4, 8, 1, 7, 0, 2] -> [8] Questions: [6, 3, 4, 1, 7, 2, 9, 8, 0] -> ? Answer:
[6, 3, 4, 1, 7, 2, 9, 8, 0] -> [4]
[6, 3, 4, 1, 7, 2, 9, 8, 0]
[4]
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: [53, 57, 17, 67, 99, 95, 5, 4, 3] -> ? Answer:
[53, 57, 17, 67, 99, 95, 5, 4, 3] -> [18, 19, 9, 21, 29, 28, 6, 6, 5]
[53, 57, 17, 67, 99, 95, 5, 4, 3]
[18, 19, 9, 21, 29, 28, 6, 6, 5]
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, 60] -> ? Answer:
[5, 60] -> [92, 63, 34, 18, 55, 5, 60]
[5, 60]
[92, 63, 34, 18, 55, 5, 60]
c121
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [99, 62, 65, 0, 95] -> [95] [6, 8, 39] -> [39] [38, 2] -> [2] [56, 65, 74] -> [74] [19, 32, 3, 78, 41, 51, 8, 80] -> [80] [3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27] [36, 22, 3, 55, 23] -> [23] [98, 65, 84] -> [84] Questions: [7, 11, 61, 9, 44, 30, 6] -> ? Answer:
[7, 11, 61, 9, 44, 30, 6] -> [6]
[7, 11, 61, 9, 44, 30, 6]
[6]
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, 65, 0, 4, 11, 5, 70, 77, 36] -> ? Answer:
[8, 65, 0, 4, 11, 5, 70, 77, 36] -> [0, 0, 1, 0, 0, 0, 0, 0, 1]
[8, 65, 0, 4, 11, 5, 70, 77, 36]
[0, 0, 1, 0, 0, 0, 0, 0, 1]
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: [8, 6, 9, 3, 1, 5, 2, 4, 0] -> ? Answer:
[8, 6, 9, 3, 1, 5, 2, 4, 0] -> [9, 3, 1, 5, 2]
[8, 6, 9, 3, 1, 5, 2, 4, 0]
[9, 3, 1, 5, 2]
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: [96, 96, 50, 50, 50, 50, 96, 96, 96] -> ? Answer:
[96, 96, 50, 50, 50, 50, 96, 96, 96] -> [96, 96, 96, 96, 50, 50, 50]
[96, 96, 50, 50, 50, 50, 96, 96, 96]
[96, 96, 96, 96, 50, 50, 50]
c238
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 that appear exactly once".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 7, 7, 7, 7, 8, 7, 8, 8] -> [] [5, 8, 8, 6, 8, 8] -> [5, 6] [8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3] [7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22] [4, 7, 10, 4, 7, 7, 1] -> [10, 1] [9, 47, 7, 5, 47, 25, 5, 45, 25] -> [9, 7, 45] [1, 1, 1, 1, 1, 1, 1] -> [] [0, 6, 0, 15, 1] -> [6, 15, 1] Questions: [15, 2, 1, 2, 2, 15, 6, 15, 4, 2] -> ? Answer:
[15, 2, 1, 2, 2, 15, 6, 15, 4, 2] -> [1, 6, 4]
[15, 2, 1, 2, 2, 15, 6, 15, 4, 2]
[1, 6, 4]
c177
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 the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [13, 94] -> [13, 94, 94, 13] [77, 7, 11] -> [77, 11, 7, 7, 11, 77] [8, 0, 65, 60] -> [8, 60, 0, 65, 65, 0, 60, 8] [26, 1, 9, 12, 98] -> [26, 98, 1, 12, 9, 9, 12, 1, 98, 26] [49, 40, 73, 4, 0, 7] -> [49, 7, 40, 0, 73, 4, 4, 73, 0, 40, 7, 49] [46, 59, 1, 76, 17, 8] -> [46, 8, 59, 17, 1, 76, 76, 1, 17, 59, 8, 46] [94, 86, 36, 43, 8, 74] -> [94, 74, 86, 8, 36, 43, 43, 36, 8, 86, 74, 94] [13, 76, 25, 8] -> [13, 8, 76, 25, 25, 76, 8, 13] Questions: [3, 6, 4, 63] -> ? Answer:
[3, 6, 4, 63] -> [3, 63, 6, 4, 4, 6, 63, 3]
[3, 6, 4, 63]
[3, 63, 6, 4, 4, 6, 63, 3]
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: [90, 75, 87, 48] -> ? Answer:
[90, 75, 87, 48] -> [1, 4]
[90, 75, 87, 48]
[1, 4]
c047
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [9, 6, 3, 8, 5] and input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 2, 0, 6, 3, 1, 5, 7, 9] -> [9, 6, 3, 8, 5, 8, 2, 0, 6, 3, 1, 5, 7, 9] [7, 1, 9, 2] -> [9, 6, 3, 8, 5, 7, 1, 9, 2] [0, 5, 4] -> [9, 6, 3, 8, 5, 0, 5, 4] [1] -> [9, 6, 3, 8, 5, 1] [6, 1, 0, 2, 7, 8, 9, 3, 5, 4] -> [9, 6, 3, 8, 5, 6, 1, 0, 2, 7, 8, 9, 3, 5, 4] [2, 8, 6, 7, 1] -> [9, 6, 3, 8, 5, 2, 8, 6, 7, 1] [1, 7, 4, 8, 5, 2, 3, 9, 6, 0] -> [9, 6, 3, 8, 5, 1, 7, 4, 8, 5, 2, 3, 9, 6, 0] [] -> [9, 6, 3, 8, 5] Questions: [1, 2, 3, 7] -> ? Answer:
[1, 2, 3, 7] -> [9, 6, 3, 8, 5, 1, 2, 3, 7]
[1, 2, 3, 7]
[9, 6, 3, 8, 5, 1, 2, 3, 7]
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: [0, 8, 1, 9, 19, 7, 76, 13, 53, 2] -> ? Answer:
[0, 8, 1, 9, 19, 7, 76, 13, 53, 2] -> [53, 2]
[0, 8, 1, 9, 19, 7, 76, 13, 53, 2]
[53, 2]
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: [2, 5, 9, 0, 8, 3] -> ? Answer:
[2, 5, 9, 0, 8, 3] -> [3, 5, 9, 0, 8, 2]
[2, 5, 9, 0, 8, 3]
[3, 5, 9, 0, 8, 2]
c029
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 two elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 5, 0, 4, 2, 6] -> [0, 4, 2, 6] [8, 3] -> [] [2, 8, 1] -> [1] [2, 1, 3, 8] -> [3, 8] [5, 2, 6, 3, 9, 0, 8, 1] -> [6, 3, 9, 0, 8, 1] [0, 9, 6, 5, 3, 8, 2, 1] -> [6, 5, 3, 8, 2, 1] [5, 4, 1, 6, 9, 8, 7] -> [1, 6, 9, 8, 7] [0, 4, 8, 2, 7, 5, 6] -> [8, 2, 7, 5, 6] Questions: [2, 6, 7, 9, 1, 3, 5, 4, 8] -> ? Answer:
[2, 6, 7, 9, 1, 3, 5, 4, 8] -> [7, 9, 1, 3, 5, 4, 8]
[2, 6, 7, 9, 1, 3, 5, 4, 8]
[7, 9, 1, 3, 5, 4, 8]
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: [7, 6, 3, 4, 0] -> ? Answer:
[7, 6, 3, 4, 0] -> [3, 4, 0]
[7, 6, 3, 4, 0]
[3, 4, 0]
c177
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 the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [13, 94] -> [13, 94, 94, 13] [77, 7, 11] -> [77, 11, 7, 7, 11, 77] [8, 0, 65, 60] -> [8, 60, 0, 65, 65, 0, 60, 8] [26, 1, 9, 12, 98] -> [26, 98, 1, 12, 9, 9, 12, 1, 98, 26] [49, 40, 73, 4, 0, 7] -> [49, 7, 40, 0, 73, 4, 4, 73, 0, 40, 7, 49] [46, 59, 1, 76, 17, 8] -> [46, 8, 59, 17, 1, 76, 76, 1, 17, 59, 8, 46] [94, 86, 36, 43, 8, 74] -> [94, 74, 86, 8, 36, 43, 43, 36, 8, 86, 74, 94] [13, 76, 25, 8] -> [13, 8, 76, 25, 25, 76, 8, 13] Questions: [54, 9, 53, 3, 52, 35] -> ? Answer:
[54, 9, 53, 3, 52, 35] -> [54, 35, 9, 52, 53, 3, 3, 53, 52, 9, 35, 54]
[54, 9, 53, 3, 52, 35]
[54, 35, 9, 52, 53, 3, 3, 53, 52, 9, 35, 54]
c121
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [99, 62, 65, 0, 95] -> [95] [6, 8, 39] -> [39] [38, 2] -> [2] [56, 65, 74] -> [74] [19, 32, 3, 78, 41, 51, 8, 80] -> [80] [3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27] [36, 22, 3, 55, 23] -> [23] [98, 65, 84] -> [84] Questions: [58, 19, 1, 55, 88, 3, 36, 26, 28] -> ? Answer:
[58, 19, 1, 55, 88, 3, 36, 26, 28] -> [28]
[58, 19, 1, 55, 88, 3, 36, 26, 28]
[28]
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: [6, 77, 72, 2, 7, 4, 35] -> ? Answer:
[6, 77, 72, 2, 7, 4, 35] -> [1, 0, 1, 0, 0, 0, 0]
[6, 77, 72, 2, 7, 4, 35]
[1, 0, 1, 0, 0, 0, 0]
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: [5, 8, 25, 77, 45, 9, 48, 96, 39, 80] -> ? Answer:
[5, 8, 25, 77, 45, 9, 48, 96, 39, 80] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[5, 8, 25, 77, 45, 9, 48, 96, 39, 80]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
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: [6, 8, 5, 7] -> ? Answer:
[6, 8, 5, 7] -> [9, 3, 4, 0, 6, 8, 5, 7, 7, 2, 9, 1]
[6, 8, 5, 7]
[9, 3, 4, 0, 6, 8, 5, 7, 7, 2, 9, 1]
c175
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements larger than any preceding element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83] [1, 9, 60, 0, 60, 38] -> [1, 9, 60] [6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67] [0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53] [9, 52, 4, 51, 96, 12] -> [9, 52, 96] [4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85] [7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97] [1, 1, 7, 5, 63, 42] -> [1, 7, 63] Questions: [2, 3, 35, 73, 11, 9, 36, 41] -> ? Answer:
[2, 3, 35, 73, 11, 9, 36, 41] -> [2, 3, 35, 73]
[2, 3, 35, 73, 11, 9, 36, 41]
[2, 3, 35, 73]
c027
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: [6, 7, 4, 2, 9, 0, 8] -> [6, 7, 2, 9, 0, 8] [3, 6, 0, 1, 5, 7, 4, 2] -> [3, 6, 1, 5, 7, 4, 2] [9, 9, 3, 9, 5, 5] -> [9, 3, 9, 5, 5] [9, 3, 0, 1, 2, 6, 8, 7] -> [9, 3, 1, 2, 6, 8, 7] [1, 9, 8, 4, 6, 2, 0, 3, 7, 5] -> [1, 9, 4, 6, 2, 0, 3, 7, 5] [9, 9, 6, 8, 2, 4, 1, 0] -> [9, 6, 8, 2, 4, 1, 0] [9, 0, 3, 8, 1, 4, 2] -> [9, 0, 8, 1, 4, 2] [3, 9, 8, 1, 2, 4, 6, 0, 7, 5] -> [3, 9, 1, 2, 4, 6, 0, 7, 5] Questions: [3, 3, 7, 9, 6] -> ? Answer:
[3, 3, 7, 9, 6] -> [3, 7, 9, 6]
[3, 3, 7, 9, 6]
[3, 7, 9, 6]
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: [84, 7, 20, 60, 62, 9, 45, 14, 2] -> ? Answer:
[84, 7, 20, 60, 62, 9, 45, 14, 2] -> [92, 14, 26, 65, 66, 12, 47, 15, 2]
[84, 7, 20, 60, 62, 9, 45, 14, 2]
[92, 14, 26, 65, 66, 12, 47, 15, 2]
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: [2, 55, 62] -> ? Answer:
[2, 55, 62] -> [62, 55, 2]
[2, 55, 62]
[62, 55, 2]
c105
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate all but the last element with all but the first element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [49, 11, 73, 7] -> [49, 11, 73, 11, 73, 7] [3, 81, 35, 26] -> [3, 81, 35, 81, 35, 26] [6, 8, 5] -> [6, 8, 8, 5] [47, 45, 73] -> [47, 45, 45, 73] [62, 4, 8, 75, 2, 19] -> [62, 4, 8, 75, 2, 4, 8, 75, 2, 19] [39, 61, 49, 63, 89] -> [39, 61, 49, 63, 61, 49, 63, 89] [59, 65, 90, 9] -> [59, 65, 90, 65, 90, 9] [2, 20, 8, 28, 17, 88] -> [2, 20, 8, 28, 17, 20, 8, 28, 17, 88] Questions: [76, 61, 21, 86, 8] -> ? Answer:
[76, 61, 21, 86, 8] -> [76, 61, 21, 86, 61, 21, 86, 8]
[76, 61, 21, 86, 8]
[76, 61, 21, 86, 61, 21, 86, 8]
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: [8] -> ? Answer:
[8] -> [9, 3, 4, 0, 8, 7, 2, 9, 1]
[8]
[9, 3, 4, 0, 8, 7, 2, 9, 1]
c099
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all elements whose value < 50".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 70, 6, 1, 72, 5, 86, 58, 61] -> [70, 72, 86, 58, 61] [9, 81, 8, 65, 28, 52, 54, 7] -> [81, 65, 52, 54] [32, 68, 33, 7, 21] -> [68] [6, 14, 3] -> [] [85, 76, 66, 73, 89, 74, 16, 64, 1, 9] -> [85, 76, 66, 73, 89, 74, 64] [63, 29, 50, 3, 4, 5] -> [63, 50] [23, 86, 11] -> [86] [8, 97, 89, 2, 95, 4, 68, 71, 61] -> [97, 89, 95, 68, 71, 61] Questions: [9, 44, 4, 71, 67, 27, 3, 7, 12, 96] -> ? Answer:
[9, 44, 4, 71, 67, 27, 3, 7, 12, 96] -> [71, 67, 96]
[9, 44, 4, 71, 67, 27, 3, 7, 12, 96]
[71, 67, 96]
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: [1, 71, 33, 5] -> ? Answer:
[1, 71, 33, 5] -> [1, 5, 33, 71]
[1, 71, 33, 5]
[1, 5, 33, 71]
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: [9, 5, 9, 0, 9, 5, 9, 5, 5, 5] -> ? Answer:
[9, 5, 9, 0, 9, 5, 9, 5, 5, 5] -> [8, 2, 7, 0, 3]
[9, 5, 9, 0, 9, 5, 9, 5, 5, 5]
[8, 2, 7, 0, 3]
c153
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 unique element followed by its number of occurrences, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 81, 81, 1, 1, 17, 81, 17] -> [1, 3, 81, 3, 17, 2] [71, 9, 9, 71, 71, 9, 42, 9, 42] -> [71, 3, 9, 4, 42, 2] [43, 43, 91, 91, 91] -> [43, 2, 91, 3] [6, 54, 6, 67, 67, 54, 83, 83, 6, 67] -> [6, 3, 54, 2, 67, 3, 83, 2] [26, 26, 26, 26, 26, 26] -> [26, 6] [83, 83, 9, 9, 9, 9] -> [83, 2, 9, 4] [17, 92, 69, 17, 92, 69, 92, 17, 69, 17] -> [17, 4, 92, 3, 69, 3] [6, 45, 6, 13, 18, 18, 45, 13, 18] -> [6, 2, 45, 2, 13, 2, 18, 3] Questions: [8, 40, 3, 40, 5, 40, 5, 5, 8, 3] -> ? Answer:
[8, 40, 3, 40, 5, 40, 5, 5, 8, 3] -> [8, 2, 40, 3, 3, 2, 5, 3]
[8, 40, 3, 40, 5, 40, 5, 5, 8, 3]
[8, 2, 40, 3, 3, 2, 5, 3]
c037
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 0, 2, 1, 3, 6, 8, 9, 7, 5] -> [4, 0, 2, 1, 3, 6, 8, 9, 7, 5, 3] [2, 8, 7, 5, 0, 4, 6, 1] -> [2, 8, 7, 5, 0, 4, 6, 1, 3] [5, 3, 4, 1, 9] -> [5, 3, 4, 1, 9, 3] [6, 5, 0] -> [6, 5, 0, 3] [7, 1] -> [7, 1, 3] [4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3] [0, 8] -> [0, 8, 3] [3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3] Questions: [5, 7, 4] -> ? Answer:
[5, 7, 4] -> [5, 7, 4, 3]
[5, 7, 4]
[5, 7, 4, 3]
c231
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 number of occurrences of each unique element in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 7, 7, 28, 28] -> [2, 3] [28, 28, 28] -> [3] [59, 59, 59, 59, 59, 59, 59] -> [7] [4, 71, 32, 71, 71, 71, 32, 4, 32] -> [2, 3, 4] [6, 6, 0, 18, 5, 12, 4, 6, 53, 65] -> [1, 1, 1, 1, 1, 1, 1, 3] [76, 9, 27, 9] -> [1, 1, 2] [69, 69, 50, 69, 69, 50] -> [2, 4] [4, 74, 4, 58, 74, 58, 58, 4, 74] -> [3, 3, 3] Questions: [91, 98, 0, 8, 50, 0, 7, 40, 54, 5] -> ? Answer:
[91, 98, 0, 8, 50, 0, 7, 40, 54, 5] -> [1, 1, 1, 1, 1, 1, 1, 1, 2]
[91, 98, 0, 8, 50, 0, 7, 40, 54, 5]
[1, 1, 1, 1, 1, 1, 1, 1, 2]
c128
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 after removing elements 1, 2, and 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [75, 9, 69, 22, 27, 5] -> [5, 22, 69] [9, 6, 24, 65, 25, 54, 21, 79, 18] -> [18, 21, 24, 54, 65, 79] [2, 54, 4, 58, 9, 6, 49, 36, 56] -> [4, 6, 36, 49, 56, 58] [85, 9, 3, 5, 50, 7, 1, 10, 4] -> [1, 3, 4, 5, 7, 10] [25, 9, 7, 1, 0, 33, 8] -> [1, 7, 8, 33] [41, 1, 2, 26, 5, 50, 33, 7, 96, 75] -> [2, 7, 26, 33, 50, 75, 96] [5, 64, 73, 2, 6, 3] -> [2, 3, 73] [0, 44, 34, 97, 4, 71, 20] -> [20, 34, 71, 97] Questions: [3, 76, 5, 53, 90, 4, 63, 46, 2] -> ? Answer:
[3, 76, 5, 53, 90, 4, 63, 46, 2] -> [2, 4, 5, 46, 53, 63]
[3, 76, 5, 53, 90, 4, 63, 46, 2]
[2, 4, 5, 46, 53, 63]
c020
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the first element with the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 7, 8, 9, 4, 0, 3, 2] -> [2, 1, 7, 8, 9, 4, 0, 3, 2] [0, 8, 5, 2, 7, 1, 4, 6, 9, 3] -> [3, 8, 5, 2, 7, 1, 4, 6, 9, 3] [7, 1, 0, 6, 3] -> [3, 1, 0, 6, 3] [5, 8, 6, 1, 0, 9, 7] -> [7, 8, 6, 1, 0, 9, 7] [3, 8, 6, 0] -> [0, 8, 6, 0] [8, 5, 7, 4, 2, 3, 6] -> [6, 5, 7, 4, 2, 3, 6] [0, 7, 1, 3, 4, 9, 6, 5] -> [5, 7, 1, 3, 4, 9, 6, 5] [1, 4, 9, 8, 2, 0, 5, 3, 6, 7] -> [7, 4, 9, 8, 2, 0, 5, 3, 6, 7] Questions: [4, 9, 3, 6, 2, 8, 7] -> ? Answer:
[4, 9, 3, 6, 2, 8, 7] -> [7, 9, 3, 6, 2, 8, 7]
[4, 9, 3, 6, 2, 8, 7]
[7, 9, 3, 6, 2, 8, 7]
c027
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: [6, 7, 4, 2, 9, 0, 8] -> [6, 7, 2, 9, 0, 8] [3, 6, 0, 1, 5, 7, 4, 2] -> [3, 6, 1, 5, 7, 4, 2] [9, 9, 3, 9, 5, 5] -> [9, 3, 9, 5, 5] [9, 3, 0, 1, 2, 6, 8, 7] -> [9, 3, 1, 2, 6, 8, 7] [1, 9, 8, 4, 6, 2, 0, 3, 7, 5] -> [1, 9, 4, 6, 2, 0, 3, 7, 5] [9, 9, 6, 8, 2, 4, 1, 0] -> [9, 6, 8, 2, 4, 1, 0] [9, 0, 3, 8, 1, 4, 2] -> [9, 0, 8, 1, 4, 2] [3, 9, 8, 1, 2, 4, 6, 0, 7, 5] -> [3, 9, 1, 2, 4, 6, 0, 7, 5] Questions: [6, 2, 5, 8, 3, 4, 9, 7] -> ? Answer:
[6, 2, 5, 8, 3, 4, 9, 7] -> [6, 2, 8, 3, 4, 9, 7]
[6, 2, 5, 8, 3, 4, 9, 7]
[6, 2, 8, 3, 4, 9, 7]
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: [8, 32, 77, 0, 53, 26, 9, 35, 71, 6] -> ? Answer:
[8, 32, 77, 0, 53, 26, 9, 35, 71, 6] -> [77, 0, 53, 26, 9, 35]
[8, 32, 77, 0, 53, 26, 9, 35, 71, 6]
[77, 0, 53, 26, 9, 35]
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: [9, 5, 7] -> ? Answer:
[9, 5, 7] -> [9, 7, 5]
[9, 5, 7]
[9, 7, 5]
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: [2, 7, 3, 5, 1, 8] -> ? Answer:
[2, 7, 3, 5, 1, 8] -> [3, 5, 1, 8]
[2, 7, 3, 5, 1, 8]
[3, 5, 1, 8]
c108
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 83] -> [86] [10, 0, 59, 5, 1, 9, 4] -> [88] [14, 4, 12] -> [30] [6, 0, 3, 82] -> [91] [5, 7, 4, 2] -> [18] [] -> [0] [62] -> [62] [22, 6, 1] -> [29] Questions: [7, 5, 14] -> ? Answer:
[7, 5, 14] -> [26]
[7, 5, 14]
[26]
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: [75, 97, 96, 7, 56] -> ? Answer:
[75, 97, 96, 7, 56] -> [75]
[75, 97, 96, 7, 56]
[75]
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: [9, 6, 3, 5] -> ? Answer:
[9, 6, 3, 5] -> [3, 5, 7, 9]
[9, 6, 3, 5]
[3, 5, 7, 9]
c152
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 product of its digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [81, 3] -> [8, 0] [54, 72, 98, 65, 61, 7] -> [20, 14, 72, 30, 6, 0] [48] -> [32] [29, 3, 45] -> [18, 0, 20] [90, 5, 68, 2] -> [0, 0, 48, 0] [28, 25, 5, 6, 73, 0, 13, 33, 7, 4] -> [16, 10, 0, 0, 21, 0, 3, 9, 0, 0] [0, 4, 87, 34, 7, 55, 2, 38, 85] -> [0, 0, 56, 12, 0, 25, 0, 24, 40] [33, 38, 35, 41] -> [9, 24, 15, 4] Questions: [29] -> ? Answer:
[29] -> [18]
[29]
[18]
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: [59, 59, 11, 11, 63, 4, 56, 63, 63] -> ? Answer:
[59, 59, 11, 11, 63, 4, 56, 63, 63] -> [2, 2, 3, 1, 1]
[59, 59, 11, 11, 63, 4, 56, 63, 63]
[2, 2, 3, 1, 1]
c142
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "every digit in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [36] -> [3, 6] [44, 94] -> [4, 4, 9, 4] [8, 79, 9, 85] -> [0, 8, 7, 9, 0, 9, 8, 5] [6, 37, 2, 25] -> [0, 6, 3, 7, 0, 2, 2, 5] [98, 7, 22, 58, 73, 43, 78] -> [9, 8, 0, 7, 2, 2, 5, 8, 7, 3, 4, 3, 7, 8] [1, 37, 98, 69, 12, 70] -> [0, 1, 3, 7, 9, 8, 6, 9, 1, 2, 7, 0] [11, 4, 17] -> [1, 1, 0, 4, 1, 7] [2, 7, 73, 14, 3, 40] -> [0, 2, 0, 7, 7, 3, 1, 4, 0, 3, 4, 0] Questions: [63, 86, 57, 42, 5] -> ? Answer:
[63, 86, 57, 42, 5] -> [6, 3, 8, 6, 5, 7, 4, 2, 0, 5]
[63, 86, 57, 42, 5]
[6, 3, 8, 6, 5, 7, 4, 2, 0, 5]
c121
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [99, 62, 65, 0, 95] -> [95] [6, 8, 39] -> [39] [38, 2] -> [2] [56, 65, 74] -> [74] [19, 32, 3, 78, 41, 51, 8, 80] -> [80] [3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27] [36, 22, 3, 55, 23] -> [23] [98, 65, 84] -> [84] Questions: [67, 9, 4, 6, 0, 96, 33, 1, 2, 85] -> ? Answer:
[67, 9, 4, 6, 0, 96, 33, 1, 2, 85] -> [85]
[67, 9, 4, 6, 0, 96, 33, 1, 2, 85]
[85]
c214
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29] [5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1] [4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1] [8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92] [2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79] [3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1] [6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8] [4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56] Questions: [2, 9, 2, 33, 8, 4, 8, 80] -> ? Answer:
[2, 9, 2, 33, 8, 4, 8, 80] -> [9, 33, 8, 4, 8, 80]
[2, 9, 2, 33, 8, 4, 8, 80]
[9, 33, 8, 4, 8, 80]
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: [0, 72, 16, 27, 59, 2, 5, 37] -> ? Answer:
[0, 72, 16, 27, 59, 2, 5, 37] -> [1, 1, 0, 1, 0, 0, 0, 0]
[0, 72, 16, 27, 59, 2, 5, 37]
[1, 1, 0, 1, 0, 0, 0, 0]
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: [89, 0, 70, 86, 87, 9] -> ? Answer:
[89, 0, 70, 86, 87, 9] -> [70]
[89, 0, 70, 86, 87, 9]
[70]
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: [49, 74, 80, 11] -> ? Answer:
[49, 74, 80, 11] -> [80, 11, 4, 49, 11]
[49, 74, 80, 11]
[80, 11, 4, 49, 11]
c129
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 M + 2 through N + 2, 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: [1, 7, 73, 93, 49, 3, 2, 93, 5, 0] -> [73, 93, 49, 3, 2, 93, 5] [3, 5, 8, 79, 28, 4, 57, 89] -> [28, 4, 57] [81, 99, 88] -> [] [4, 6, 5, 23, 8, 34, 0] -> [34, 0] [4, 4, 4, 4, 4, 4, 4, 4] -> [4] [2, 3, 2, 65, 65, 8, 8] -> [65, 65] [5, 33, 12, 67, 7, 4] -> [] [6, 6, 7, 7, 6, 4, 4, 4, 6] -> [4] Questions: [2, 3, 3, 3, 8, 1, 91, 77, 3] -> ? Answer:
[2, 3, 3, 3, 8, 1, 91, 77, 3] -> [3, 8]
[2, 3, 3, 3, 8, 1, 91, 77, 3]
[3, 8]
c198
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in descending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [] -> [] [94, 64, 8, 3, 1, 20, 38, 54, 0, 41] -> [94, 64, 54, 41, 38, 20, 8, 3, 1, 0] [98, 9, 6, 68, 5, 3, 4, 7] -> [98, 68, 9, 7, 6, 5, 4, 3] [5, 78, 58, 5, 30, 32, 7, 72, 0, 2] -> [78, 72, 58, 32, 30, 7, 5, 2, 0] [4, 64, 39, 25, 83, 52, 5, 0, 88, 49] -> [88, 83, 64, 52, 49, 39, 25, 5, 4, 0] [35, 80, 9, 22, 4, 57] -> [80, 57, 35, 22, 9, 4] [4, 14, 1, 3, 75, 6] -> [75, 14, 6, 4, 3, 1] [93, 93, 93, 93, 93, 93, 93, 93, 93] -> [93] Questions: [1, 27, 27, 7, 61, 61, 27, 7] -> ? Answer:
[1, 27, 27, 7, 61, 61, 27, 7] -> [61, 27, 7, 1]
[1, 27, 27, 7, 61, 61, 27, 7]
[61, 27, 7, 1]
c249
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; give element 1 of each sublist".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [66, 0, 66, 0, 66, 1, 1, 78, 67, 8] -> [66, 66, 66] [75, 10, 0, 52, 0, 75] -> [75, 52, 75] [96, 6, 2, 96, 0, 14, 0, 2] -> [96, 14, 2] [1, 2, 1, 13, 0, 13, 2, 0, 13] -> [1, 13, 13] [76, 80, 39, 0, 26, 26, 26, 8, 64, 13] -> [76, 26] [8, 7, 0, 16, 16, 2, 0, 43, 43, 54] -> [8, 16, 43] [4, 3, 2, 0, 8, 28, 28, 47, 3, 49] -> [4, 8] [74, 74, 74, 68, 68, 68, 68, 74, 68] -> [74] Questions: [6, 0, 37, 37, 87, 0, 20, 32, 6, 2] -> ? Answer:
[6, 0, 37, 37, 87, 0, 20, 32, 6, 2] -> [6, 37, 20]
[6, 0, 37, 37, 87, 0, 20, 32, 6, 2]
[6, 37, 20]
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: [1, 3, 6, 0, 4, 8, 9] -> ? Answer:
[1, 3, 6, 0, 4, 8, 9] -> [1, 3, 6, 0, 4, 8]
[1, 3, 6, 0, 4, 8, 9]
[1, 3, 6, 0, 4, 8]
c175
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements larger than any preceding element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83] [1, 9, 60, 0, 60, 38] -> [1, 9, 60] [6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67] [0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53] [9, 52, 4, 51, 96, 12] -> [9, 52, 96] [4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85] [7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97] [1, 1, 7, 5, 63, 42] -> [1, 7, 63] Questions: [29, 92, 98, 9, 55, 42, 3, 22, 4, 27] -> ? Answer:
[29, 92, 98, 9, 55, 42, 3, 22, 4, 27] -> [29, 92, 98]
[29, 92, 98, 9, 55, 42, 3, 22, 4, 27]
[29, 92, 98]
c014
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but elements 3 through 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 6, 1, 9] -> [1, 9] [3, 0] -> [] [8, 1, 6, 9, 7, 2, 3] -> [6, 9, 7, 2, 3] [1, 9, 7, 3, 0, 5, 8, 6] -> [7, 3, 0, 5, 8] [3, 0, 9, 2] -> [9, 2] [3, 9, 7, 4, 6] -> [7, 4, 6] [2, 5, 1, 8] -> [1, 8] [8, 1, 5, 2] -> [5, 2] Questions: [8, 3, 5, 6, 7, 0] -> ? Answer:
[8, 3, 5, 6, 7, 0] -> [5, 6, 7, 0]
[8, 3, 5, 6, 7, 0]
[5, 6, 7, 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: [3, 1, 4, 0, 2, 7, 6, 9, 8] -> ? Answer:
[3, 1, 4, 0, 2, 7, 6, 9, 8] -> [3, 1, 4, 0, 2, 7, 6]
[3, 1, 4, 0, 2, 7, 6, 9, 8]
[3, 1, 4, 0, 2, 7, 6]
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: [93, 87, 13, 10, 12] -> ? Answer:
[93, 87, 13, 10, 12] -> [1, 1, 0, 0, 1]
[93, 87, 13, 10, 12]
[1, 1, 0, 0, 1]
c238
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 that appear exactly once".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 7, 7, 7, 7, 8, 7, 8, 8] -> [] [5, 8, 8, 6, 8, 8] -> [5, 6] [8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3] [7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22] [4, 7, 10, 4, 7, 7, 1] -> [10, 1] [9, 47, 7, 5, 47, 25, 5, 45, 25] -> [9, 7, 45] [1, 1, 1, 1, 1, 1, 1] -> [] [0, 6, 0, 15, 1] -> [6, 15, 1] Questions: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -> ? Answer:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -> []
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[]
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: [1, 5, 0, 2] -> ? Answer:
[1, 5, 0, 2] -> [2, 5, 0, 1]
[1, 5, 0, 2]
[2, 5, 0, 1]
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, 9, 9, 6, 9, 9, 9] -> ? Answer:
[4, 9, 9, 6, 9, 9, 9] -> [8, 2, 7, 0, 3]
[4, 9, 9, 6, 9, 9, 9]
[8, 2, 7, 0, 3]
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: [51, 56, 88, 98, 94, 64] -> ? Answer:
[51, 56, 88, 98, 94, 64] -> [98, 64, 6, 51, 51]
[51, 56, 88, 98, 94, 64]
[98, 64, 6, 51, 51]
c001
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: [6, 4, 5, 1, 2] -> [5] [6, 4, 9, 0, 5, 7, 3, 2, 8, 1] -> [9] [4, 1, 8, 2, 0, 6, 7] -> [8] [1, 5, 3, 8, 2, 0, 4, 7] -> [3] [1, 6, 4] -> [4] [8, 3, 6, 2, 4, 5, 1, 9] -> [6] [4, 0, 7] -> [7] [8, 0, 6, 4, 7, 5, 3, 9, 2] -> [6] Questions: [2, 1, 5, 3, 6, 0, 8, 4] -> ? Answer:
[2, 1, 5, 3, 6, 0, 8, 4] -> [5]
[2, 1, 5, 3, 6, 0, 8, 4]
[5]
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: [6, 5, 2] -> ? Answer:
[6, 5, 2] -> [6, 6, 5, 2]
[6, 5, 2]
[6, 6, 5, 2]
c126
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 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [65, 33, 55, 54, 8, 50, 4, 90] -> [33, 55, 54, 8, 50, 4, 90] [57, 10, 6, 1, 31, 72, 0, 18, 7, 81] -> [10, 6, 1, 31, 72, 0, 18, 7, 81] [3, 33, 7, 19, 66, 82] -> [33, 7, 19, 66, 82] [3, 33, 87, 26] -> [33, 87, 26] [3, 7, 9, 20, 67, 1, 19, 6, 18] -> [7, 9, 20, 67, 1, 19, 6, 18] [67, 9, 5, 6, 58] -> [9, 5, 6, 58] [35, 15, 63, 99, 67, 83, 98, 95] -> [15, 63, 99, 67, 83, 98, 95] [77, 28] -> [28] Questions: [0, 74, 8, 93, 4, 80, 6, 47, 52, 25] -> ? Answer:
[0, 74, 8, 93, 4, 80, 6, 47, 52, 25] -> [74, 8, 93, 4, 80, 6, 47, 52, 25]
[0, 74, 8, 93, 4, 80, 6, 47, 52, 25]
[74, 8, 93, 4, 80, 6, 47, 52, 25]
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: [0, 6, 7, 7, 7, 4, 6, 7] -> ? Answer:
[0, 6, 7, 7, 7, 4, 6, 7] -> [0, 6, 7, 7, 4, 6, 7]
[0, 6, 7, 7, 7, 4, 6, 7]
[0, 6, 7, 7, 4, 6, 7]
c201
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 > element 1, followed by elements < element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 27, 6, 4, 59, 1, 67, 9, 0] -> [27, 59, 67, 9, 6, 4, 1, 0] [93, 72] -> [72] [22, 94, 78, 8, 9, 2, 89, 5, 7, 97] -> [94, 78, 89, 97, 8, 9, 2, 5, 7] [47, 42] -> [42] [9, 90, 81, 5, 1, 2, 0, 29] -> [90, 81, 29, 5, 1, 2, 0] [58, 9, 2, 93, 81, 99, 97, 8, 4, 82] -> [93, 81, 99, 97, 82, 9, 2, 8, 4] [46, 97, 5, 52] -> [97, 52, 5] [82, 62, 12, 19, 91, 8, 99, 90] -> [91, 99, 90, 62, 12, 19, 8] Questions: [26, 3, 64, 20] -> ? Answer:
[26, 3, 64, 20] -> [64, 3, 20]
[26, 3, 64, 20]
[64, 3, 20]
c238
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 that appear exactly once".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 7, 7, 7, 7, 8, 7, 8, 8] -> [] [5, 8, 8, 6, 8, 8] -> [5, 6] [8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3] [7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22] [4, 7, 10, 4, 7, 7, 1] -> [10, 1] [9, 47, 7, 5, 47, 25, 5, 45, 25] -> [9, 7, 45] [1, 1, 1, 1, 1, 1, 1] -> [] [0, 6, 0, 15, 1] -> [6, 15, 1] Questions: [2, 2, 12, 3, 0, 5, 1, 4, 7] -> ? Answer:
[2, 2, 12, 3, 0, 5, 1, 4, 7] -> [12, 3, 0, 5, 1, 4, 7]
[2, 2, 12, 3, 0, 5, 1, 4, 7]
[12, 3, 0, 5, 1, 4, 7]
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, 9, 5, 7, 6] -> ? Answer:
[3, 9, 5, 7, 6] -> [7]
[3, 9, 5, 7, 6]
[7]
c101
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 [11,19, 24, 33, 42, 5, 82, 0, 64, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [47, 59, 59, 23, 4, 78, 23] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [43, 7, 78, 7, 43, 4, 4] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [83] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [58, 58, 58] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [84, 84, 84] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [14] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [52, 57, 55, 51] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [62, 20, 8, 62, 56, 8, 3, 98, 66] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] Questions: [95, 73, 50] -> ? Answer:
[95, 73, 50] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[95, 73, 50]
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
c126
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 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [65, 33, 55, 54, 8, 50, 4, 90] -> [33, 55, 54, 8, 50, 4, 90] [57, 10, 6, 1, 31, 72, 0, 18, 7, 81] -> [10, 6, 1, 31, 72, 0, 18, 7, 81] [3, 33, 7, 19, 66, 82] -> [33, 7, 19, 66, 82] [3, 33, 87, 26] -> [33, 87, 26] [3, 7, 9, 20, 67, 1, 19, 6, 18] -> [7, 9, 20, 67, 1, 19, 6, 18] [67, 9, 5, 6, 58] -> [9, 5, 6, 58] [35, 15, 63, 99, 67, 83, 98, 95] -> [15, 63, 99, 67, 83, 98, 95] [77, 28] -> [28] Questions: [9, 86, 0, 3, 43, 6, 2, 5, 59, 34] -> ? Answer:
[9, 86, 0, 3, 43, 6, 2, 5, 59, 34] -> [86, 0, 3, 43, 6, 2, 5, 59, 34]
[9, 86, 0, 3, 43, 6, 2, 5, 59, 34]
[86, 0, 3, 43, 6, 2, 5, 59, 34]
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: [3, 4, 2, 73, 5, 70, 74] -> ? Answer:
[3, 4, 2, 73, 5, 70, 74] -> [3, 4, 5, 70, 74]
[3, 4, 2, 73, 5, 70, 74]
[3, 4, 5, 70, 74]
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: [4] -> ? Answer:
[4] -> []
[4]
[]
c127
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [47] -> [] [51, 40, 36, 45, 20, 7, 6] -> [51, 40, 36, 45, 20, 7] [7, 0, 38, 5, 23, 3, 1, 14, 84, 92] -> [7, 0, 38, 5, 23, 3, 1, 14, 84] [9, 43, 60, 83, 5, 18] -> [9, 43, 60, 83, 5] [8, 25, 0, 4, 77, 6, 83, 78, 35] -> [8, 25, 0, 4, 77, 6, 83, 78] [71, 7, 31, 40, 9, 16, 86, 6] -> [71, 7, 31, 40, 9, 16, 86] [53, 34, 39, 85, 8, 87, 2, 99, 62] -> [53, 34, 39, 85, 8, 87, 2, 99] [8, 0, 59, 43, 5, 11, 6, 2, 1] -> [8, 0, 59, 43, 5, 11, 6, 2] Questions: [65, 45] -> ? Answer:
[65, 45] -> [65]
[65, 45]
[65]
c104
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 19] -> [19] [2, 40, 85, 46, 9] -> [85] [1, 22, 88, 12, 8, 81, 9, 16, 48, 18] -> [88] [24, 60, 4] -> [60] [80, 1, 50, 49, 5, 48, 63] -> [80] [22, 29, 65, 20, 6] -> [65] [0, 8, 3, 55, 1, 86, 7, 56] -> [86] [3, 43, 39] -> [43] Questions: [77, 1, 43, 78, 38, 82] -> ? Answer:
[77, 1, 43, 78, 38, 82] -> [82]
[77, 1, 43, 78, 38, 82]
[82]
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: [48, 48] -> ? Answer:
[48, 48] -> [48]
[48, 48]
[48]
c206
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose value is between the first two elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [43, 2, 9, 4, 3] -> [9, 4, 3] [85, 4, 89, 58, 54, 2, 6, 2, 85] -> [58, 54, 6] [98, 0, 5, 7, 12] -> [5, 7, 12] [80, 91, 81, 4, 88, 9, 53, 84] -> [81, 88, 84] [90, 3, 86, 85, 56, 18] -> [86, 85, 56, 18] [86, 1, 73, 8, 85, 9, 0, 42] -> [73, 8, 85, 9, 42] [75, 7, 9, 5, 48, 2, 8, 21] -> [9, 48, 8, 21] [29, 76, 62, 14, 4, 67, 89, 1, 88, 50] -> [62, 67, 50] Questions: [1, 9, 10, 6, 15, 4, 5, 56, 4, 0] -> ? Answer:
[1, 9, 10, 6, 15, 4, 5, 56, 4, 0] -> [6, 4, 5, 4]
[1, 9, 10, 6, 15, 4, 5, 56, 4, 0]
[6, 4, 5, 4]
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: [8, 1, 6, 4, 5, 2, 9, 3] -> ? Answer:
[8, 1, 6, 4, 5, 2, 9, 3] -> [4, 1, 6, 8, 5, 2, 9, 3]
[8, 1, 6, 4, 5, 2, 9, 3]
[4, 1, 6, 8, 5, 2, 9, 3]
c032
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 two elements: the first two if element 1 > last element, else the last two".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0] [8, 6, 7] -> [7] [3, 8, 6, 0] -> [6, 0] [0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7] [0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, 2, 6, 5, 9] [3, 4, 9] -> [3] [6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2] [5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8] Questions: [6, 8, 2, 5, 9, 7] -> ? Answer:
[6, 8, 2, 5, 9, 7] -> [6, 8, 2, 5]
[6, 8, 2, 5, 9, 7]
[6, 8, 2, 5]
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: [4, 4, 4, 4, 4, 4, 4, 4, 4] -> ? Answer:
[4, 4, 4, 4, 4, 4, 4, 4, 4] -> [4, 4, 4, 4, 4, 4, 4]
[4, 4, 4, 4, 4, 4, 4, 4, 4]
[4, 4, 4, 4, 4, 4, 4]
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: [21, 82, 82, 82, 21, 82] -> ? Answer:
[21, 82, 82, 82, 21, 82] -> [1, 1, 2, 3, 2, 4]
[21, 82, 82, 82, 21, 82]
[1, 1, 2, 3, 2, 4]
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: [3, 6, 8, 1, 9] -> ? Answer:
[3, 6, 8, 1, 9] -> [1, 6, 8, 3, 9]
[3, 6, 8, 1, 9]
[1, 6, 8, 3, 9]
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: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] -> ? Answer:
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
c133
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 2 through 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 95, 72, 3, 1, 42, 4] -> [28, 42, 4] [8, 38, 4, 57, 88, 20, 36, 68] -> [8, 20, 36, 68] [89, 6, 16, 88, 4, 47] -> [89, 47] [9, 94, 8, 44, 24, 7, 87, 0, 89] -> [9, 7, 87, 0, 89] [65, 0, 82, 93, 42, 38, 7, 5] -> [65, 38, 7, 5] [59, 8, 86, 6, 96, 16, 4] -> [59, 16, 4] [96, 2, 44, 1, 35, 4] -> [96, 4] [87, 83, 3, 0, 19, 14, 9, 99, 61, 5] -> [87, 14, 9, 99, 61, 5] Questions: [3, 6, 4, 80, 2, 79] -> ? Answer:
[3, 6, 4, 80, 2, 79] -> [3, 79]
[3, 6, 4, 80, 2, 79]
[3, 79]
c056
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 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 5, 4, 8, 9] -> [6, 5, 4, 8] [4, 2, 9, 1, 0, 7, 6, 3] -> [4, 2, 9, 1, 7, 6, 3] [1, 0, 4, 3, 8, 5] -> [1, 0, 4, 3, 5] [5, 7, 1, 8, 3, 6, 4] -> [5, 7, 1, 8, 6, 4] [0, 9, 7, 5] -> [0, 9, 7, 5] [7] -> [7] [0, 1, 7, 9, 3, 8, 4, 6, 2] -> [0, 1, 7, 9, 8, 4, 6, 2] [8, 7, 3, 6, 0, 4, 5, 2, 9] -> [8, 7, 3, 6, 4, 5, 2, 9] Questions: [5, 1] -> ? Answer:
[5, 1] -> [5, 1]
[5, 1]
[5, 1]
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: [8, 37, 85, 7, 55, 2, 3, 34, 14] -> ? Answer:
[8, 37, 85, 7, 55, 2, 3, 34, 14] -> [8, 10, 12, 14]
[8, 37, 85, 7, 55, 2, 3, 34, 14]
[8, 10, 12, 14]
c183
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of elements 2 and following equal to element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9] [2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8] [2, 2, 2, 2, 2] -> [1, 2, 3, 4] [3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4] [5, 5, 2, 5, 2, 6, 2, 5, 5] -> [1, 3, 7, 8] [10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5] [85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4] [2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5] Questions: [9, 9, 9] -> ? Answer:
[9, 9, 9] -> [1, 2]
[9, 9, 9]
[1, 2]
c075
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 with an even index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 4, 0] -> [9, 0] [2, 4, 6, 3, 0, 8, 7] -> [2, 6, 0, 7] [2, 4, 8, 0] -> [2, 8] [3, 6, 5, 9, 0, 7, 2, 4, 8] -> [3, 5, 0, 2, 8] [9, 0, 6, 4, 1, 5, 7, 2, 3, 8] -> [9, 6, 1, 7, 3] [3, 0, 5, 1, 9, 8, 6, 2] -> [3, 5, 9, 6] [3, 2, 7, 5, 8, 1, 9] -> [3, 7, 8, 9] [1, 7, 8, 6, 3, 9, 2, 4, 5] -> [1, 8, 3, 2, 5] Questions: [6, 7, 0, 5, 4] -> ? Answer:
[6, 7, 0, 5, 4] -> [6, 0, 4]
[6, 7, 0, 5, 4]
[6, 0, 4]
c025
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6, 5, 3, 1, 8, 4, 9, 7] -> [0, 5, 3, 1, 8, 4, 9, 7] [1, 6, 5, 0, 8, 9, 7, 2, 4, 3] -> [1, 5, 0, 8, 9, 7, 2, 4, 3] [3, 4, 6, 2] -> [3, 6, 2] [4, 9, 3, 2] -> [4, 3, 2] [1, 2] -> [1] [5, 2, 7, 3, 6] -> [5, 7, 3, 6] [0, 6] -> [0] [1, 9, 6, 8, 0, 5] -> [1, 6, 8, 0, 5] Questions: [6, 8, 4, 9, 2, 1] -> ? Answer:
[6, 8, 4, 9, 2, 1] -> [6, 4, 9, 2, 1]
[6, 8, 4, 9, 2, 1]
[6, 4, 9, 2, 1]
c066
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 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 2, 7, 3, 6, 5, 1, 9] -> [2, 7, 3, 6, 5, 1, 9, 8] [5, 3] -> [3, 5] [4, 1, 9, 0] -> [1, 9, 0, 4] [2, 8, 6, 9, 1] -> [8, 6, 9, 1, 2] [7] -> [7] [6, 3, 4] -> [3, 4, 6] [1, 2, 6, 3, 5, 8, 0, 7, 4] -> [2, 6, 3, 5, 8, 0, 7, 4, 1] [8, 4, 5, 0] -> [4, 5, 0, 8] Questions: [2, 8] -> ? Answer:
[2, 8] -> [8, 2]
[2, 8]
[8, 2]
c027
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: [6, 7, 4, 2, 9, 0, 8] -> [6, 7, 2, 9, 0, 8] [3, 6, 0, 1, 5, 7, 4, 2] -> [3, 6, 1, 5, 7, 4, 2] [9, 9, 3, 9, 5, 5] -> [9, 3, 9, 5, 5] [9, 3, 0, 1, 2, 6, 8, 7] -> [9, 3, 1, 2, 6, 8, 7] [1, 9, 8, 4, 6, 2, 0, 3, 7, 5] -> [1, 9, 4, 6, 2, 0, 3, 7, 5] [9, 9, 6, 8, 2, 4, 1, 0] -> [9, 6, 8, 2, 4, 1, 0] [9, 0, 3, 8, 1, 4, 2] -> [9, 0, 8, 1, 4, 2] [3, 9, 8, 1, 2, 4, 6, 0, 7, 5] -> [3, 9, 1, 2, 4, 6, 0, 7, 5] Questions: [0, 0, 3, 5, 1] -> ? Answer:
[0, 0, 3, 5, 1] -> [0, 3, 5, 1]
[0, 0, 3, 5, 1]
[0, 3, 5, 1]
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: [3, 87, 11, 91, 1, 43, 9] -> ? Answer:
[3, 87, 11, 91, 1, 43, 9] -> [11, 91, 1]
[3, 87, 11, 91, 1, 43, 9]
[11, 91, 1]
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: [96] -> ? Answer:
[96] -> [96, 96, 96, 96, 96, 96, 96, 96, 96, 96]
[96]
[96, 96, 96, 96, 96, 96, 96, 96, 96, 96]
c019
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 6 with a 3 if there is an element 6".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 4, 5, 6, 2, 0, 7, 8] -> [9, 4, 5, 6, 2, 3, 7, 8] [4] -> [4] [1, 6, 5, 4, 9, 8, 0, 3] -> [1, 6, 5, 4, 9, 3, 0, 3] [0, 9, 1, 7, 3, 5] -> [0, 9, 1, 7, 3, 3] [5, 7, 8, 2, 1, 4, 6] -> [5, 7, 8, 2, 1, 3, 6] [7] -> [7] [9, 2, 6, 0, 1, 4, 7] -> [9, 2, 6, 0, 1, 3, 7] [8, 2, 0, 9] -> [8, 2, 0, 9] Questions: [7, 8, 6] -> ? Answer:
[7, 8, 6] -> [7, 8, 6]
[7, 8, 6]
[7, 8, 6]