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
c229
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 first N elements of the reversed input, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 96] -> [96] [4, 43, 0, 31, 71, 39, 97, 6, 8] -> [8, 6, 97, 39] [2, 90, 2, 60, 9, 94] -> [94, 9] [5, 53, 66, 42, 56, 20, 15, 92, 9] -> [9, 92, 15, 20, 56] [1, 6, 55, 0, 32] -> [32] [9, 6, 63, 8, 7, 1, 3, 43, 32, 46] -> [46, 32, 43, 3, 1, 7, 8, 63, 6] [9, 4, 1, 6, 24, 8, 38, 67, 46, 39] -> [39, 46, 67, 38, 8, 24, 6, 1, 4] [1, 25, 25] -> [25] Questions: [7, 14, 24, 64, 1, 4, 20, 9] -> ? Answer:
[7, 14, 24, 64, 1, 4, 20, 9] -> [9, 20, 4, 1, 64, 24, 14]
[7, 14, 24, 64, 1, 4, 20, 9]
[9, 20, 4, 1, 64, 24, 14]
c242
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "take the largest unique element, append the second largest unique element, prepend the third largest unique element, append the fourth largest unique element, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [14, 9, 50, 48, 67, 64, 1, 6] -> [6, 14, 50, 67, 64, 48, 9, 1] [2, 2, 2, 77, 77, 2, 77, 77, 2, 21] -> [21, 77, 2] [42, 49, 56, 36, 88, 4, 5, 93, 0] -> [4, 36, 49, 88, 93, 56, 42, 5, 0] [3, 5, 8, 56, 60, 1, 9, 79, 23, 92] -> [3, 8, 23, 60, 92, 79, 56, 9, 5, 1] [13, 16, 47, 42, 94, 94] -> [16, 47, 94, 42, 13] [3, 54, 93, 91, 75, 2, 90] -> [3, 75, 91, 93, 90, 54, 2] [4, 1, 3, 73, 0, 41, 31, 18, 9] -> [1, 4, 18, 41, 73, 31, 9, 3, 0] [85, 71, 71, 1, 71, 1, 71] -> [71, 85, 1] Questions: [71, 22, 53, 21, 8, 86] -> ? Answer:
[71, 22, 53, 21, 8, 86] -> [21, 53, 86, 71, 22, 8]
[71, 22, 53, 21, 8, 86]
[21, 53, 86, 71, 22, 8]
c209
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order; insert sum of smallest and largest elements at index 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [94, 76, 5] -> [5, 76, 99, 94] [53, 17, 64] -> [17, 53, 81, 64] [77, 21, 20, 2] -> [2, 20, 79, 21, 77] [2, 39, 42] -> [2, 39, 44, 42] [7, 76, 86] -> [7, 76, 93, 86] [8, 1, 35, 56, 32, 63] -> [1, 8, 64, 32, 35, 56, 63] [96, 28, 3, 11, 0] -> [0, 3, 96, 11, 28, 96] [2, 4, 3, 54] -> [2, 3, 56, 4, 54] Questions: [1, 91, 56] -> ? Answer:
[1, 91, 56] -> [1, 56, 92, 91]
[1, 91, 56]
[1, 56, 92, 91]
c239
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of repetitions in the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [93, 94, 7, 29, 36, 9, 1, 5, 94, 2] -> [1] [88, 4, 7, 49, 5, 49, 2] -> [1] [0, 88, 7, 2, 88] -> [1] [86, 4, 2, 3, 66, 11, 89] -> [0] [9, 74] -> [0] [9, 48, 5, 5, 9, 5, 48, 41, 5] -> [5] [60, 3, 8, 6, 95, 60, 15, 64, 45] -> [1] [54, 7, 72, 6, 64, 24, 1, 19, 95] -> [0] Questions: [43, 43, 43, 43, 43, 43, 43, 43, 43] -> ? Answer:
[43, 43, 43, 43, 43, 43, 43, 43, 43] -> [8]
[43, 43, 43, 43, 43, 43, 43, 43, 43]
[8]
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: [10, 83, 24, 96] -> ? Answer:
[10, 83, 24, 96] -> [96]
[10, 83, 24, 96]
[96]
c057
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert a 4 as element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 2, 1, 3] -> [6, 2, 1, 3, 4] [] -> [4] [8, 6, 2] -> [8, 6, 2, 4] [2, 5] -> [2, 5, 4] [3, 9, 4, 5, 8, 0, 2, 7, 1] -> [3, 9, 4, 5, 8, 0, 4, 2, 7, 1] [1, 8, 5, 6, 7] -> [1, 8, 5, 6, 7, 4] [0] -> [0, 4] [8, 0, 9, 3] -> [8, 0, 9, 3, 4] Questions: [5, 1, 9] -> ? Answer:
[5, 1, 9] -> [5, 1, 9, 4]
[5, 1, 9]
[5, 1, 9, 4]
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: [22, 39, 24, 17, 60, 1, 17, 8] -> ? Answer:
[22, 39, 24, 17, 60, 1, 17, 8] -> [22, 39, 24, 17, 60, 1, 17]
[22, 39, 24, 17, 60, 1, 17, 8]
[22, 39, 24, 17, 60, 1, 17]
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: [99, 99, 99, 3, 8, 99, 3, 8, 99, 1] -> ? Answer:
[99, 99, 99, 3, 8, 99, 3, 8, 99, 1] -> [64]
[99, 99, 99, 3, 8, 99, 3, 8, 99, 1]
[64]
c158
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1] [1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0] [8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0] [7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0] [5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] [2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0] [1, 1, 1] -> [1, 0, 0] Questions: [6, 2, 3, 34, 27, 6, 3] -> ? Answer:
[6, 2, 3, 34, 27, 6, 3] -> [0, 1, 1, 0, 0, 1, 0]
[6, 2, 3, 34, 27, 6, 3]
[0, 1, 1, 0, 0, 1, 0]
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: [3, 5] -> ? Answer:
[3, 5] -> []
[3, 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: [7, 9, 9, 4, 4, 4, 5, 9, 5, 3] -> ? Answer:
[7, 9, 9, 4, 4, 4, 5, 9, 5, 3] -> [0, 0, 1, 3, 2, 0, 1, 0, 3]
[7, 9, 9, 4, 4, 4, 5, 9, 5, 3]
[0, 0, 1, 3, 2, 0, 1, 0, 3]
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: [4, 0, 7, 1] -> ? Answer:
[4, 0, 7, 1] -> [4, 7, 1]
[4, 0, 7, 1]
[4, 7, 1]
c107
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [35, 70, 1, 35, 70, 9, 35, 26, 9] -> [35, 70, 1, 9, 26] [17, 25, 25, 43, 8, 25, 43] -> [17, 25, 43, 8] [96, 25, 25, 3, 81, 16, 16, 16, 81] -> [96, 25, 3, 81, 16] [37, 11, 11, 3, 3, 87, 87, 11] -> [37, 11, 3, 87] [] -> [] [51, 51, 51, 51] -> [51] [75, 21, 21, 21, 75, 75] -> [75, 21] [8, 8, 8, 8] -> [8] Questions: [0, 0, 39, 2, 22, 37, 36, 37, 2, 39] -> ? Answer:
[0, 0, 39, 2, 22, 37, 36, 37, 2, 39] -> [0, 39, 2, 22, 37, 36]
[0, 0, 39, 2, 22, 37, 36, 37, 2, 39]
[0, 39, 2, 22, 37, 36]
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: [3, 7, 8, 0, 9] -> ? Answer:
[3, 7, 8, 0, 9] -> [3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
[3, 7, 8, 0, 9]
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
c160
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 99 - M".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 1, 14, 94, 7, 4, 0, 48, 34] -> [38, 98, 85, 5, 92, 95, 99, 51, 65] [1, 25, 5, 16, 56, 0, 64, 9, 29, 49] -> [98, 74, 94, 83, 43, 99, 35, 90, 70, 50] [56, 90, 41, 24, 4, 13, 94, 7, 6, 51] -> [43, 9, 58, 75, 95, 86, 5, 92, 93, 48] [2, 80, 39, 33, 59, 0, 4] -> [97, 19, 60, 66, 40, 99, 95] [37, 6, 11, 58, 12, 2, 8, 63] -> [62, 93, 88, 41, 87, 97, 91, 36] [7, 5, 61, 63, 4, 75, 57, 37, 16] -> [92, 94, 38, 36, 95, 24, 42, 62, 83] [75, 7, 1, 54, 5, 6] -> [24, 92, 98, 45, 94, 93] [4, 66, 6, 8, 72, 7, 9] -> [95, 33, 93, 91, 27, 92, 90] Questions: [97, 4, 2, 53, 9, 0, 47, 13, 6] -> ? Answer:
[97, 4, 2, 53, 9, 0, 47, 13, 6] -> [2, 95, 97, 46, 90, 99, 52, 86, 93]
[97, 4, 2, 53, 9, 0, 47, 13, 6]
[2, 95, 97, 46, 90, 99, 52, 86, 93]
c160
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 99 - M".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 1, 14, 94, 7, 4, 0, 48, 34] -> [38, 98, 85, 5, 92, 95, 99, 51, 65] [1, 25, 5, 16, 56, 0, 64, 9, 29, 49] -> [98, 74, 94, 83, 43, 99, 35, 90, 70, 50] [56, 90, 41, 24, 4, 13, 94, 7, 6, 51] -> [43, 9, 58, 75, 95, 86, 5, 92, 93, 48] [2, 80, 39, 33, 59, 0, 4] -> [97, 19, 60, 66, 40, 99, 95] [37, 6, 11, 58, 12, 2, 8, 63] -> [62, 93, 88, 41, 87, 97, 91, 36] [7, 5, 61, 63, 4, 75, 57, 37, 16] -> [92, 94, 38, 36, 95, 24, 42, 62, 83] [75, 7, 1, 54, 5, 6] -> [24, 92, 98, 45, 94, 93] [4, 66, 6, 8, 72, 7, 9] -> [95, 33, 93, 91, 27, 92, 90] Questions: [60, 3, 5, 23, 79, 4, 27, 61, 39, 9] -> ? Answer:
[60, 3, 5, 23, 79, 4, 27, 61, 39, 9] -> [39, 96, 94, 76, 20, 95, 72, 38, 60, 90]
[60, 3, 5, 23, 79, 4, 27, 61, 39, 9]
[39, 96, 94, 76, 20, 95, 72, 38, 60, 90]
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: [10, 52, 1, 44, 9, 43, 8] -> ? Answer:
[10, 52, 1, 44, 9, 43, 8] -> [7, 18, 5, 16, 7, 15, 7]
[10, 52, 1, 44, 9, 43, 8]
[7, 18, 5, 16, 7, 15, 7]
c044
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] Questions: [7, 7, 7, 7, 7, 7, 7] -> ? Answer:
[7, 7, 7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 7, 7, 7, 7, 7, 7]
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
c108
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 83] -> [86] [10, 0, 59, 5, 1, 9, 4] -> [88] [14, 4, 12] -> [30] [6, 0, 3, 82] -> [91] [5, 7, 4, 2] -> [18] [] -> [0] [62] -> [62] [22, 6, 1] -> [29] Questions: [67, 32] -> ? Answer:
[67, 32] -> [99]
[67, 32]
[99]
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, 2, 0, 1, 6, 8, 7, 5] -> ? Answer:
[3, 2, 0, 1, 6, 8, 7, 5] -> [5, 2, 0, 1, 6, 8, 7, 5]
[3, 2, 0, 1, 6, 8, 7, 5]
[5, 2, 0, 1, 6, 8, 7, 5]
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: [7, 4] -> ? Answer:
[7, 4] -> [9, 6, 3, 8, 5, 7, 4]
[7, 4]
[9, 6, 3, 8, 5, 7, 4]
c091
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 [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [2, 91, 37, 38, 71, 5] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [47, 47] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [66, 84, 97, 78, 46, 13, 9] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [72, 40, 72] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [15, 3, 15, 55, 7, 15, 85, 74, 6] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [33, 0, 3, 25] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [5, 42, 7, 28] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] Questions: [5, 5, 5, 43, 37] -> ? Answer:
[5, 5, 5, 43, 37] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[5, 5, 5, 43, 37]
[81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
c194
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input; prepend and append the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7] [74, 1, 24] -> [3, 24, 1, 74, 3] [94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8] [6] -> [1, 6, 1] [53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7] [4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10] [92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7] [21] -> [1, 21, 1] Questions: [51, 89, 9, 60, 7] -> ? Answer:
[51, 89, 9, 60, 7] -> [5, 7, 60, 9, 89, 51, 5]
[51, 89, 9, 60, 7]
[5, 7, 60, 9, 89, 51, 5]
c111
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat the largest element N times, where N is the smallest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [90, 5] -> [90, 90, 90, 90, 90] [61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61] [10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91] [62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88] [38, 39, 1] -> [39] [6, 62] -> [62, 62, 62, 62, 62, 62] [0, 30, 25, 57, 2, 5] -> [] Questions: [9, 54] -> ? Answer:
[9, 54] -> [54, 54, 54, 54, 54, 54, 54, 54, 54]
[9, 54]
[54, 54, 54, 54, 54, 54, 54, 54, 54]
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: [78, 78, 78] -> ? Answer:
[78, 78, 78] -> [1, 2, 3]
[78, 78, 78]
[1, 2, 3]
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: [4, 25, 2, 5, 7, 25, 23, 0, 6] -> ? Answer:
[4, 25, 2, 5, 7, 25, 23, 0, 6] -> [97]
[4, 25, 2, 5, 7, 25, 23, 0, 6]
[97]
c160
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 99 - M".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 1, 14, 94, 7, 4, 0, 48, 34] -> [38, 98, 85, 5, 92, 95, 99, 51, 65] [1, 25, 5, 16, 56, 0, 64, 9, 29, 49] -> [98, 74, 94, 83, 43, 99, 35, 90, 70, 50] [56, 90, 41, 24, 4, 13, 94, 7, 6, 51] -> [43, 9, 58, 75, 95, 86, 5, 92, 93, 48] [2, 80, 39, 33, 59, 0, 4] -> [97, 19, 60, 66, 40, 99, 95] [37, 6, 11, 58, 12, 2, 8, 63] -> [62, 93, 88, 41, 87, 97, 91, 36] [7, 5, 61, 63, 4, 75, 57, 37, 16] -> [92, 94, 38, 36, 95, 24, 42, 62, 83] [75, 7, 1, 54, 5, 6] -> [24, 92, 98, 45, 94, 93] [4, 66, 6, 8, 72, 7, 9] -> [95, 33, 93, 91, 27, 92, 90] Questions: [91, 75, 88, 9, 1, 38, 7, 0] -> ? Answer:
[91, 75, 88, 9, 1, 38, 7, 0] -> [8, 24, 11, 90, 98, 61, 92, 99]
[91, 75, 88, 9, 1, 38, 7, 0]
[8, 24, 11, 90, 98, 61, 92, 99]
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: [0, 3, 91, 48, 72] -> ? Answer:
[0, 3, 91, 48, 72] -> [0, 3, 48, 72, 91]
[0, 3, 91, 48, 72]
[0, 3, 48, 72, 91]
c166
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in ascending order by the sum of their digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 49, 53, 70, 8, 14, 94, 7] -> [14, 61, 70, 7, 53, 8, 49, 94] [98, 41, 5, 3, 20, 7, 4, 37, 55, 36] -> [20, 3, 4, 41, 5, 7, 36, 37, 55, 98] [93, 70, 19, 5, 52, 8, 0, 61] -> [0, 5, 70, 52, 61, 8, 19, 93] [37, 1, 43, 63, 93, 26, 4, 73] -> [1, 4, 43, 26, 63, 37, 73, 93] [2, 65, 4, 7, 25, 98, 6] -> [2, 4, 6, 7, 25, 65, 98] [43, 96, 0, 27, 85, 7] -> [0, 43, 7, 27, 85, 96] [73, 93, 6, 25, 71, 9, 53, 84, 1, 3] -> [1, 3, 6, 25, 71, 53, 9, 73, 93, 84] [2, 66, 6, 50, 21, 74, 14, 4, 1, 29] -> [1, 2, 21, 4, 50, 14, 6, 74, 29, 66] Questions: [60, 9, 72, 2, 0, 59, 6, 1, 68, 19] -> ? Answer:
[60, 9, 72, 2, 0, 59, 6, 1, 68, 19] -> [0, 1, 2, 60, 6, 9, 72, 19, 59, 68]
[60, 9, 72, 2, 0, 59, 6, 1, 68, 19]
[0, 1, 2, 60, 6, 9, 72, 19, 59, 68]
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: [6, 4, 9, 7, 5, 1, 0, 3] -> ? Answer:
[6, 4, 9, 7, 5, 1, 0, 3] -> [7, 4, 9, 6, 5, 1, 0, 3]
[6, 4, 9, 7, 5, 1, 0, 3]
[7, 4, 9, 6, 5, 1, 0, 3]
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: [4, 9, 7, 8, 1, 6] -> ? Answer:
[4, 9, 7, 8, 1, 6] -> [4, 7, 1]
[4, 9, 7, 8, 1, 6]
[4, 7, 1]
c184
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only odd elements with an even index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 48, 8, 2, 98, 13] -> [1] [67, 78, 17, 5, 55, 3, 6, 4, 41] -> [5, 3] [3, 5, 6, 21, 15, 77, 8, 86, 1] -> [5, 21, 77] [90, 31, 8, 2, 7, 24] -> [31] [9, 8, 0, 58, 21, 3] -> [3] [5, 10, 96, 79, 1, 7, 9, 99] -> [79, 7, 99] [9, 6, 2, 64, 15, 84] -> [] [3, 41, 7, 1, 11, 77, 9, 61, 4, 17] -> [41, 1, 77, 61, 17] Questions: [55, 63, 92, 99, 43, 2, 9] -> ? Answer:
[55, 63, 92, 99, 43, 2, 9] -> [63, 99]
[55, 63, 92, 99, 43, 2, 9]
[63, 99]
c221
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [60, 6, 7, 47, 23, 1, 39, 13] -> [66] [99, 8, 46, 6, 73, 47, 7, 4, 5] -> [64] [6, 7, 1, 91, 21, 8, 20, 9, 18] -> [52] [16, 8, 13, 6, 11, 75, 4, 58] -> [92] [0, 37, 55, 3, 6, 15, 5, 2, 8] -> [16] [87, 93, 9, 87, 2, 5, 5, 1] -> [2] [44, 3, 39, 87, 5, 0, 6, 95] -> [50] [6, 4, 12, 29, 5, 2, 38, 34, 17, 9] -> [96] Questions: [0, 6, 22, 1, 8, 28, 27, 3, 30, 2] -> ? Answer:
[0, 6, 22, 1, 8, 28, 27, 3, 30, 2] -> [96]
[0, 6, 22, 1, 8, 28, 27, 3, 30, 2]
[96]
c015
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, 5, 1, 6, 3, 1, 6, 0] -> [1, 6, 3, 1, 6] [3, 4, 5, 7, 6, 0, 8, 9, 2, 1] -> [6, 0] [2, 4, 0, 3, 7, 9, 6, 1] -> [3, 7, 9] [2, 7, 9, 1, 0, 8, 3, 4, 5, 6] -> [1, 0, 8, 3, 4, 5] [1, 4, 9, 3, 7, 8, 6] -> [9, 3, 7, 8] [2, 3, 5, 4, 7, 1] -> [4, 7] [5, 9, 9, 3, 3, 9] -> [] [1, 2, 1, 4, 5, 5] -> [1, 4] Questions: [4, 5, 5, 5, 9, 3, 3, 4, 4, 9] -> ? Answer:
[4, 5, 5, 5, 9, 3, 3, 4, 4, 9] -> [3, 3]
[4, 5, 5, 5, 9, 3, 3, 4, 4, 9]
[3, 3]
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: [5, 2, 4, 0] -> ? Answer:
[5, 2, 4, 0] -> [4]
[5, 2, 4, 0]
[4]
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: [8, 3, 2, 7, 6] -> ? Answer:
[8, 3, 2, 7, 6] -> [8, 8, 2, 7, 6]
[8, 3, 2, 7, 6]
[8, 8, 2, 7, 6]
c171
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 6, 7, 6, 4, 4] -> [7, 13, 20, 26, 30, 34] [3, 5, 15, 2, 3, 4, 7, 2] -> [3, 8, 23, 25, 28, 32, 39, 41] [7, 9, 9, 9, 7, 7, 9, 7, 7] -> [7, 16, 25, 34, 41, 48, 57, 64, 71] [1, 0, 1, 1, 1, 0] -> [1, 1, 2, 3, 4, 4] [8, 0, 8, 0, 0, 8, 16] -> [8, 8, 16, 16, 16, 24, 40] [5, 5, 5, 5, 5, 5] -> [5, 10, 15, 20, 25, 30] [0, 0, 0, 6, 6, 3, 6] -> [0, 0, 0, 6, 12, 15, 21] [1, 3, 13, 13, 10, 12, 2, 3, 13, 2] -> [1, 4, 17, 30, 40, 52, 54, 57, 70, 72] Questions: [6, 0, 6, 0, 6, 0, 6, 6] -> ? Answer:
[6, 0, 6, 0, 6, 0, 6, 6] -> [6, 6, 12, 12, 18, 18, 24, 30]
[6, 0, 6, 0, 6, 0, 6, 6]
[6, 6, 12, 12, 18, 18, 24, 30]
c143
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace every occurrence of the largest element with the smallest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 31, 0] -> [0, 0, 0] [35, 7, 63, 78, 78, 27, 46] -> [35, 7, 63, 7, 7, 27, 46] [6, 6] -> [6, 6] [57, 60, 42, 97, 4, 7, 97, 5, 8, 49] -> [57, 60, 42, 4, 4, 7, 4, 5, 8, 49] [83, 83, 45] -> [45, 45, 45] [41, 20, 2, 93, 52, 65, 63, 47, 48] -> [41, 20, 2, 2, 52, 65, 63, 47, 48] [1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1] [6, 16, 5, 4, 98, 15, 32, 89, 20] -> [6, 16, 5, 4, 4, 15, 32, 89, 20] Questions: [48, 3, 56, 5, 1, 2, 21, 64] -> ? Answer:
[48, 3, 56, 5, 1, 2, 21, 64] -> [48, 3, 56, 5, 1, 2, 21, 1]
[48, 3, 56, 5, 1, 2, 21, 64]
[48, 3, 56, 5, 1, 2, 21, 1]
c160
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 99 - M".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 1, 14, 94, 7, 4, 0, 48, 34] -> [38, 98, 85, 5, 92, 95, 99, 51, 65] [1, 25, 5, 16, 56, 0, 64, 9, 29, 49] -> [98, 74, 94, 83, 43, 99, 35, 90, 70, 50] [56, 90, 41, 24, 4, 13, 94, 7, 6, 51] -> [43, 9, 58, 75, 95, 86, 5, 92, 93, 48] [2, 80, 39, 33, 59, 0, 4] -> [97, 19, 60, 66, 40, 99, 95] [37, 6, 11, 58, 12, 2, 8, 63] -> [62, 93, 88, 41, 87, 97, 91, 36] [7, 5, 61, 63, 4, 75, 57, 37, 16] -> [92, 94, 38, 36, 95, 24, 42, 62, 83] [75, 7, 1, 54, 5, 6] -> [24, 92, 98, 45, 94, 93] [4, 66, 6, 8, 72, 7, 9] -> [95, 33, 93, 91, 27, 92, 90] Questions: [7, 29, 9, 79, 82, 38, 1] -> ? Answer:
[7, 29, 9, 79, 82, 38, 1] -> [92, 70, 90, 20, 17, 61, 98]
[7, 29, 9, 79, 82, 38, 1]
[92, 70, 90, 20, 17, 61, 98]
c187
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, separated by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 83, 59] -> [6, 83, 59, 0, 6, 83, 59] [7, 8] -> [7, 8, 0, 7, 8] [7, 71, 38, 20, 94] -> [7, 71, 38, 20, 94, 0, 7, 71, 38, 20, 94] [66, 69, 30, 1, 77] -> [66, 69, 30, 1, 77, 0, 66, 69, 30, 1, 77] [26] -> [26, 0, 26] [44, 1, 6, 53] -> [44, 1, 6, 53, 0, 44, 1, 6, 53] [75, 64, 53, 5, 2] -> [75, 64, 53, 5, 2, 0, 75, 64, 53, 5, 2] [43, 14] -> [43, 14, 0, 43, 14] Questions: [96] -> ? Answer:
[96] -> [96, 0, 96]
[96]
[96, 0, 96]
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: [7, 9, 2, 47, 47, 2, 41, 17, 1, 41] -> ? Answer:
[7, 9, 2, 47, 47, 2, 41, 17, 1, 41] -> [7, 9, 2, 47, 47, 2, 41]
[7, 9, 2, 47, 47, 2, 41, 17, 1, 41]
[7, 9, 2, 47, 47, 2, 41]
c213
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "three smallest elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 51, 55, 73, 3, 56, 87, 10, 5] -> [3, 5, 8] [70, 76, 71, 10, 60, 42, 7, 40] -> [7, 10, 40] [6, 59, 22, 7, 30, 68] -> [6, 7, 22] [40, 1, 72, 18, 61, 27, 48] -> [1, 18, 27] [75, 7, 16, 2, 8, 26] -> [2, 7, 8] [77, 5, 2, 1] -> [1, 2, 5] [25, 2, 70, 85, 35] -> [2, 25, 35] [4, 46, 20, 7, 41, 96, 42, 84] -> [4, 7, 20] Questions: [13, 31, 43, 11] -> ? Answer:
[13, 31, 43, 11] -> [11, 13, 31]
[13, 31, 43, 11]
[11, 13, 31]
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: [2, 8, 7, 5, 4, 9, 0, 1] -> ? Answer:
[2, 8, 7, 5, 4, 9, 0, 1] -> [2, 7, 8, 5, 4, 9, 0, 1]
[2, 8, 7, 5, 4, 9, 0, 1]
[2, 7, 8, 5, 4, 9, 0, 1]
c052
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat element 1 ten times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 9, 0, 3, 8, 1, 5, 6, 7] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] [1, 4, 7, 3, 6] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [8, 1, 2, 9, 6, 3, 4, 7] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [5, 9, 1, 6, 2, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] [8, 4, 6] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [8] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [6, 7, 5, 1, 4, 9, 3, 2, 0, 8] -> [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] [0, 2, 6, 8, 1, 5, 9, 4] -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Questions: [5, 8, 4, 7, 9, 2, 3, 1, 0] -> ? Answer:
[5, 8, 4, 7, 9, 2, 3, 1, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
[5, 8, 4, 7, 9, 2, 3, 1, 0]
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
c215
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 1 with the length of the input, M = element 1; drop element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 9, 4, 1, 93] -> [9, 4, 5, 93] [3, 87, 87, 33, 59, 2, 6, 72, 45, 8] -> [87, 87, 10, 59, 2, 6, 72, 45, 8] [2, 61, 0, 27, 1, 4, 72, 92, 84] -> [61, 9, 27, 1, 4, 72, 92, 84] [4, 1, 5, 2, 0, 68, 36, 2, 14, 6] -> [1, 5, 2, 10, 68, 36, 2, 14, 6] [4, 97, 57, 8, 83, 1] -> [97, 57, 8, 6, 1] [6, 45, 1, 99, 53, 0, 41, 5, 4] -> [45, 1, 99, 53, 0, 9, 5, 4] [1, 1, 82] -> [3, 82] [6, 75, 55, 9, 0, 16, 0, 5] -> [75, 55, 9, 0, 16, 8, 5] Questions: [5, 52, 73, 87, 1, 5, 21, 87] -> ? Answer:
[5, 52, 73, 87, 1, 5, 21, 87] -> [52, 73, 87, 1, 8, 21, 87]
[5, 52, 73, 87, 1, 5, 21, 87]
[52, 73, 87, 1, 8, 21, 87]
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: [37, 3, 12] -> ? Answer:
[37, 3, 12] -> [37, 3]
[37, 3, 12]
[37, 3]
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: [20, 12, 2, 25, 6, 49, 36] -> ? Answer:
[20, 12, 2, 25, 6, 49, 36] -> [12, 2, 25, 6, 49]
[20, 12, 2, 25, 6, 49, 36]
[12, 2, 25, 6, 49]
c157
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element followed by 0 if even or 1 if odd, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 46, 19, 20, 59, 8, 0] -> [31, 1, 46, 0, 19, 1, 20, 0, 59, 1, 8, 0, 0, 0] [63, 41, 83, 75, 7, 40, 3] -> [63, 1, 41, 1, 83, 1, 75, 1, 7, 1, 40, 0, 3, 1] [72, 24, 4, 3, 99, 74] -> [72, 0, 24, 0, 4, 0, 3, 1, 99, 1, 74, 0] [8, 5, 39, 96, 30, 92, 2] -> [8, 0, 5, 1, 39, 1, 96, 0, 30, 0, 92, 0, 2, 0] [3, 71, 9, 7, 26, 56] -> [3, 1, 71, 1, 9, 1, 7, 1, 26, 0, 56, 0] [68, 5, 48, 72, 4, 90, 73] -> [68, 0, 5, 1, 48, 0, 72, 0, 4, 0, 90, 0, 73, 1] [85, 21, 9, 3, 27, 78, 5] -> [85, 1, 21, 1, 9, 1, 3, 1, 27, 1, 78, 0, 5, 1] [70, 1, 28, 0, 7, 17] -> [70, 0, 1, 1, 28, 0, 0, 0, 7, 1, 17, 1] Questions: [4, 1, 0, 3, 76, 7] -> ? Answer:
[4, 1, 0, 3, 76, 7] -> [4, 0, 1, 1, 0, 0, 3, 1, 76, 0, 7, 1]
[4, 1, 0, 3, 76, 7]
[4, 0, 1, 1, 0, 0, 3, 1, 76, 0, 7, 1]
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: [3, 7, 87, 9, 90, 83, 79, 5, 0, 10] -> ? Answer:
[3, 7, 87, 9, 90, 83, 79, 5, 0, 10] -> [3, 7, 87, 87, 90, 90, 90, 90, 90, 90]
[3, 7, 87, 9, 90, 83, 79, 5, 0, 10]
[3, 7, 87, 87, 90, 90, 90, 90, 90, 90]
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: [84, 3, 80, 55, 6, 7, 90, 0, 9] -> ? Answer:
[84, 3, 80, 55, 6, 7, 90, 0, 9] -> [1]
[84, 3, 80, 55, 6, 7, 90, 0, 9]
[1]
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: [49, 2, 5, 77, 0, 99, 12, 4] -> ? Answer:
[49, 2, 5, 77, 0, 99, 12, 4] -> [8]
[49, 2, 5, 77, 0, 99, 12, 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: [1] -> ? Answer:
[1] -> []
[1]
[]
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: [8, 3, 9, 1, 7, 0] -> ? Answer:
[8, 3, 9, 1, 7, 0] -> [9]
[8, 3, 9, 1, 7, 0]
[9]
c021
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 an 8 as element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 2, 6, 5] -> [9, 8, 2, 6, 5] [4, 1] -> [4, 8, 1] [2, 3] -> [2, 8, 3] [5, 0, 1, 3, 8, 2, 4, 9, 6, 7] -> [5, 8, 0, 1, 3, 8, 2, 4, 9, 6, 7] [6, 0, 8, 4, 9, 1, 3] -> [6, 8, 0, 8, 4, 9, 1, 3] [3, 7, 1] -> [3, 8, 7, 1] [2, 3, 1] -> [2, 8, 3, 1] [3, 9, 8, 2, 5, 4] -> [3, 8, 9, 8, 2, 5, 4] Questions: [4, 3, 0, 7, 8] -> ? Answer:
[4, 3, 0, 7, 8] -> [4, 8, 3, 0, 7, 8]
[4, 3, 0, 7, 8]
[4, 8, 3, 0, 7, 8]
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: [2, 24, 21, 79, 5, 5] -> ? Answer:
[2, 24, 21, 79, 5, 5] -> [21, 5, 5]
[2, 24, 21, 79, 5, 5]
[21, 5, 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, 0] -> ? Answer:
[2, 0] -> []
[2, 0]
[]
c073
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add the index to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 6] -> [1, 7, 9] [1, 3] -> [2, 5] [0, 1] -> [1, 3] [8, 0, 6, 1] -> [9, 2, 9, 5] [7] -> [8] [5, 2, 6, 4] -> [6, 4, 9, 8] [6, 0, 3, 1] -> [7, 2, 6, 5] [5, 7, 6, 0, 2, 3] -> [6, 9, 9, 4, 7, 9] Questions: [6, 7, 5, 3, 1, 0] -> ? Answer:
[6, 7, 5, 3, 1, 0] -> [7, 9, 8, 7, 6, 6]
[6, 7, 5, 3, 1, 0]
[7, 9, 8, 7, 6, 6]
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: [1, 8, 8, 1, 1] -> ? Answer:
[1, 8, 8, 1, 1] -> [1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1]
[1, 8, 8, 1, 1]
[1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1]
c170
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 1 and last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 66, 34, 8, 0, 9, 32, 39, 23] -> [1, 23] [9, 89, 17, 24, 30, 5, 3, 53, 43] -> [9, 43] [93, 91, 99, 3, 4, 35] -> [93, 35] [5, 1, 3, 47, 86, 57, 38] -> [5, 38] [98, 94, 1, 31, 7, 29, 8] -> [98, 8] [10, 8, 7, 43, 1, 11, 50, 12, 0, 95] -> [10, 95] [28, 22, 2, 31, 5, 27] -> [28, 27] [81, 2, 4, 46, 6, 0, 8, 19, 80] -> [81, 80] Questions: [78, 40, 10, 8, 64, 36, 26, 67, 51, 3] -> ? Answer:
[78, 40, 10, 8, 64, 36, 26, 67, 51, 3] -> [78, 3]
[78, 40, 10, 8, 64, 36, 26, 67, 51, 3]
[78, 3]
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: [87, 6, 57, 38, 69, 4] -> ? Answer:
[87, 6, 57, 38, 69, 4] -> [87, 23, 68, 42, 99, 71, 4]
[87, 6, 57, 38, 69, 4]
[87, 23, 68, 42, 99, 71, 4]
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: [21, 4, 23, 70, 18, 7, 8, 6] -> ? Answer:
[21, 4, 23, 70, 18, 7, 8, 6] -> [0]
[21, 4, 23, 70, 18, 7, 8, 6]
[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: [6, 1, 0, 7, 2, 5, 3, 8, 4, 9] -> ? Answer:
[6, 1, 0, 7, 2, 5, 3, 8, 4, 9] -> [7, 1, 0, 6, 2, 5, 3, 8, 4, 9]
[6, 1, 0, 7, 2, 5, 3, 8, 4, 9]
[7, 1, 0, 6, 2, 5, 3, 8, 4, 9]
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: [7, 9, 8, 1, 5, 0, 4] -> ? Answer:
[7, 9, 8, 1, 5, 0, 4] -> [7, 8, 8, 1, 5, 0, 4]
[7, 9, 8, 1, 5, 0, 4]
[7, 8, 8, 1, 5, 0, 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, 9, 6, 2, 0, 3] -> ? Answer:
[1, 9, 6, 2, 0, 3] -> [9, 6, 3, 8, 5, 1, 9, 6, 2, 0, 3]
[1, 9, 6, 2, 0, 3]
[9, 6, 3, 8, 5, 1, 9, 6, 2, 0, 3]
c197
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the number of occurrences of that element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8, 7, 20, 61, 45, 0] -> [2, 1, 1, 1, 1, 1, 2] [11, 11, 11] -> [3, 3, 3] [94, 53, 35, 60, 1, 38] -> [1, 1, 1, 1, 1, 1] [] -> [] [75, 75, 75, 75, 75, 75, 75, 75, 75, 75] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [26, 63, 63, 63, 26, 26, 63, 63, 26] -> [4, 5, 5, 5, 4, 4, 5, 5, 4] [58, 71, 11, 11, 58] -> [2, 1, 2, 2, 2] [25, 25, 25, 25, 25, 25, 25] -> [7, 7, 7, 7, 7, 7, 7] Questions: [91, 91, 72, 91, 91, 72, 91, 72, 72, 41] -> ? Answer:
[91, 91, 72, 91, 91, 72, 91, 72, 72, 41] -> [5, 5, 4, 5, 5, 4, 5, 4, 4, 1]
[91, 91, 72, 91, 91, 72, 91, 72, 72, 41]
[5, 5, 4, 5, 5, 4, 5, 4, 4, 1]
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: [6, 5, 3, 9, 7, 8, 2] -> ? Answer:
[6, 5, 3, 9, 7, 8, 2] -> []
[6, 5, 3, 9, 7, 8, 2]
[]
c074
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element whose value < 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3] -> [] [1, 4, 5, 6, 2, 7, 0, 8, 3] -> [8] [4, 1] -> [] [2, 1, 3, 0, 7] -> [] [2, 9, 7, 5, 6] -> [9] [2, 5, 8, 7, 9, 0, 1, 3, 6, 4] -> [8, 9] [8, 1, 6, 3, 4, 7, 9, 0, 5] -> [8, 9] [0, 4, 3, 7, 6, 5, 1, 9, 2, 8] -> [9, 8] Questions: [4, 1, 3, 6] -> ? Answer:
[4, 1, 3, 6] -> []
[4, 1, 3, 6]
[]
c074
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element whose value < 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3] -> [] [1, 4, 5, 6, 2, 7, 0, 8, 3] -> [8] [4, 1] -> [] [2, 1, 3, 0, 7] -> [] [2, 9, 7, 5, 6] -> [9] [2, 5, 8, 7, 9, 0, 1, 3, 6, 4] -> [8, 9] [8, 1, 6, 3, 4, 7, 9, 0, 5] -> [8, 9] [0, 4, 3, 7, 6, 5, 1, 9, 2, 8] -> [9, 8] Questions: [2, 7, 1] -> ? Answer:
[2, 7, 1] -> []
[2, 7, 1]
[]
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: [11, 29] -> ? Answer:
[11, 29] -> [11, 29, 29]
[11, 29]
[11, 29, 29]
c078
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, 7, 1, 2, 0, 3, 9, 4] -> [9] [2, 4] -> [4] [1, 9, 5, 7, 4, 6, 2, 3] -> [9] [2, 7, 4, 3, 5, 0, 6, 1] -> [7] [0, 6, 5] -> [6] [2, 7, 0, 8, 3] -> [8] [0, 1] -> [1] [8, 1, 9, 6, 3, 0, 2, 4, 5, 7] -> [9] Questions: [8, 7, 4, 6] -> ? Answer:
[8, 7, 4, 6] -> [8]
[8, 7, 4, 6]
[8]
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: [2, 10, 10, 5, 4, 6, 4, 10, 2] -> ? Answer:
[2, 10, 10, 5, 4, 6, 4, 10, 2] -> [0, 2, 0, 2, 1, 1, 0, 0, 0, 3]
[2, 10, 10, 5, 4, 6, 4, 10, 2]
[0, 2, 0, 2, 1, 1, 0, 0, 0, 3]
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: [59, 4, 90, 9, 66, 6, 89] -> ? Answer:
[59, 4, 90, 9, 66, 6, 89] -> [59, 59, 59, 59, 59, 59, 59]
[59, 4, 90, 9, 66, 6, 89]
[59, 59, 59, 59, 59, 59, 59]
c123
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, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [86, 60, 7, 60, 4] -> [60] [7, 18, 93, 10, 5, 3, 4, 3] -> [93] [7, 6, 63, 7, 6, 65, 0, 50, 3] -> [63] [5, 56, 7, 2] -> [56] [14, 42, 76, 79, 3] -> [76] [78, 6, 17, 9, 58, 9, 3, 72, 47, 1] -> [78] [34, 41, 2] -> [41] [7, 3, 5, 48, 62, 54, 87, 5] -> [62] Questions: [7, 46, 7, 32, 39, 4] -> ? Answer:
[7, 46, 7, 32, 39, 4] -> [32]
[7, 46, 7, 32, 39, 4]
[32]
c061
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 last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 1, 3, 2] -> [2] [7, 1, 3, 8, 0, 9, 5, 4, 2] -> [2] [4, 0, 6, 7, 1, 8] -> [8] [6, 7, 2, 9, 8, 3, 1, 0, 4, 5] -> [5] [5, 1] -> [1] [0, 8, 4, 5] -> [5] [5, 2, 0, 8, 1, 4, 9, 6, 3, 7] -> [7] [5, 8, 9, 6, 7] -> [7] Questions: [6, 2, 4, 1, 5, 8, 7, 0, 3, 9] -> ? Answer:
[6, 2, 4, 1, 5, 8, 7, 0, 3, 9] -> [9]
[6, 2, 4, 1, 5, 8, 7, 0, 3, 9]
[9]
c167
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements divisible by 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [19, 73, 1, 3, 2, 6] -> [3, 6] [82, 89, 67, 51, 88, 8] -> [51] [9, 1, 83, 4, 95, 29, 44, 7] -> [9] [15, 6, 60, 66, 37, 63, 33, 53, 3, 0] -> [15, 6, 60, 66, 63, 33, 3, 0] [54, 8, 6, 0, 2, 70, 7, 9, 3, 19] -> [54, 6, 0, 9, 3] [2, 14, 7, 91, 80, 20, 31, 38] -> [] [0, 4, 73, 8, 8, 78] -> [0, 78] [96, 94, 9, 12, 7, 57, 0, 5, 1] -> [96, 9, 12, 57, 0] Questions: [7, 0, 44, 60, 3, 2] -> ? Answer:
[7, 0, 44, 60, 3, 2] -> [0, 60, 3]
[7, 0, 44, 60, 3, 2]
[0, 60, 3]
c072
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 every element 2 times in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7] [8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2] [9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6] [3, 8, 9, 5, 1, 6, 0] -> [3, 3, 8, 8, 9, 9, 5, 5, 1, 1, 6, 6, 0, 0] [8, 1, 3, 9] -> [8, 8, 1, 1, 3, 3, 9, 9] [9, 6, 8, 1, 2, 5] -> [9, 9, 6, 6, 8, 8, 1, 1, 2, 2, 5, 5] [3, 1] -> [3, 3, 1, 1] [3] -> [3, 3] Questions: [2] -> ? Answer:
[2] -> [2, 2]
[2]
[2, 2]
c117
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by three elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5] [9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69] [7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4] [14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83] [70, 5, 77, 54] -> [54, 70, 5, 77] [64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42] [2, 45, 32, 14] -> [14, 2, 45, 32] [4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3] Questions: [7, 88, 22, 18, 6, 58] -> ? Answer:
[7, 88, 22, 18, 6, 58] -> [18, 6, 58, 7, 88, 22]
[7, 88, 22, 18, 6, 58]
[18, 6, 58, 7, 88, 22]
c187
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, separated by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 83, 59] -> [6, 83, 59, 0, 6, 83, 59] [7, 8] -> [7, 8, 0, 7, 8] [7, 71, 38, 20, 94] -> [7, 71, 38, 20, 94, 0, 7, 71, 38, 20, 94] [66, 69, 30, 1, 77] -> [66, 69, 30, 1, 77, 0, 66, 69, 30, 1, 77] [26] -> [26, 0, 26] [44, 1, 6, 53] -> [44, 1, 6, 53, 0, 44, 1, 6, 53] [75, 64, 53, 5, 2] -> [75, 64, 53, 5, 2, 0, 75, 64, 53, 5, 2] [43, 14] -> [43, 14, 0, 43, 14] Questions: [54, 2, 89, 84, 82] -> ? Answer:
[54, 2, 89, 84, 82] -> [54, 2, 89, 84, 82, 0, 54, 2, 89, 84, 82]
[54, 2, 89, 84, 82]
[54, 2, 89, 84, 82, 0, 54, 2, 89, 84, 82]
c147
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element, followed by its original index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [39, 5, 60, 6, 16, 7, 26] -> [39, 1, 5, 2, 60, 3, 6, 4, 16, 5, 7, 6, 26, 7] [90, 9, 6, 67, 0] -> [90, 1, 9, 2, 6, 3, 67, 4, 0, 5] [8, 52, 70] -> [8, 1, 52, 2, 70, 3] [54, 17, 29, 22] -> [54, 1, 17, 2, 29, 3, 22, 4] [72, 18, 4] -> [72, 1, 18, 2, 4, 3] [79, 3] -> [79, 1, 3, 2] [8, 9, 0, 43, 61, 1] -> [8, 1, 9, 2, 0, 3, 43, 4, 61, 5, 1, 6] [69] -> [69, 1] Questions: [78, 1, 22, 29, 8, 7] -> ? Answer:
[78, 1, 22, 29, 8, 7] -> [78, 1, 1, 2, 22, 3, 29, 4, 8, 5, 7, 6]
[78, 1, 22, 29, 8, 7]
[78, 1, 1, 2, 22, 3, 29, 4, 8, 5, 7, 6]
c186
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43] [9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88] [6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23] [5, 60, 5, 60] -> [60, 60] [9, 6, 5, 8, 1, 34, 91, 36, 0] -> [34, 91, 36] [15, 7, 31, 9, 4, 22, 82, 1, 38, 80] -> [31, 22, 82, 38, 80] [39, 0, 22, 3, 8, 6, 9, 4, 51, 57] -> [51, 57] [5, 46, 6, 49, 3, 9, 1, 4, 7] -> [46, 6, 49, 9, 7] Questions: [90, 54, 1, 93, 28, 2, 0, 41, 94] -> ? Answer:
[90, 54, 1, 93, 28, 2, 0, 41, 94] -> [93, 94]
[90, 54, 1, 93, 28, 2, 0, 41, 94]
[93, 94]
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: [5, 4, 1, 2, 0, 3, 8] -> ? Answer:
[5, 4, 1, 2, 0, 3, 8] -> [9, 5, 4, 1, 2, 0, 3, 8, 7]
[5, 4, 1, 2, 0, 3, 8]
[9, 5, 4, 1, 2, 0, 3, 8, 7]
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: [0, 2, 3, 1, 8, 9, 5, 6] -> ? Answer:
[0, 2, 3, 1, 8, 9, 5, 6] -> [8]
[0, 2, 3, 1, 8, 9, 5, 6]
[8]
c109
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69] -> [69] [5, 5, 1, 1, 1, 1] -> [25] [43, 2] -> [86] [2, 1, 1, 1, 1, 18, 2] -> [72] [4, 8] -> [32] [95] -> [95] [1, 1, 9, 1, 1] -> [9] [4, 6] -> [24] Questions: [1, 44] -> ? Answer:
[1, 44] -> [44]
[1, 44]
[44]
c057
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert a 4 as element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 2, 1, 3] -> [6, 2, 1, 3, 4] [] -> [4] [8, 6, 2] -> [8, 6, 2, 4] [2, 5] -> [2, 5, 4] [3, 9, 4, 5, 8, 0, 2, 7, 1] -> [3, 9, 4, 5, 8, 0, 4, 2, 7, 1] [1, 8, 5, 6, 7] -> [1, 8, 5, 6, 7, 4] [0] -> [0, 4] [8, 0, 9, 3] -> [8, 0, 9, 3, 4] Questions: [0, 6, 8, 5, 4, 1, 7, 2, 9] -> ? Answer:
[0, 6, 8, 5, 4, 1, 7, 2, 9] -> [0, 6, 8, 5, 4, 1, 4, 7, 2, 9]
[0, 6, 8, 5, 4, 1, 7, 2, 9]
[0, 6, 8, 5, 4, 1, 4, 7, 2, 9]
c024
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert as element 2: 8 if element 1 > 5 else 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 2, 4, 6, 7] -> [9, 5, 3, 2, 4, 6, 7] [6, 8, 2, 0, 1] -> [6, 5, 8, 2, 0, 1] [0, 1, 8, 4, 2, 6, 9, 7, 5] -> [0, 8, 1, 8, 4, 2, 6, 9, 7, 5] [0, 1, 5, 3, 2, 6, 9] -> [0, 8, 1, 5, 3, 2, 6, 9] [6, 7, 9, 1, 0] -> [6, 5, 7, 9, 1, 0] [6, 8, 3, 0, 5, 2, 4, 7] -> [6, 5, 8, 3, 0, 5, 2, 4, 7] [3, 0, 1, 4, 5, 9] -> [3, 8, 0, 1, 4, 5, 9] [0, 7, 1, 2, 4] -> [0, 8, 7, 1, 2, 4] Questions: [9, 7, 0, 6, 4, 5, 8, 3] -> ? Answer:
[9, 7, 0, 6, 4, 5, 8, 3] -> [9, 5, 7, 0, 6, 4, 5, 8, 3]
[9, 7, 0, 6, 4, 5, 8, 3]
[9, 5, 7, 0, 6, 4, 5, 8, 3]
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: [9, 1, 3, 7, 5, 2, 6, 8, 0, 4] -> ? Answer:
[9, 1, 3, 7, 5, 2, 6, 8, 0, 4] -> [3, 7, 5, 2, 6]
[9, 1, 3, 7, 5, 2, 6, 8, 0, 4]
[3, 7, 5, 2, 6]
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: [19, 1, 3, 5, 7, 77, 45] -> ? Answer:
[19, 1, 3, 5, 7, 77, 45] -> [19, 19, 19, 19, 19, 19, 19, 19, 19, 19]
[19, 1, 3, 5, 7, 77, 45]
[19, 19, 19, 19, 19, 19, 19, 19, 19, 19]
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, 3, 5, 6, 8, 0, 4, 9, 7] -> ? Answer:
[2, 3, 5, 6, 8, 0, 4, 9, 7] -> [5, 6, 8, 0, 4, 9, 7]
[2, 3, 5, 6, 8, 0, 4, 9, 7]
[5, 6, 8, 0, 4, 9, 7]
c223
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap the digits of each element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [53, 23, 42] -> [35, 32, 24] [17, 4, 59, 58, 9, 69, 63, 13, 22] -> [71, 40, 95, 85, 90, 96, 36, 31, 22] [32, 80, 94, 8, 25, 34, 9, 0] -> [23, 8, 49, 80, 52, 43, 90, 0] [52, 59, 77, 88, 32] -> [25, 95, 77, 88, 23] [2, 74, 54, 99, 36, 57, 4, 0] -> [20, 47, 45, 99, 63, 75, 40, 0] [34, 12, 92, 7, 50, 87, 3, 0, 17, 74] -> [43, 21, 29, 70, 5, 78, 30, 0, 71, 47] [12, 85, 66, 41, 5, 4, 36] -> [21, 58, 66, 14, 50, 40, 63] [20, 75, 47, 7, 51, 2, 23, 40, 19, 36] -> [2, 57, 74, 70, 15, 20, 32, 4, 91, 63] Questions: [0, 10, 3, 7, 41, 4, 68] -> ? Answer:
[0, 10, 3, 7, 41, 4, 68] -> [0, 1, 30, 70, 14, 40, 86]
[0, 10, 3, 7, 41, 4, 68]
[0, 1, 30, 70, 14, 40, 86]
c045
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 4, 5, 0, 3, 6, 9, 1] -> [8, 4, 5, 0, 3, 6, 9, 1] [7, 4, 2, 3] -> [7, 4, 2, 3] [0, 9, 5] -> [0, 9, 5] [5, 3, 7, 6, 0, 9, 2, 1, 8] -> [5, 3, 7, 6, 0, 9, 2, 1, 8] [0, 3, 4, 6, 1, 8, 9, 7, 2] -> [0, 3, 4, 6, 1, 8, 9, 7, 2] [3, 5, 8, 4, 1, 0, 2, 7] -> [3, 5, 8, 4, 1, 0, 2, 7] [9, 1, 8, 4, 2] -> [9, 1, 8, 4, 2] [7] -> [7] Questions: [4, 0, 6, 5, 2, 9, 7] -> ? Answer:
[4, 0, 6, 5, 2, 9, 7] -> [4, 0, 6, 5, 2, 9, 7]
[4, 0, 6, 5, 2, 9, 7]
[4, 0, 6, 5, 2, 9, 7]
c081
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [23, 9, 13, 67, 24, 20, 71, 77] -> [13] [84, 51, 3, 47, 4, 67, 43, 88, 13] -> [3] [7, 55, 4] -> [4] [2, 0, 70, 3, 5, 8, 9, 7, 1, 33] -> [70] [41, 2, 48] -> [48] [6, 50, 65] -> [65] [2, 30, 7, 6, 89, 8, 45, 88] -> [7] [60, 19, 68, 0, 4, 9, 95, 82] -> [68] Questions: [44, 81, 2, 75, 13, 72] -> ? Answer:
[44, 81, 2, 75, 13, 72] -> [2]
[44, 81, 2, 75, 13, 72]
[2]
c077
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 4, 8, 5, 7] -> [5] [9, 4, 5, 2, 0, 1, 8, 6, 3] -> [9] [6, 4, 3] -> [3] [6, 2, 1, 4, 3, 0, 5, 7] -> [8] [1, 6, 4, 8, 7, 0, 5] -> [7] [9, 8, 0, 7] -> [4] [8, 4, 5, 3, 7, 2, 9, 0, 6] -> [9] [0] -> [1] Questions: [6, 0, 5] -> ? Answer:
[6, 0, 5] -> [3]
[6, 0, 5]
[3]
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: [87, 0, 5, 45, 40, 71, 85, 1] -> ? Answer:
[87, 0, 5, 45, 40, 71, 85, 1] -> [45, 71, 1]
[87, 0, 5, 45, 40, 71, 85, 1]
[45, 71, 1]
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: [82, 15, 69, 90] -> ? Answer:
[82, 15, 69, 90] -> [82, 15, 69]
[82, 15, 69, 90]
[82, 15, 69]
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: [7, 53, 69, 53, 2, 6, 35, 0, 49, 91] -> ? Answer:
[7, 53, 69, 53, 2, 6, 35, 0, 49, 91] -> [0]
[7, 53, 69, 53, 2, 6, 35, 0, 49, 91]
[0]
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: [8, 99, 4, 9, 96, 95, 42, 6, 32, 61] -> ? Answer:
[8, 99, 4, 9, 96, 95, 42, 6, 32, 61] -> [4, 6, 9, 32, 42, 61, 95]
[8, 99, 4, 9, 96, 95, 42, 6, 32, 61]
[4, 6, 9, 32, 42, 61, 95]
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: [99, 80, 8, 18] -> ? Answer:
[99, 80, 8, 18] -> [91, 80, 91, 18]
[99, 80, 8, 18]
[91, 80, 91, 18]
c023
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert as element 2: 8 if the list length > 5 else 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 8, 0, 7, 6, 4, 2] -> [9, 5, 3, 8, 0, 7, 6, 4, 2] [4, 1, 2, 0, 6, 9] -> [4, 5, 1, 2, 0, 6, 9] [6, 2, 8, 5, 1, 9, 7, 3, 4] -> [6, 5, 2, 8, 5, 1, 9, 7, 3, 4] [6, 2] -> [6, 8, 2] [7, 9, 2, 1, 4, 3, 8, 6, 0] -> [7, 5, 9, 2, 1, 4, 3, 8, 6, 0] [6, 2, 4, 3] -> [6, 8, 2, 4, 3] [0, 7, 1, 5, 4] -> [0, 5, 7, 1, 5, 4] [4, 8, 9, 5, 1, 7, 6, 3, 0, 2] -> [4, 5, 8, 9, 5, 1, 7, 6, 3, 0, 2] Questions: [6, 4, 3, 0] -> ? Answer:
[6, 4, 3, 0] -> [6, 8, 4, 3, 0]
[6, 4, 3, 0]
[6, 8, 4, 3, 0]
c080
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 reverse order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 8, 7, 0, 6, 5, 3, 4, 1] -> [1, 4, 3, 5, 6, 0, 7, 8, 2] [9, 1, 2, 8, 0] -> [0, 8, 2, 1, 9] [5, 3, 0, 7, 4, 6, 2, 9] -> [9, 2, 6, 4, 7, 0, 3, 5] [1, 0, 7, 3, 9, 2] -> [2, 9, 3, 7, 0, 1] [4, 0, 9] -> [9, 0, 4] [4, 2] -> [2, 4] [3, 6, 1, 7, 0, 4] -> [4, 0, 7, 1, 6, 3] [1, 8, 0, 7, 5] -> [5, 7, 0, 8, 1] Questions: [9] -> ? Answer:
[9] -> [9]
[9]
[9]
c171
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 6, 7, 6, 4, 4] -> [7, 13, 20, 26, 30, 34] [3, 5, 15, 2, 3, 4, 7, 2] -> [3, 8, 23, 25, 28, 32, 39, 41] [7, 9, 9, 9, 7, 7, 9, 7, 7] -> [7, 16, 25, 34, 41, 48, 57, 64, 71] [1, 0, 1, 1, 1, 0] -> [1, 1, 2, 3, 4, 4] [8, 0, 8, 0, 0, 8, 16] -> [8, 8, 16, 16, 16, 24, 40] [5, 5, 5, 5, 5, 5] -> [5, 10, 15, 20, 25, 30] [0, 0, 0, 6, 6, 3, 6] -> [0, 0, 0, 6, 12, 15, 21] [1, 3, 13, 13, 10, 12, 2, 3, 13, 2] -> [1, 4, 17, 30, 40, 52, 54, 57, 70, 72] Questions: [8, 0, 1, 1, 1, 6, 6, 5, 3, 2] -> ? Answer:
[8, 0, 1, 1, 1, 6, 6, 5, 3, 2] -> [8, 8, 9, 10, 11, 17, 23, 28, 31, 33]
[8, 0, 1, 1, 1, 6, 6, 5, 3, 2]
[8, 8, 9, 10, 11, 17, 23, 28, 31, 33]