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
c012
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but elements 2 through 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0] -> [] [5, 0, 7] -> [0, 7] [8, 2] -> [2] [6] -> [] [7, 2] -> [2] [] -> [] [2, 3, 4, 9, 5, 6, 1, 8, 0] -> [3, 4, 9] [3, 4, 5, 1] -> [4, 5, 1] Questions: [7, 9, 3, 8, 4] -> ? Answer:
[7, 9, 3, 8, 4] -> [9, 3, 8]
[7, 9, 3, 8, 4]
[9, 3, 8]
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: [9, 8, 3, 6, 2] -> ? Answer:
[9, 8, 3, 6, 2] -> [9, 8, 3, 6]
[9, 8, 3, 6, 2]
[9, 8, 3, 6]
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: [3, 0, 1, 5, 76, 46, 0] -> ? Answer:
[3, 0, 1, 5, 76, 46, 0] -> [0, 46, 76, 5, 5, 76, 1, 0, 3]
[3, 0, 1, 5, 76, 46, 0]
[0, 46, 76, 5, 5, 76, 1, 0, 3]
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: [28, 1, 15] -> ? Answer:
[28, 1, 15] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
[28, 1, 15]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
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: [4, 8, 3, 1, 2, 0, 7, 5, 6] -> ? Answer:
[4, 8, 3, 1, 2, 0, 7, 5, 6] -> [4, 8, 3, 1, 2, 0]
[4, 8, 3, 1, 2, 0, 7, 5, 6]
[4, 8, 3, 1, 2, 0]
c077
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 4, 8, 5, 7] -> [5] [9, 4, 5, 2, 0, 1, 8, 6, 3] -> [9] [6, 4, 3] -> [3] [6, 2, 1, 4, 3, 0, 5, 7] -> [8] [1, 6, 4, 8, 7, 0, 5] -> [7] [9, 8, 0, 7] -> [4] [8, 4, 5, 3, 7, 2, 9, 0, 6] -> [9] [0] -> [1] Questions: [2, 6] -> ? Answer:
[2, 6] -> [2]
[2, 6]
[2]
c173
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 N with the largest element in elements 1 through N".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 1, 2, 5, 8, 94] -> [6, 6, 6, 6, 8, 94] [8, 9, 4, 0, 38, 5, 27, 92] -> [8, 9, 9, 9, 38, 38, 38, 92] [53, 58, 77, 96, 8, 52, 31, 93] -> [53, 58, 77, 96, 96, 96, 96, 96] [23, 74, 3, 98, 0, 50] -> [23, 74, 74, 98, 98, 98] [3, 7, 45, 58, 22, 7] -> [3, 7, 45, 58, 58, 58] [0, 6, 38, 72, 99, 7, 1, 28, 4] -> [0, 6, 38, 72, 99, 99, 99, 99, 99] [1, 50, 81, 27, 67, 9, 72, 3] -> [1, 50, 81, 81, 81, 81, 81, 81] [4, 65, 41, 59, 2, 9] -> [4, 65, 65, 65, 65, 65] Questions: [6, 1, 8, 26, 46, 0, 20, 2, 6] -> ? Answer:
[6, 1, 8, 26, 46, 0, 20, 2, 6] -> [6, 6, 8, 26, 46, 46, 46, 46, 46]
[6, 1, 8, 26, 46, 0, 20, 2, 6]
[6, 6, 8, 26, 46, 46, 46, 46, 46]
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: [34, 34, 86, 34] -> ? Answer:
[34, 34, 86, 34] -> [3, 1]
[34, 34, 86, 34]
[3, 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: [5, 1, 4, 9, 3, 8, 7, 2] -> ? Answer:
[5, 1, 4, 9, 3, 8, 7, 2] -> [4]
[5, 1, 4, 9, 3, 8, 7, 2]
[4]
c006
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 2 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 3, 1, 2, 9, 5, 4, 7, 0, 6] -> [8, 3] [6, 9, 8, 0, 3] -> [6, 9] [3, 2, 8, 5, 4, 6, 7, 0, 1] -> [3, 2] [6, 3, 7, 8, 4, 9, 2, 1, 5] -> [6, 3] [9, 1, 7, 5] -> [9, 1] [6, 0, 3] -> [6, 0] [7, 3, 8, 2, 4] -> [7, 3] [2, 4, 3, 7, 1] -> [2, 4] Questions: [2, 1, 3] -> ? Answer:
[2, 1, 3] -> [2, 1]
[2, 1, 3]
[2, 1]
c219
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 every other element, starting from the end of the list".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33] [5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26] [5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58] [48, 6, 25, 14, 3, 55, 47, 38, 1] -> [48, 25, 3, 47, 1] [8, 3, 67, 89, 18, 73, 7, 6] -> [3, 89, 73, 6] [91, 51, 6, 5, 0, 1, 8, 61, 4, 95] -> [51, 5, 1, 61, 95] [85, 58, 98, 9, 41, 61, 7, 6, 67] -> [85, 98, 41, 7, 67] [32, 67, 9, 48, 3, 6, 7, 0, 8] -> [32, 9, 3, 7, 8] Questions: [60, 1, 10, 5, 9, 4, 93, 0, 28] -> ? Answer:
[60, 1, 10, 5, 9, 4, 93, 0, 28] -> [60, 10, 9, 93, 28]
[60, 1, 10, 5, 9, 4, 93, 0, 28]
[60, 10, 9, 93, 28]
c235
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count up and down between elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 5] -> [5, 4, 3, 2, 1, 2, 3, 4, 5] [0, 1] -> [0, 1] [51, 51, 51, 47] -> [51, 50, 49, 48, 47] [63, 67, 63] -> [63, 64, 65, 66, 67, 66, 65, 64, 63] [3, 1, 0, 1] -> [3, 2, 1, 0, 1] [6, 9, 8, 1] -> [6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1] [5, 4, 5] -> [5, 4, 5] [3, 4, 8, 9] -> [3, 4, 5, 6, 7, 8, 9] Questions: [57, 48, 48] -> ? Answer:
[57, 48, 48] -> [57, 56, 55, 54, 53, 52, 51, 50, 49, 48]
[57, 48, 48]
[57, 56, 55, 54, 53, 52, 51, 50, 49, 48]
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: [36, 5, 70, 63, 9, 8, 86] -> ? Answer:
[36, 5, 70, 63, 9, 8, 86] -> [36, 36, 36, 36, 36, 36, 36]
[36, 5, 70, 63, 9, 8, 86]
[36, 36, 36, 36, 36, 36, 36]
c113
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 ones digit is greater than element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 2] -> [] [9, 7, 26, 0, 48, 10, 53] -> [7, 26, 0, 48, 10, 53] [6, 0, 42, 1] -> [0, 42, 1] [6, 75, 1, 3, 5, 2, 44] -> [75, 1, 3, 5, 2, 44] [13, 78, 6, 8, 9] -> [13, 78, 6, 8, 9] [54, 6, 23, 15] -> [54, 6, 23, 15] [8, 31, 72, 13, 79, 81] -> [31, 72, 13, 81] [2, 1, 0, 31, 9, 74, 25, 46, 26, 29] -> [1, 0, 31] Questions: [6, 4, 43, 5, 8, 34, 34, 2, 66] -> ? Answer:
[6, 4, 43, 5, 8, 34, 34, 2, 66] -> [4, 43, 5, 34, 34, 2]
[6, 4, 43, 5, 8, 34, 34, 2, 66]
[4, 43, 5, 34, 34, 2]
c089
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 0, 0, 42] -> [42, 0, 0, 69] [3, 30, 6, 6] -> [3, 6, 30, 6] [21, 6, 7, 14, 26, 26, 5, 8, 13, 67] -> [14, 6, 7, 21, 26, 26, 5, 8, 13, 67] [25, 19, 1, 31, 12, 13, 57, 7, 32] -> [25, 1, 19, 31, 12, 13, 57, 7, 32] [3, 8, 2, 6, 55, 7, 54] -> [3, 2, 8, 6, 55, 7, 54] [4, 87, 4, 87] -> [4, 4, 87, 87] [28, 60, 80, 8, 65] -> [8, 60, 80, 28, 65] [36, 66, 91, 9, 3, 18, 1, 7] -> [9, 66, 91, 36, 3, 18, 1, 7] Questions: [15, 15, 82, 4, 57, 89, 3, 0, 20] -> ? Answer:
[15, 15, 82, 4, 57, 89, 3, 0, 20] -> [4, 15, 82, 15, 57, 89, 3, 0, 20]
[15, 15, 82, 4, 57, 89, 3, 0, 20]
[4, 15, 82, 15, 57, 89, 3, 0, 20]
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: [75, 64, 7, 8, 3, 6, 0, 4, 10] -> ? Answer:
[75, 64, 7, 8, 3, 6, 0, 4, 10] -> [92]
[75, 64, 7, 8, 3, 6, 0, 4, 10]
[92]
c227
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave input and reversed input; keep only unique elements in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 32, 76, 4, 13, 0] -> [84, 0, 32, 13, 76, 4] [] -> [] [17, 59, 69, 46, 28, 3, 67, 54] -> [17, 54, 59, 67, 69, 3, 46, 28] [50, 72, 32, 3, 1, 3, 2, 32, 1] -> [50, 1, 72, 32, 2, 3] [63, 94, 68, 92, 61, 96, 1] -> [63, 1, 94, 96, 68, 61, 92] [83, 92, 6, 1, 72, 7, 66, 64, 40] -> [83, 40, 92, 64, 6, 66, 1, 7, 72] [7, 27, 24, 51, 80, 3, 34, 47, 68] -> [7, 68, 27, 47, 24, 34, 51, 3, 80] [93, 93, 29, 93, 29, 29, 93, 93, 29] -> [93, 29] Questions: [2, 5, 5, 5, 5, 5, 2, 5, 15] -> ? Answer:
[2, 5, 5, 5, 5, 5, 2, 5, 15] -> [2, 15, 5]
[2, 5, 5, 5, 5, 5, 2, 5, 15]
[2, 15, 5]
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: [46, 83, 10, 50, 6, 14, 56, 3] -> ? Answer:
[46, 83, 10, 50, 6, 14, 56, 3] -> [83, 50, 56, 10, 6, 14, 3]
[46, 83, 10, 50, 6, 14, 56, 3]
[83, 50, 56, 10, 6, 14, 3]
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: [5, 35, 0, 91, 56, 74, 70, 34, 63] -> ? Answer:
[5, 35, 0, 91, 56, 74, 70, 34, 63] -> [5]
[5, 35, 0, 91, 56, 74, 70, 34, 63]
[5]
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: [9, 8, 7, 3, 4, 5, 2, 0, 6, 1] -> ? Answer:
[9, 8, 7, 3, 4, 5, 2, 0, 6, 1] -> [9, 8, 7, 3, 4, 3, 2, 0, 6, 1]
[9, 8, 7, 3, 4, 5, 2, 0, 6, 1]
[9, 8, 7, 3, 4, 3, 2, 0, 6, 1]
c226
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove first M and last N elements, M = element 1, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 25, 4, 98, 0, 8, 30, 82, 1] -> [98, 0, 8, 30, 82] [1, 37, 4, 88, 4, 1, 88, 1, 1] -> [37, 4, 88, 4, 1, 88, 1] [3, 77, 41, 5, 28, 1, 2, 6, 69, 3] -> [5, 28, 1, 2] [2, 4, 21, 0, 0, 1] -> [21, 0, 0] [1, 33, 1, 95, 1, 6, 9, 3, 2] -> [33, 1, 95, 1, 6, 9] [1, 8, 32, 0, 3, 40, 62, 6] -> [8] [1, 85, 34, 95, 58, 68, 9, 2, 4] -> [85, 34, 95, 58] [5, 9, 9, 8, 4, 55, 1] -> [55] Questions: [1, 63, 49, 63, 94, 6, 7, 0] -> ? Answer:
[1, 63, 49, 63, 94, 6, 7, 0] -> [63, 49, 63, 94, 6, 7, 0]
[1, 63, 49, 63, 94, 6, 7, 0]
[63, 49, 63, 94, 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, 6] -> ? Answer:
[3, 1, 6] -> [3]
[3, 1, 6]
[3]
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: [92, 9, 74, 6, 5, 0] -> ? Answer:
[92, 9, 74, 6, 5, 0] -> [6]
[92, 9, 74, 6, 5, 0]
[6]
c026
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: [9, 8, 6] -> [9, 8] [9, 3, 4, 0] -> [9, 3, 0] [5, 9, 1, 7] -> [5, 9, 7] [4, 7, 3, 6, 0, 8, 2, 5] -> [4, 7, 6, 0, 8, 2, 5] [0, 6, 1, 2, 3, 5, 9] -> [0, 6, 2, 3, 5, 9] [9, 3, 5, 2, 7, 0, 8, 1, 4, 6] -> [9, 3, 2, 7, 0, 8, 1, 4, 6] [5, 2, 6, 1, 0, 9, 4, 8] -> [5, 2, 1, 0, 9, 4, 8] [7, 4, 0, 8, 2] -> [7, 4, 8, 2] Questions: [4] -> ? Answer:
[4] -> [4]
[4]
[4]
c207
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element-wise sum of the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [56, 9, 72, 7] -> [63, 81, 81, 63] [2, 5, 6, 59, 93, 1] -> [3, 98, 65, 65, 98, 3] [21, 39, 5, 9, 40, 4] -> [25, 79, 14, 14, 79, 25] [7, 37, 64] -> [71, 74, 71] [8, 4, 45] -> [53, 8, 53] [60, 4, 2] -> [62, 8, 62] [0, 61, 89, 3, 6, 65] -> [65, 67, 92, 92, 67, 65] [0, 42, 8, 27, 86] -> [86, 69, 16, 69, 86] Questions: [0, 22, 6, 4, 9] -> ? Answer:
[0, 22, 6, 4, 9] -> [9, 26, 12, 26, 9]
[0, 22, 6, 4, 9]
[9, 26, 12, 26, 9]
c210
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52] [1, 22] -> [22, 1, 22] [4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83] [5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, 80] [2, 2, 12, 7, 2, 7, 23, 23, 28] -> [2, 28, 12, 7, 23, 28] [3, 44, 74, 44, 1, 0, 0] -> [3, 44, 0, 74, 1, 0] [2, 1, 66] -> [2, 66, 1, 66] [3, 7, 8, 5] -> [3, 7, 5, 8, 5] Questions: [5, 1, 39, 56, 5, 62, 39, 52] -> ? Answer:
[5, 1, 39, 56, 5, 62, 39, 52] -> [5, 1, 39, 56, 52, 62, 52]
[5, 1, 39, 56, 5, 62, 39, 52]
[5, 1, 39, 56, 52, 62, 52]
c216
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order by tens digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [11, 42, 99, 33, 85, 1] -> [1, 11, 33, 42, 85, 99] [17, 50, 9, 2, 60, 6, 3] -> [9, 2, 6, 3, 17, 50, 60] [32, 55, 6, 35, 2, 70, 5] -> [6, 2, 5, 32, 35, 55, 70] [5, 16, 78, 30] -> [5, 16, 30, 78] [81, 4, 44, 77, 2] -> [4, 2, 44, 77, 81] [64, 1, 54, 55, 53, 50] -> [1, 54, 55, 53, 50, 64] [57, 47, 46, 72] -> [47, 46, 57, 72] [82, 46, 7, 38, 61] -> [7, 38, 46, 61, 82] Questions: [56, 74, 29, 4, 1] -> ? Answer:
[56, 74, 29, 4, 1] -> [4, 1, 29, 56, 74]
[56, 74, 29, 4, 1]
[4, 1, 29, 56, 74]
c181
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the order of elements with even indices".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21] [5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90] [98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9] [8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2] [7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12] [27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32] [4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76] [97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45] Questions: [9, 81, 52, 77, 1, 39, 6, 3] -> ? Answer:
[9, 81, 52, 77, 1, 39, 6, 3] -> [9, 3, 52, 39, 1, 77, 6, 81]
[9, 81, 52, 77, 1, 39, 6, 3]
[9, 3, 52, 39, 1, 77, 6, 81]
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: [9, 0, 0, 8, 2, 3] -> ? Answer:
[9, 0, 0, 8, 2, 3] -> [18, 0, 0, 16, 4, 6]
[9, 0, 0, 8, 2, 3]
[18, 0, 0, 16, 4, 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: [24, 2, 16, 93, 58, 7, 56, 53, 25, 74] -> ? Answer:
[24, 2, 16, 93, 58, 7, 56, 53, 25, 74] -> [33, 10, 23, 99, 63, 11, 59, 55, 26, 74]
[24, 2, 16, 93, 58, 7, 56, 53, 25, 74]
[33, 10, 23, 99, 63, 11, 59, 55, 26, 74]
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: [40, 17, 53, 65, 89, 27, 4, 91, 0] -> ? Answer:
[40, 17, 53, 65, 89, 27, 4, 91, 0] -> [40, 23, 68, 42, 99, 71, 0]
[40, 17, 53, 65, 89, 27, 4, 91, 0]
[40, 23, 68, 42, 99, 71, 0]
c222
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 60, 78, 91] -> [4, 4, 4, 4] [96, 30, 0, 2, 6, 17] -> [6, 6, 6, 6, 6, 6] [89, 98, 99] -> [3, 3, 3] [4, 52, 90, 88, 7, 97, 14] -> [7, 7, 7, 7, 7, 7, 7] [25, 64, 79] -> [3, 3, 3] [41, 89, 5] -> [3, 3, 3] [71, 65, 3, 43, 44, 4] -> [6, 6, 6, 6, 6, 6] [80, 37, 78, 6, 66, 29, 89, 0, 79] -> [9, 9, 9, 9, 9, 9, 9, 9, 9] Questions: [62, 59, 0, 1] -> ? Answer:
[62, 59, 0, 1] -> [4, 4, 4, 4]
[62, 59, 0, 1]
[4, 4, 4, 4]
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, 93, 29, 78, 9, 0] -> ? Answer:
[2, 3, 93, 29, 78, 9, 0] -> [2, 3, 93]
[2, 3, 93, 29, 78, 9, 0]
[2, 3, 93]
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, 98, 41, 8, 6, 94, 9, 2] -> ? Answer:
[3, 98, 41, 8, 6, 94, 9, 2] -> []
[3, 98, 41, 8, 6, 94, 9, 2]
[]
c237
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 unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 8, 1, 2, 2, 2, 1] -> [2, 10, 11] [0, 2, 3, 5, 5, 0, 6, 6, 0, 5] -> [0, 2, 5, 10, 16] [2, 8, 6, 48, 48, 48, 8, 48, 8] -> [2, 10, 16, 64] [0, 5, 0, 15, 5, 2, 28, 4, 7, 4] -> [0, 5, 20, 22, 50, 54, 61] [1, 4, 4, 1, 3, 6, 3] -> [1, 5, 8, 14] [13, 8, 2, 4, 9, 9, 9] -> [13, 21, 23, 27, 36] [8, 0, 0, 15, 15, 3, 4] -> [8, 8, 23, 26, 30] [0, 8, 9, 8, 8, 0, 6] -> [0, 8, 17, 23] Questions: [22, 2, 8, 22, 9, 22, 4, 2] -> ? Answer:
[22, 2, 8, 22, 9, 22, 4, 2] -> [22, 24, 32, 41, 45]
[22, 2, 8, 22, 9, 22, 4, 2]
[22, 24, 32, 41, 45]
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: [89, 1, 17, 58, 37, 6, 8] -> ? Answer:
[89, 1, 17, 58, 37, 6, 8] -> [3]
[89, 1, 17, 58, 37, 6, 8]
[3]
c236
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "even elements divided by 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [77, 86, 96, 7, 24, 32, 4, 9, 3, 2] -> [43, 48, 12, 16, 2, 1] [2, 3, 1, 9, 7, 63, 81] -> [1] [83, 0, 3, 1, 7, 5, 4] -> [0, 2] [0, 7, 8, 90, 5, 3, 72, 87, 88] -> [0, 4, 45, 36, 44] [90, 67, 91, 9, 0, 96, 88, 50] -> [45, 0, 48, 44, 25] [29, 5, 9, 2, 8, 88, 11, 71, 6, 45] -> [1, 4, 44, 3] [31, 8, 32, 46, 13, 9, 81, 16, 42, 6] -> [4, 16, 23, 8, 21, 3] [0, 1, 14, 55, 45, 86, 58, 21, 74] -> [0, 7, 43, 29, 37] Questions: [12, 3, 25, 90, 1, 88, 19] -> ? Answer:
[12, 3, 25, 90, 1, 88, 19] -> [6, 45, 44]
[12, 3, 25, 90, 1, 88, 19]
[6, 45, 44]
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: [6, 7, 5, 3, 49, 21, 4, 9, 0, 89] -> ? Answer:
[6, 7, 5, 3, 49, 21, 4, 9, 0, 89] -> [5, 3, 49, 21, 4, 7, 0, 89]
[6, 7, 5, 3, 49, 21, 4, 9, 0, 89]
[5, 3, 49, 21, 4, 7, 0, 89]
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: [18, 70, 18, 64, 70] -> ? Answer:
[18, 70, 18, 64, 70] -> [64]
[18, 70, 18, 64, 70]
[64]
c180
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 smallest element, append the second smallest, prepend the third smallest, append the fourth smallest, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [43, 15, 16, 18, 32, 22, 98, 3] -> [43, 22, 16, 3, 15, 18, 32, 98] [6, 27, 75, 54, 73, 2, 85, 97, 7] -> [85, 73, 27, 6, 2, 7, 54, 75, 97] [5, 27, 62, 54, 88, 8, 6, 68] -> [68, 54, 8, 5, 6, 27, 62, 88] [0, 17, 45, 35, 5, 1, 6, 68, 60] -> [60, 35, 6, 1, 0, 5, 17, 45, 68] [70, 81, 6, 46, 90, 9, 23, 20, 1, 4] -> [81, 46, 20, 6, 1, 4, 9, 23, 70, 90] [43, 12, 6, 24, 1, 75] -> [43, 12, 1, 6, 24, 75] [0, 23, 2, 7, 3, 6, 57] -> [23, 6, 2, 0, 3, 7, 57] [0, 85, 36, 7, 4, 9, 13, 62] -> [62, 13, 7, 0, 4, 9, 36, 85] Questions: [69, 2, 4, 38, 3, 5, 54, 9, 85, 25] -> ? Answer:
[69, 2, 4, 38, 3, 5, 54, 9, 85, 25] -> [69, 38, 9, 4, 2, 3, 5, 25, 54, 85]
[69, 2, 4, 38, 3, 5, 54, 9, 85, 25]
[69, 38, 9, 4, 2, 3, 5, 25, 54, 85]
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: [98, 37] -> ? Answer:
[98, 37] -> [37]
[98, 37]
[37]
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: [6, 5, 3, 9, 2, 4, 8] -> ? Answer:
[6, 5, 3, 9, 2, 4, 8] -> [5, 3, 9]
[6, 5, 3, 9, 2, 4, 8]
[5, 3, 9]
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: [9, 2, 80, 18, 47] -> ? Answer:
[9, 2, 80, 18, 47] -> [9, 78, 78, 18, 47]
[9, 2, 80, 18, 47]
[9, 78, 78, 18, 47]
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: [75, 3, 6, 5] -> ? Answer:
[75, 3, 6, 5] -> [75, 5, 3, 6, 6, 3, 5, 75]
[75, 3, 6, 5]
[75, 5, 3, 6, 6, 3, 5, 75]
c244
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of 3s".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [95, 5, 0, 7, 9, 99, 6, 8] -> [0] [37, 81, 73, 4, 87, 9, 1, 93, 7] -> [0] [8, 27, 4, 44, 65, 9, 3, 5, 7] -> [1] [0, 3, 2, 7, 9, 4, 15, 64, 1, 6] -> [1] [68, 1, 69, 32, 43, 8, 25, 6, 9] -> [0] [1, 24, 83, 71, 50, 3, 2, 8, 12, 63] -> [1] [3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> [10] [3, 3, 3, 10, 46, 3, 3] -> [5] Questions: [3, 3, 3, 3, 3, 3, 3] -> ? Answer:
[3, 3, 3, 3, 3, 3, 3] -> [7]
[3, 3, 3, 3, 3, 3, 3]
[7]
c042
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [5, 2]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 7, 8] -> [5, 2] [1, 8, 7, 7, 8] -> [5, 2] [4, 0, 1, 4, 0, 6, 0, 9, 6, 6] -> [5, 2] [3, 7, 0, 7, 7, 0] -> [5, 2] [0, 8, 4, 8] -> [5, 2] [6, 3, 7, 7, 4, 6] -> [5, 2] [3, 4, 4, 1, 1, 3, 3, 4, 1, 3] -> [5, 2] [3, 8] -> [5, 2] Questions: [4, 4, 4] -> ? Answer:
[4, 4, 4] -> [5, 2]
[4, 4, 4]
[5, 2]
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: [8, 6, 47, 4, 30, 94, 1, 93, 92, 9] -> ? Answer:
[8, 6, 47, 4, 30, 94, 1, 93, 92, 9] -> [8, 6, 47, 4, 30, 1, 93, 92, 9]
[8, 6, 47, 4, 30, 94, 1, 93, 92, 9]
[8, 6, 47, 4, 30, 1, 93, 92, 9]
c003
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5] [5, 6, 2, 3, 9, 7, 1, 0] -> [1] [9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6] [1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3] [1, 0, 9, 5, 4, 2, 8] -> [8] [4, 5, 8, 3, 1, 6, 0] -> [0] [8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6] [1, 7, 9, 4, 6, 2, 0] -> [0] Questions: [3, 9, 1, 4, 7, 0, 8, 6, 5] -> ? Answer:
[3, 9, 1, 4, 7, 0, 8, 6, 5] -> [8]
[3, 9, 1, 4, 7, 0, 8, 6, 5]
[8]
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: [3, 4, 6, 5] -> ? Answer:
[3, 4, 6, 5] -> [4, 6]
[3, 4, 6, 5]
[4, 6]
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: [46, 88, 25, 76] -> ? Answer:
[46, 88, 25, 76] -> [11, 21, 43, 19, 46, 88, 25, 76, 7, 89, 0, 57]
[46, 88, 25, 76]
[11, 21, 43, 19, 46, 88, 25, 76, 7, 89, 0, 57]
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: [71] -> ? Answer:
[71] -> [7]
[71]
[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: [49, 8, 0, 56, 3, 7] -> ? Answer:
[49, 8, 0, 56, 3, 7] -> [0, 56]
[49, 8, 0, 56, 3, 7]
[0, 56]
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: [36, 2, 0, 34, 0, 97, 3, 26, 56, 4] -> ? Answer:
[36, 2, 0, 34, 0, 97, 3, 26, 56, 4] -> [97, 3, 26, 56, 4]
[36, 2, 0, 34, 0, 97, 3, 26, 56, 4]
[97, 3, 26, 56, 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: [3, 0, 6, 8, 5] -> ? Answer:
[3, 0, 6, 8, 5] -> [3, 6, 8, 5]
[3, 0, 6, 8, 5]
[3, 6, 8, 5]
c159
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 N counts the number of occurrences of N, up to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 3, 3, 3, 4] -> [0, 0, 4, 2] [2, 5, 6, 9, 6, 5, 5, 9] -> [0, 1, 0, 0, 3, 2, 0, 0, 2] [8, 1, 1, 1, 8, 8, 8, 8, 1] -> [4, 0, 0, 0, 0, 0, 0, 5] [6] -> [0, 0, 0, 0, 0, 1] [10, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 1] [2, 6] -> [0, 1, 0, 0, 0, 1] [1, 1, 9, 9, 9, 9, 9, 9, 9, 9] -> [2, 0, 0, 0, 0, 0, 0, 0, 8] [8, 1, 8, 8, 8, 2, 8, 2, 1] -> [2, 2, 0, 0, 0, 0, 0, 5] Questions: [6, 4, 4, 6, 6, 6, 4, 4, 4] -> ? Answer:
[6, 4, 4, 6, 6, 6, 4, 4, 4] -> [0, 0, 0, 5, 0, 4]
[6, 4, 4, 6, 6, 6, 4, 4, 4]
[0, 0, 0, 5, 0, 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: [24, 72, 7, 95, 73, 53, 10] -> ? Answer:
[24, 72, 7, 95, 73, 53, 10] -> [24, 72, 7, 95, 73, 53]
[24, 72, 7, 95, 73, 53, 10]
[24, 72, 7, 95, 73, 53]
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: [33, 19, 2, 6] -> ? Answer:
[33, 19, 2, 6] -> [1, 0, 0, 1]
[33, 19, 2, 6]
[1, 0, 0, 1]
c212
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert 3 at index 3, 3 times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 25, 22] -> [5, 25, 3, 3, 3, 22] [46, 59, 52] -> [46, 59, 3, 3, 3, 52] [99, 41, 82, 85, 7] -> [99, 41, 3, 3, 3, 82, 85, 7] [53, 54, 71] -> [53, 54, 3, 3, 3, 71] [33, 55, 28, 3, 35] -> [33, 55, 3, 3, 3, 28, 3, 35] [1, 68, 5, 23] -> [1, 68, 3, 3, 3, 5, 23] [4, 66, 77, 89, 81, 86, 98] -> [4, 66, 3, 3, 3, 77, 89, 81, 86, 98] [66, 36, 8, 18] -> [66, 36, 3, 3, 3, 8, 18] Questions: [6, 93, 60, 82, 19] -> ? Answer:
[6, 93, 60, 82, 19] -> [6, 93, 3, 3, 3, 60, 82, 19]
[6, 93, 60, 82, 19]
[6, 93, 3, 3, 3, 60, 82, 19]
c181
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the order of elements with even indices".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21] [5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90] [98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9] [8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2] [7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12] [27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32] [4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76] [97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45] Questions: [7, 9, 75, 1, 50, 3, 58, 56, 86, 8] -> ? Answer:
[7, 9, 75, 1, 50, 3, 58, 56, 86, 8] -> [7, 8, 75, 56, 50, 3, 58, 1, 86, 9]
[7, 9, 75, 1, 50, 3, 58, 56, 86, 8]
[7, 8, 75, 56, 50, 3, 58, 1, 86, 9]
c035
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 1, 0] -> [0, 1, 5, 0] [7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8] [0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7] [4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4, 6, 9] [1, 1, 9, 1, 8, 7] -> [1, 9, 1, 1, 8, 7] [3, 1, 1, 6] -> [6, 1, 1, 3] [3, 4, 4, 0, 5, 9, 9, 7, 5] -> [0, 4, 4, 3, 5, 9, 9, 7, 5] [2, 5, 1, 2, 8, 6] -> [2, 1, 5, 2, 8, 6] Questions: [1, 3, 5, 1, 3] -> ? Answer:
[1, 3, 5, 1, 3] -> [1, 5, 3, 1, 3]
[1, 3, 5, 1, 3]
[1, 5, 3, 1, 3]
c040
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 contains a 3, else append 9 if the list contains a 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 0, 8, 5, 9, 1, 6, 2, 7] -> [4, 0, 8, 5, 9, 1, 6, 2, 7, 9] [9, 0] -> [9, 0, 9] [5, 0, 2, 9] -> [5, 0, 2, 9, 9] [7, 5, 8, 3, 4, 1, 6] -> [7, 5, 8, 3, 4, 1, 6, 3] [2, 8, 0, 5] -> [2, 8, 0, 5] [1, 8, 4, 3, 0, 6] -> [1, 8, 4, 3, 0, 6, 3] [] -> [] [3, 4, 7, 6, 0] -> [3, 4, 7, 6, 0, 3] Questions: [4, 3, 0, 1, 7, 8] -> ? Answer:
[4, 3, 0, 1, 7, 8] -> [4, 3, 0, 1, 7, 8, 3]
[4, 3, 0, 1, 7, 8]
[4, 3, 0, 1, 7, 8, 3]
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: [9, 7, 3, 2, 1] -> ? Answer:
[9, 7, 3, 2, 1] -> [7, 3, 2]
[9, 7, 3, 2, 1]
[7, 3, 2]
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: [3, 7, 8, 4, 26, 23, 98, 2, 6, 90] -> ? Answer:
[3, 7, 8, 4, 26, 23, 98, 2, 6, 90] -> [8, 4, 7, 23, 98, 2, 6, 90]
[3, 7, 8, 4, 26, 23, 98, 2, 6, 90]
[8, 4, 7, 23, 98, 2, 6, 90]
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: [7, 5, 2, 0, 4, 1, 3, 9, 6] -> ? Answer:
[7, 5, 2, 0, 4, 1, 3, 9, 6] -> [5, 2, 0]
[7, 5, 2, 0, 4, 1, 3, 9, 6]
[5, 2, 0]
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: [4, 7, 2] -> ? Answer:
[4, 7, 2] -> [4, 7, 2, 9]
[4, 7, 2]
[4, 7, 2, 9]
c035
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 1, 0] -> [0, 1, 5, 0] [7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8] [0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7] [4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4, 6, 9] [1, 1, 9, 1, 8, 7] -> [1, 9, 1, 1, 8, 7] [3, 1, 1, 6] -> [6, 1, 1, 3] [3, 4, 4, 0, 5, 9, 9, 7, 5] -> [0, 4, 4, 3, 5, 9, 9, 7, 5] [2, 5, 1, 2, 8, 6] -> [2, 1, 5, 2, 8, 6] Questions: [7, 6, 2, 7] -> ? Answer:
[7, 6, 2, 7] -> [7, 2, 6, 7]
[7, 6, 2, 7]
[7, 2, 6, 7]
c095
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: [17, 87, 6] -> [87] [61, 82, 3, 38] -> [82, 3] [78, 11, 8, 93, 1, 99, 48, 2, 0] -> [11, 8, 93, 1, 99, 48, 2] [35, 56, 7, 27, 79, 8, 94, 90, 1] -> [56, 7, 27, 79, 8, 94, 90] [0, 70, 10, 8, 9, 19] -> [70, 10, 8, 9] [7, 8, 80, 92, 9, 46, 77, 68] -> [8, 80, 92, 9, 46, 77] [63, 30, 22] -> [30] [87, 4, 71] -> [4] Questions: [18, 84, 4, 3] -> ? Answer:
[18, 84, 4, 3] -> [84, 4]
[18, 84, 4, 3]
[84, 4]
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: [3, 6, 8, 9, 2, 0, 1, 5, 4, 7] -> ? Answer:
[3, 6, 8, 9, 2, 0, 1, 5, 4, 7] -> [3, 3, 3, 3, 3, 3, 6, 8, 9, 2, 0, 1, 5, 4, 7]
[3, 6, 8, 9, 2, 0, 1, 5, 4, 7]
[3, 3, 3, 3, 3, 3, 6, 8, 9, 2, 0, 1, 5, 4, 7]
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: [3, 7, 41, 78, 9, 0, 7, 25, 9, 25] -> ? Answer:
[3, 7, 41, 78, 9, 0, 7, 25, 9, 25] -> [78]
[3, 7, 41, 78, 9, 0, 7, 25, 9, 25]
[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: [0, 9, 3, 2, 7] -> ? Answer:
[0, 9, 3, 2, 7] -> [3, 2, 7]
[0, 9, 3, 2, 7]
[3, 2, 7]
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, 5, 5, 2, 69, 2, 5, 2, 5] -> ? Answer:
[2, 5, 5, 2, 69, 2, 5, 2, 5] -> [2, 69, 2, 5]
[2, 5, 5, 2, 69, 2, 5, 2, 5]
[2, 69, 2, 5]
c249
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; give element 1 of each sublist".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [66, 0, 66, 0, 66, 1, 1, 78, 67, 8] -> [66, 66, 66] [75, 10, 0, 52, 0, 75] -> [75, 52, 75] [96, 6, 2, 96, 0, 14, 0, 2] -> [96, 14, 2] [1, 2, 1, 13, 0, 13, 2, 0, 13] -> [1, 13, 13] [76, 80, 39, 0, 26, 26, 26, 8, 64, 13] -> [76, 26] [8, 7, 0, 16, 16, 2, 0, 43, 43, 54] -> [8, 16, 43] [4, 3, 2, 0, 8, 28, 28, 47, 3, 49] -> [4, 8] [74, 74, 74, 68, 68, 68, 68, 74, 68] -> [74] Questions: [75, 6, 5, 7, 6, 5, 0, 3, 60] -> ? Answer:
[75, 6, 5, 7, 6, 5, 0, 3, 60] -> [75, 3]
[75, 6, 5, 7, 6, 5, 0, 3, 60]
[75, 3]
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: [8, 41, 25, 7, 6, 2, 70] -> ? Answer:
[8, 41, 25, 7, 6, 2, 70] -> [8, 2, 70]
[8, 41, 25, 7, 6, 2, 70]
[8, 2, 70]
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: [48, 72, 4, 5, 89, 55, 7, 18] -> ? Answer:
[48, 72, 4, 5, 89, 55, 7, 18] -> [48, 48, 48, 48, 48, 48, 48, 48, 48, 48]
[48, 72, 4, 5, 89, 55, 7, 18]
[48, 48, 48, 48, 48, 48, 48, 48, 48, 48]
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: [0, 7, 0, 0, 0, 8, 7, 8] -> ? Answer:
[0, 7, 0, 0, 0, 8, 7, 8] -> [0, 2, 4, 6, 8]
[0, 7, 0, 0, 0, 8, 7, 8]
[0, 2, 4, 6, 8]
c150
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from element 1 up to each element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [17, 7, 2, 4] -> [17, 7, 2, 4] [52, 18, 3] -> [52, 18, 3] [80, 0, 7, 52, 62, 73] -> [80, 0, 7, 52, 62, 73] [2, 0, 3, 6, 1] -> [2, 0, 2, 3, 2, 3, 4, 5, 6, 1] [45, 23, 7, 4, 1, 47] -> [45, 23, 7, 4, 1, 45, 46, 47] [90, 90, 90] -> [90, 90, 90] [69, 3, 37, 55, 57, 1, 4, 6, 72] -> [69, 3, 37, 55, 57, 1, 4, 6, 69, 70, 71, 72] [99, 9, 0, 72] -> [99, 9, 0, 72] Questions: [86, 6, 3, 45] -> ? Answer:
[86, 6, 3, 45] -> [86, 6, 3, 45]
[86, 6, 3, 45]
[86, 6, 3, 45]
c191
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 each element N times, where N is its tens digit, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [79] -> [79, 79, 79, 79, 79, 79, 79] [34, 1, 55, 4, 6, 9, 5, 59] -> [34, 34, 34, 55, 55, 55, 55, 55, 59, 59, 59, 59, 59] [1, 16, 10, 65, 7, 4, 0, 9, 72, 3] -> [16, 10, 65, 65, 65, 65, 65, 65, 72, 72, 72, 72, 72, 72, 72] [8, 24, 2, 47, 9, 5, 77, 0, 14] -> [24, 24, 47, 47, 47, 47, 77, 77, 77, 77, 77, 77, 77, 14] [57] -> [57, 57, 57, 57, 57] [93, 62] -> [93, 93, 93, 93, 93, 93, 93, 93, 93, 62, 62, 62, 62, 62, 62] [33, 53, 3, 1, 45, 8] -> [33, 33, 33, 53, 53, 53, 53, 53, 45, 45, 45, 45] [7, 85, 5, 6] -> [85, 85, 85, 85, 85, 85, 85, 85] Questions: [8, 29, 16, 1, 37, 6, 5] -> ? Answer:
[8, 29, 16, 1, 37, 6, 5] -> [29, 29, 16, 37, 37, 37]
[8, 29, 16, 1, 37, 6, 5]
[29, 29, 16, 37, 37, 37]
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: [9, 4, 0, 7, 1, 2, 5, 3] -> ? Answer:
[9, 4, 0, 7, 1, 2, 5, 3] -> [3, 4, 0, 7, 1, 2, 5, 9]
[9, 4, 0, 7, 1, 2, 5, 3]
[3, 4, 0, 7, 1, 2, 5, 9]
c219
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 every other element, starting from the end of the list".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33] [5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26] [5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58] [48, 6, 25, 14, 3, 55, 47, 38, 1] -> [48, 25, 3, 47, 1] [8, 3, 67, 89, 18, 73, 7, 6] -> [3, 89, 73, 6] [91, 51, 6, 5, 0, 1, 8, 61, 4, 95] -> [51, 5, 1, 61, 95] [85, 58, 98, 9, 41, 61, 7, 6, 67] -> [85, 98, 41, 7, 67] [32, 67, 9, 48, 3, 6, 7, 0, 8] -> [32, 9, 3, 7, 8] Questions: [2, 9, 8, 7, 1, 25, 27] -> ? Answer:
[2, 9, 8, 7, 1, 25, 27] -> [2, 8, 1, 27]
[2, 9, 8, 7, 1, 25, 27]
[2, 8, 1, 27]
c058
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 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8] -> [] [2, 3, 1, 0, 8, 5, 6, 7, 9] -> [7, 9] [8, 3, 2, 1, 9, 5, 4, 6, 0, 7] -> [6, 0, 7] [1, 9, 5, 3] -> [] [1] -> [] [1, 8, 4, 9, 0, 6, 7, 3] -> [3] [2, 4, 8, 9, 7, 3, 0, 6, 5] -> [6, 5] [8, 7, 2, 9, 0, 5, 3, 6] -> [6] Questions: [8, 7, 4, 6, 2, 5, 1, 9, 0, 3] -> ? Answer:
[8, 7, 4, 6, 2, 5, 1, 9, 0, 3] -> [9, 0, 3]
[8, 7, 4, 6, 2, 5, 1, 9, 0, 3]
[9, 0, 3]
c148
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to each original element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 4] -> [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4] [2, 5, 2, 5] -> [1, 2, 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5] [1, 5, 3, 4] -> [1, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4] [3, 3, 1, 0] -> [1, 2, 3, 1, 2, 3, 1] [2, 1, 1] -> [1, 2, 1, 1] [5, 3, 1] -> [1, 2, 3, 4, 5, 1, 2, 3, 1] [6, 3, 3] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3] [6, 4, 1] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1] Questions: [2, 4, 4] -> ? Answer:
[2, 4, 4] -> [1, 2, 1, 2, 3, 4, 1, 2, 3, 4]
[2, 4, 4]
[1, 2, 1, 2, 3, 4, 1, 2, 3, 4]
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: [88, 86, 21, 36, 0, 7, 21, 86] -> ? Answer:
[88, 86, 21, 36, 0, 7, 21, 86] -> [1, 1, 1, 1, 2, 2]
[88, 86, 21, 36, 0, 7, 21, 86]
[1, 1, 1, 1, 2, 2]
c052
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat element 1 ten times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 9, 0, 3, 8, 1, 5, 6, 7] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] [1, 4, 7, 3, 6] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [8, 1, 2, 9, 6, 3, 4, 7] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [5, 9, 1, 6, 2, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] [8, 4, 6] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [8] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [6, 7, 5, 1, 4, 9, 3, 2, 0, 8] -> [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] [0, 2, 6, 8, 1, 5, 9, 4] -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Questions: [7, 3, 5, 6, 2, 0, 1, 4, 9] -> ? Answer:
[7, 3, 5, 6, 2, 0, 1, 4, 9] -> [7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
[7, 3, 5, 6, 2, 0, 1, 4, 9]
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
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: [7, 2, 3, 8, 8, 0, 98, 0, 98, 2] -> ? Answer:
[7, 2, 3, 8, 8, 0, 98, 0, 98, 2] -> [7, 98, 98]
[7, 2, 3, 8, 8, 0, 98, 0, 98, 2]
[7, 98, 98]
c003
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5] [5, 6, 2, 3, 9, 7, 1, 0] -> [1] [9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6] [1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3] [1, 0, 9, 5, 4, 2, 8] -> [8] [4, 5, 8, 3, 1, 6, 0] -> [0] [8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6] [1, 7, 9, 4, 6, 2, 0] -> [0] Questions: [3, 2, 5, 7, 6, 0, 8] -> ? Answer:
[3, 2, 5, 7, 6, 0, 8] -> [8]
[3, 2, 5, 7, 6, 0, 8]
[8]
c214
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29] [5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1] [4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1] [8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92] [2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79] [3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1] [6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8] [4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56] Questions: [3, 89, 88, 5, 6, 88, 98, 47, 2, 98] -> ? Answer:
[3, 89, 88, 5, 6, 88, 98, 47, 2, 98] -> [89, 88, 6, 88, 98, 47, 2, 98]
[3, 89, 88, 5, 6, 88, 98, 47, 2, 98]
[89, 88, 6, 88, 98, 47, 2, 98]
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: [5, 1, 2, 1, 1] -> ? Answer:
[5, 1, 2, 1, 1] -> [8, 2, 7, 0, 3]
[5, 1, 2, 1, 1]
[8, 2, 7, 0, 3]
c245
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of times element 1 appears in elements 2 and following".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 4, 5, 9, 2, 63, 8] -> [1] [33, 33, 33, 33, 33, 33, 33] -> [6] [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9] [35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0] [1, 75, 61, 2, 53, 86, 93, 4] -> [0] [9, 9, 9, 9, 58, 9, 58, 9] -> [5] [13, 13, 13, 13, 13, 13, 13, 13] -> [7] [4, 34, 77, 6, 0, 8, 94, 2, 7] -> [0] Questions: [7, 18, 7, 7, 0, 88, 78, 63, 8] -> ? Answer:
[7, 18, 7, 7, 0, 88, 78, 63, 8] -> [2]
[7, 18, 7, 7, 0, 88, 78, 63, 8]
[2]
c174
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep the first N elements, where N is the number of unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [70, 11, 70, 11, 11, 11, 11, 70] -> [70, 11] [8, 84, 34, 9, 87, 9, 76] -> [8, 84, 34, 9, 87, 9] [6, 9, 50, 59, 39, 6] -> [6, 9, 50, 59, 39] [63, 58, 49, 85, 8, 63, 58, 63] -> [63, 58, 49, 85, 8] [15, 15, 15, 15, 15, 77, 77, 6, 6] -> [15, 15, 15] [31, 4, 98, 31, 49, 98, 4, 4, 4, 98] -> [31, 4, 98, 31] [2, 79, 79, 79, 2, 4, 45] -> [2, 79, 79, 79] [91, 91, 91, 91, 91, 91, 91] -> [91] Questions: [0, 0, 17, 53, 71, 9] -> ? Answer:
[0, 0, 17, 53, 71, 9] -> [0, 0, 17, 53, 71]
[0, 0, 17, 53, 71, 9]
[0, 0, 17, 53, 71]
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: [6, 63, 63] -> ? Answer:
[6, 63, 63] -> [44]
[6, 63, 63]
[44]
c017
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 2 with an 8 if there is an element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 6, 4, 5, 3, 9, 2] -> [7, 8, 4, 5, 3, 9, 2] [1, 5, 6, 9] -> [1, 8, 6, 9] [2, 1, 7] -> [2, 8, 7] [5, 6] -> [5, 8] [2, 7, 3, 6, 4, 0, 5, 9, 1] -> [2, 8, 3, 6, 4, 0, 5, 9, 1] [5, 1, 0, 7, 9, 8, 2, 3, 4, 6] -> [5, 8, 0, 7, 9, 8, 2, 3, 4, 6] [4, 1, 9, 0, 6, 2, 5] -> [4, 8, 9, 0, 6, 2, 5] [0, 6, 7, 2, 9, 4, 1, 5] -> [0, 8, 7, 2, 9, 4, 1, 5] Questions: [2, 4, 7, 8, 5, 0, 6, 1, 9, 3] -> ? Answer:
[2, 4, 7, 8, 5, 0, 6, 1, 9, 3] -> [2, 8, 7, 8, 5, 0, 6, 1, 9, 3]
[2, 4, 7, 8, 5, 0, 6, 1, 9, 3]
[2, 8, 7, 8, 5, 0, 6, 1, 9, 3]
c159
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 N counts the number of occurrences of N, up to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 3, 3, 3, 4] -> [0, 0, 4, 2] [2, 5, 6, 9, 6, 5, 5, 9] -> [0, 1, 0, 0, 3, 2, 0, 0, 2] [8, 1, 1, 1, 8, 8, 8, 8, 1] -> [4, 0, 0, 0, 0, 0, 0, 5] [6] -> [0, 0, 0, 0, 0, 1] [10, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 1] [2, 6] -> [0, 1, 0, 0, 0, 1] [1, 1, 9, 9, 9, 9, 9, 9, 9, 9] -> [2, 0, 0, 0, 0, 0, 0, 0, 8] [8, 1, 8, 8, 8, 2, 8, 2, 1] -> [2, 2, 0, 0, 0, 0, 0, 5] Questions: [8, 2, 4, 8, 8, 4, 2] -> ? Answer:
[8, 2, 4, 8, 8, 4, 2] -> [0, 2, 0, 2, 0, 0, 0, 3]
[8, 2, 4, 8, 8, 4, 2]
[0, 2, 0, 2, 0, 0, 0, 3]
c179
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 element, append the second largest, prepend the third largest, append the fourth largest, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 40, 48, 86, 15, 6, 68] -> [6, 40, 68, 86, 48, 15, 1] [77, 49, 2, 27, 16, 85] -> [16, 49, 85, 77, 27, 2] [4, 24, 81, 0, 59, 98, 63, 6, 1] -> [1, 6, 59, 81, 98, 63, 24, 4, 0] [75, 68, 2, 8, 9, 50, 1] -> [2, 9, 68, 75, 50, 8, 1] [50, 35, 76, 52, 39, 66, 2, 92, 6] -> [6, 39, 52, 76, 92, 66, 50, 35, 2] [8, 9, 12, 2, 5, 98, 13, 93] -> [5, 9, 13, 98, 93, 12, 8, 2] [48, 9, 5, 3, 32, 40, 67, 16, 8, 95] -> [5, 9, 32, 48, 95, 67, 40, 16, 8, 3] [7, 31, 13, 9, 30, 4, 73, 24, 1, 5] -> [4, 7, 13, 30, 73, 31, 24, 9, 5, 1] Questions: [60, 1, 4, 16, 0, 7, 6, 80, 28] -> ? Answer:
[60, 1, 4, 16, 0, 7, 6, 80, 28] -> [1, 6, 16, 60, 80, 28, 7, 4, 0]
[60, 1, 4, 16, 0, 7, 6, 80, 28]
[1, 6, 16, 60, 80, 28, 7, 4, 0]
c104
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 19] -> [19] [2, 40, 85, 46, 9] -> [85] [1, 22, 88, 12, 8, 81, 9, 16, 48, 18] -> [88] [24, 60, 4] -> [60] [80, 1, 50, 49, 5, 48, 63] -> [80] [22, 29, 65, 20, 6] -> [65] [0, 8, 3, 55, 1, 86, 7, 56] -> [86] [3, 43, 39] -> [43] Questions: [8, 30, 7, 93] -> ? Answer:
[8, 30, 7, 93] -> [93]
[8, 30, 7, 93]
[93]
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: [0, 1, 6, 9, 7, 8, 5, 2] -> ? Answer:
[0, 1, 6, 9, 7, 8, 5, 2] -> [9, 0, 1, 6, 9, 7, 8, 5, 2, 7]
[0, 1, 6, 9, 7, 8, 5, 2]
[9, 0, 1, 6, 9, 7, 8, 5, 2, 7]
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: [56, 66, 2, 6] -> ? Answer:
[56, 66, 2, 6] -> [6, 2, 66, 56]
[56, 66, 2, 6]
[6, 2, 66, 56]
c205
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements divisible by 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [81, 53, 4, 4] -> [16] [4, 84, 0, 35, 99, 6, 57, 94] -> [0] [5, 9, 83, 51, 4, 8, 53, 3] -> [32] [4, 9, 4, 30, 9] -> [16] [2, 9, 5, 8, 5, 83, 66, 4, 65] -> [32] [6, 4, 55, 2, 4, 97, 55, 1, 41, 3] -> [16] [8, 4, 3, 74, 38, 3, 2, 53, 5] -> [32] [97, 9, 4, 8, 50, 2, 5] -> [32] Questions: [2, 4, 82, 27, 7, 8] -> ? Answer:
[2, 4, 82, 27, 7, 8] -> [32]
[2, 4, 82, 27, 7, 8]
[32]
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: [82, 6, 66, 72, 55, 1, 28, 34] -> ? Answer:
[82, 6, 66, 72, 55, 1, 28, 34] -> [82, 72, 66, 55, 34, 28, 6, 1]
[82, 6, 66, 72, 55, 1, 28, 34]
[82, 72, 66, 55, 34, 28, 6, 1]
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: [3, 0, 4, 8] -> ? Answer:
[3, 0, 4, 8] -> [8, 0, 4, 8]
[3, 0, 4, 8]
[8, 0, 4, 8]
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: [1, 5, 2, 3, 8, 7, 41, 89, 13] -> ? Answer:
[1, 5, 2, 3, 8, 7, 41, 89, 13] -> [5, 2, 3, 8, 7, 41, 89, 13]
[1, 5, 2, 3, 8, 7, 41, 89, 13]
[5, 2, 3, 8, 7, 41, 89, 13]