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
c165
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input and keep only even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 41, 67, 46, 57, 5] -> [46] [1, 2, 81, 9, 3, 19, 5, 7] -> [2] [37, 5, 92, 44, 69, 4] -> [4, 44, 92] [3, 2, 31, 4, 20, 7, 9, 6, 83, 44] -> [44, 6, 20, 4, 2] [20, 21, 30, 7, 12, 3, 93] -> [12, 30, 20] [56, 1, 0, 6, 26, 84, 8, 55, 72, 9] -> [72, 8, 84, 26, 6, 0, 56] [2, 16, 68, 57, 34, 99, 9, 27, 44, 6] -> [6, 44, 34, 68, 16, 2] [35, 54, 81, 51, 3, 18, 9] -> [18, 54] Questions: [1, 89, 4, 38, 2, 54, 7, 9, 8, 5] -> ? Answer:
[1, 89, 4, 38, 2, 54, 7, 9, 8, 5] -> [8, 54, 2, 38, 4]
[1, 89, 4, 38, 2, 54, 7, 9, 8, 5]
[8, 54, 2, 38, 4]
c036
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1] [9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0] [7, 2, 0, 7] -> [7, 0, 2, 7] [4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1] [0, 7, 5, 2, 1, 8, 6, 9] -> [0, 5, 7, 2, 1, 8, 6, 9] [6, 7, 8, 1, 0, 2, 4] -> [1, 7, 8, 6, 0, 2, 4] [1, 7, 4, 5, 8, 9] -> [1, 4, 7, 5, 8, 9] [1, 1, 0, 7, 6] -> [1, 0, 1, 7, 6] Questions: [6, 8, 2, 7, 1, 9, 4, 2] -> ? Answer:
[6, 8, 2, 7, 1, 9, 4, 2] -> [6, 2, 8, 7, 1, 9, 4, 2]
[6, 8, 2, 7, 1, 9, 4, 2]
[6, 2, 8, 7, 1, 9, 4, 2]
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: [8, 1, 7, 0, 9] -> ? Answer:
[8, 1, 7, 0, 9] -> [7]
[8, 1, 7, 0, 9]
[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: [3, 4, 3, 4, 5, 3, 4, 1, 77, 4] -> ? Answer:
[3, 4, 3, 4, 5, 3, 4, 1, 77, 4] -> [5, 3]
[3, 4, 3, 4, 5, 3, 4, 1, 77, 4]
[5, 3]
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: [4, 9, 82, 98, 34, 51, 6, 39, 72] -> ? Answer:
[4, 9, 82, 98, 34, 51, 6, 39, 72] -> [82, 51, 34, 6, 4, 9, 39, 72, 98]
[4, 9, 82, 98, 34, 51, 6, 39, 72]
[82, 51, 34, 6, 4, 9, 39, 72, 98]
c200
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "tens digits of the elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 1, 14, 28, 78, 53, 9] -> [0, 0, 0, 1, 2, 5, 7] [7, 67, 48, 6, 92, 0, 9, 79] -> [0, 0, 0, 0, 4, 6, 7, 9] [79, 87, 57] -> [5, 7, 8] [69, 84, 8, 36, 15] -> [0, 1, 3, 6, 8] [12, 66, 98, 37] -> [1, 3, 6, 9] [1, 47, 84] -> [0, 4, 8] [66, 10, 74, 56] -> [1, 5, 6, 7] [79, 7, 90, 76, 0, 1] -> [0, 0, 0, 7, 7, 9] Questions: [0, 1, 26, 51, 73, 92] -> ? Answer:
[0, 1, 26, 51, 73, 92] -> [0, 0, 2, 5, 7, 9]
[0, 1, 26, 51, 73, 92]
[0, 0, 2, 5, 7, 9]
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: [2, 6, 0, 8, 4] -> ? Answer:
[2, 6, 0, 8, 4] -> [2, 6, 0, 8]
[2, 6, 0, 8, 4]
[2, 6, 0, 8]
c071
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6] -> [2, 8] [0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3] [2] -> [4] [3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4] [1, 6] -> [3, 8] [1, 2] -> [3, 4] [1] -> [3] [5, 3, 0, 1] -> [7, 5, 2, 3] Questions: [2, 0, 4, 5, 1, 7, 6, 3] -> ? Answer:
[2, 0, 4, 5, 1, 7, 6, 3] -> [4, 2, 6, 7, 3, 9, 8, 5]
[2, 0, 4, 5, 1, 7, 6, 3]
[4, 2, 6, 7, 3, 9, 8, 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: [0, 7, 8, 3] -> ? Answer:
[0, 7, 8, 3] -> [9, 6, 3, 8, 5, 0, 7, 8, 3]
[0, 7, 8, 3]
[9, 6, 3, 8, 5, 0, 7, 8, 3]
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: [8, 4, 42, 40, 9, 51, 70, 2, 78, 89] -> ? Answer:
[8, 4, 42, 40, 9, 51, 70, 2, 78, 89] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[8, 4, 42, 40, 9, 51, 70, 2, 78, 89]
[8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
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, 9, 8, 6, 13, 7, 2] -> ? Answer:
[2, 5, 9, 8, 6, 13, 7, 2] -> [8, 6, 13, 7]
[2, 5, 9, 8, 6, 13, 7, 2]
[8, 6, 13, 7]
c204
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 followed by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [77, 94, 8, 1, 2, 4, 0] -> [4] [87, 0, 70, 0, 87] -> [87, 70] [4, 0, 0, 9, 61, 44, 67, 9, 18, 41] -> [4, 0] [3, 0, 0] -> [3, 0] [8, 0, 0, 41] -> [8, 0] [1, 1, 1, 0, 0, 0, 0, 0, 1] -> [1, 0, 0, 0, 0] [2, 5, 26, 26, 10, 44, 79, 7, 92] -> [] [5, 78, 0, 0, 0] -> [78, 0, 0] Questions: [17, 0, 0, 5, 53, 10, 2, 45, 54, 1] -> ? Answer:
[17, 0, 0, 5, 53, 10, 2, 45, 54, 1] -> [17, 0]
[17, 0, 0, 5, 53, 10, 2, 45, 54, 1]
[17, 0]
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: [79, 79, 79, 79] -> ? Answer:
[79, 79, 79, 79] -> [1, 2, 3, 4]
[79, 79, 79, 79]
[1, 2, 3, 4]
c008
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the first 6 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 9, 3, 1, 6, 0, 7, 4, 2] -> [8, 5, 9, 3, 1, 6] [0, 4, 6] -> [0, 4, 6] [4, 8, 2, 3, 6] -> [4, 8, 2, 3, 6] [1, 0, 7, 3, 4, 2, 8, 9, 6, 5] -> [1, 0, 7, 3, 4, 2] [1] -> [1] [6, 4, 2, 1, 0, 7, 3, 5, 9] -> [6, 4, 2, 1, 0, 7] [1, 5, 6, 9, 0, 4, 8, 2, 3] -> [1, 5, 6, 9, 0, 4] [0, 6, 1, 3, 8, 9, 7] -> [0, 6, 1, 3, 8, 9] Questions: [6, 1, 7, 4, 9, 8, 0, 5, 3, 2] -> ? Answer:
[6, 1, 7, 4, 9, 8, 0, 5, 3, 2] -> [6, 1, 7, 4, 9, 8]
[6, 1, 7, 4, 9, 8, 0, 5, 3, 2]
[6, 1, 7, 4, 9, 8]
c230
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the smallest element to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40] -> [40] [6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] [35] -> [35] [6, 13] -> [6, 8, 10, 12] [44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62] [11, 2] -> [2, 4, 6, 8, 10] [63, 63, 75] -> [63, 65, 67, 69, 71, 73, 75] [29] -> [29] Questions: [5, 15, 1, 0] -> ? Answer:
[5, 15, 1, 0] -> [0, 2, 4, 6, 8, 10, 12, 14]
[5, 15, 1, 0]
[0, 2, 4, 6, 8, 10, 12, 14]
c032
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove two elements: the first two if element 1 > last element, else the last two".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0] [8, 6, 7] -> [7] [3, 8, 6, 0] -> [6, 0] [0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7] [0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, 2, 6, 5, 9] [3, 4, 9] -> [3] [6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2] [5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8] Questions: [6, 7, 9, 2, 1, 0, 3] -> ? Answer:
[6, 7, 9, 2, 1, 0, 3] -> [9, 2, 1, 0, 3]
[6, 7, 9, 2, 1, 0, 3]
[9, 2, 1, 0, 3]
c175
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements larger than any preceding element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83] [1, 9, 60, 0, 60, 38] -> [1, 9, 60] [6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67] [0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53] [9, 52, 4, 51, 96, 12] -> [9, 52, 96] [4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85] [7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97] [1, 1, 7, 5, 63, 42] -> [1, 7, 63] Questions: [29, 92, 79, 1, 46, 3, 98, 89, 8, 4] -> ? Answer:
[29, 92, 79, 1, 46, 3, 98, 89, 8, 4] -> [29, 92, 98]
[29, 92, 79, 1, 46, 3, 98, 89, 8, 4]
[29, 92, 98]
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: [6, 0, 3, 5, 9, 7, 4, 1, 2, 8] -> ? Answer:
[6, 0, 3, 5, 9, 7, 4, 1, 2, 8] -> [8, 2, 1, 4, 7, 9, 5, 3, 0, 6]
[6, 0, 3, 5, 9, 7, 4, 1, 2, 8]
[8, 2, 1, 4, 7, 9, 5, 3, 0, 6]
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: [4, 6, 9, 7] -> ? Answer:
[4, 6, 9, 7] -> [9]
[4, 6, 9, 7]
[9]
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, 7, 1, 2, 3, 8, 5, 9] -> ? Answer:
[0, 7, 1, 2, 3, 8, 5, 9] -> [0, 7, 1, 2, 3, 8, 4, 5, 9]
[0, 7, 1, 2, 3, 8, 5, 9]
[0, 7, 1, 2, 3, 8, 4, 5, 9]
c152
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the product of its digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [81, 3] -> [8, 0] [54, 72, 98, 65, 61, 7] -> [20, 14, 72, 30, 6, 0] [48] -> [32] [29, 3, 45] -> [18, 0, 20] [90, 5, 68, 2] -> [0, 0, 48, 0] [28, 25, 5, 6, 73, 0, 13, 33, 7, 4] -> [16, 10, 0, 0, 21, 0, 3, 9, 0, 0] [0, 4, 87, 34, 7, 55, 2, 38, 85] -> [0, 0, 56, 12, 0, 25, 0, 24, 40] [33, 38, 35, 41] -> [9, 24, 15, 4] Questions: [95, 36, 85, 55] -> ? Answer:
[95, 36, 85, 55] -> [45, 18, 40, 25]
[95, 36, 85, 55]
[45, 18, 40, 25]
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: [5, 17, 1, 20, 9] -> ? Answer:
[5, 17, 1, 20, 9] -> [17, 20, 20]
[5, 17, 1, 20, 9]
[17, 20, 20]
c049
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: [5, 8, 4, 2, 3, 0, 6, 7] -> [8, 4, 2, 3, 0, 6, 7] [2, 9, 1, 3, 4, 6, 7, 8, 5] -> [9, 1, 3, 4, 6, 7, 8, 5] [2, 9, 4] -> [9, 4] [9] -> [] [1, 8, 4, 2, 6] -> [8, 4, 2, 6] [7, 1, 8, 3, 2, 4] -> [1, 8, 3, 2, 4] [1, 9] -> [9] [6, 0, 5] -> [0, 5] Questions: [4, 2, 0, 9, 8, 3, 5, 7, 6] -> ? Answer:
[4, 2, 0, 9, 8, 3, 5, 7, 6] -> [2, 0, 9, 8, 3, 5, 7, 6]
[4, 2, 0, 9, 8, 3, 5, 7, 6]
[2, 0, 9, 8, 3, 5, 7, 6]
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: [40, 40, 26, 26, 26, 40, 40, 8, 8] -> ? Answer:
[40, 40, 26, 26, 26, 40, 40, 8, 8] -> [40]
[40, 40, 26, 26, 26, 40, 40, 8, 8]
[40]
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: [0, 3, 59, 7, 89, 74] -> ? Answer:
[0, 3, 59, 7, 89, 74] -> [0, 3, 59, 59, 89, 89]
[0, 3, 59, 7, 89, 74]
[0, 3, 59, 59, 89, 89]
c071
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6] -> [2, 8] [0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3] [2] -> [4] [3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4] [1, 6] -> [3, 8] [1, 2] -> [3, 4] [1] -> [3] [5, 3, 0, 1] -> [7, 5, 2, 3] Questions: [1, 7, 4] -> ? Answer:
[1, 7, 4] -> [3, 9, 6]
[1, 7, 4]
[3, 9, 6]
c050
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 7, 0, 5] -> [4, 4, 7, 0, 5] [1] -> [1, 1] [5, 2] -> [5, 5, 2] [1, 4, 0, 8, 6, 7, 3, 2] -> [1, 1, 4, 0, 8, 6, 7, 3, 2] [5] -> [5, 5] [6, 9, 2, 1, 3] -> [6, 6, 9, 2, 1, 3] [4, 3, 6, 2, 5, 0, 7, 8, 1, 9] -> [4, 4, 3, 6, 2, 5, 0, 7, 8, 1, 9] [2, 4, 1, 3, 8, 0, 9, 7, 5, 6] -> [2, 2, 4, 1, 3, 8, 0, 9, 7, 5, 6] Questions: [6, 9, 1, 4, 7, 0, 2, 5] -> ? Answer:
[6, 9, 1, 4, 7, 0, 2, 5] -> [6, 6, 9, 1, 4, 7, 0, 2, 5]
[6, 9, 1, 4, 7, 0, 2, 5]
[6, 6, 9, 1, 4, 7, 0, 2, 5]
c149
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M * element 1; remove element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 19, 5, 42, 85, 31, 65, 28, 34, 6] -> [0, 0, 0, 0, 0, 0, 0, 0, 0] [3, 5, 4] -> [15, 12] [9, 0] -> [0] [51] -> [] [6, 3] -> [18] [2, 3, 8, 0] -> [6, 16, 0] [7, 9, 3] -> [63, 21] [1, 2, 8, 83, 4, 3, 57] -> [2, 8, 83, 4, 3, 57] Questions: [1, 98, 52, 7, 8] -> ? Answer:
[1, 98, 52, 7, 8] -> [98, 52, 7, 8]
[1, 98, 52, 7, 8]
[98, 52, 7, 8]
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: [1] -> ? Answer:
[1] -> [2]
[1]
[2]
c196
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [17, 38, 82], input, and [1, 55, 27]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [22] -> [17, 38, 82, 22, 1, 55, 27] [2, 0, 73, 50] -> [17, 38, 82, 2, 0, 73, 50, 1, 55, 27] [12, 94, 98] -> [17, 38, 82, 12, 94, 98, 1, 55, 27] [36, 1, 78, 8, 0] -> [17, 38, 82, 36, 1, 78, 8, 0, 1, 55, 27] [35, 4, 0, 64, 1] -> [17, 38, 82, 35, 4, 0, 64, 1, 1, 55, 27] [7] -> [17, 38, 82, 7, 1, 55, 27] [14, 77, 52, 70, 29] -> [17, 38, 82, 14, 77, 52, 70, 29, 1, 55, 27] [61] -> [17, 38, 82, 61, 1, 55, 27] Questions: [71, 96] -> ? Answer:
[71, 96] -> [17, 38, 82, 71, 96, 1, 55, 27]
[71, 96]
[17, 38, 82, 71, 96, 1, 55, 27]
c118
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 N elements, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 0, 6, 2, 3] -> [2, 3, 5, 0, 6] [23, 17, 1, 9, 7, 5, 2] -> [1, 9, 7, 5, 2, 23, 17] [14, 61, 9, 17, 3] -> [17, 3, 14, 61, 9] [64, 4, 1] -> [4, 1, 64] [24, 37, 9, 5, 17, 1] -> [37, 9, 5, 17, 1, 24] [75, 0, 45, 5, 3, 2] -> [45, 5, 3, 2, 75, 0] [8, 9, 1] -> [9, 1, 8] [42, 1, 42, 42, 18, 42, 1] -> [1, 42, 42, 18, 42, 1, 42] Questions: [68, 85, 94, 7, 9, 1, 91, 60, 0, 1] -> ? Answer:
[68, 85, 94, 7, 9, 1, 91, 60, 0, 1] -> [85, 94, 7, 9, 1, 91, 60, 0, 1, 68]
[68, 85, 94, 7, 9, 1, 91, 60, 0, 1]
[85, 94, 7, 9, 1, 91, 60, 0, 1, 68]
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: [79, 70, 29, 75, 8] -> ? Answer:
[79, 70, 29, 75, 8] -> [79, 70, 29, 75]
[79, 70, 29, 75, 8]
[79, 70, 29, 75]
c069
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [9, 3, 4, 0], input, and [7, 2, 9, 1]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 7, 0, 5, 3] -> [9, 3, 4, 0, 4, 2, 7, 0, 5, 3, 7, 2, 9, 1] [4, 0, 6, 5, 8] -> [9, 3, 4, 0, 4, 0, 6, 5, 8, 7, 2, 9, 1] [9, 8] -> [9, 3, 4, 0, 9, 8, 7, 2, 9, 1] [6, 5, 2, 0, 1, 7, 9] -> [9, 3, 4, 0, 6, 5, 2, 0, 1, 7, 9, 7, 2, 9, 1] [5, 0, 8, 3] -> [9, 3, 4, 0, 5, 0, 8, 3, 7, 2, 9, 1] [1, 6, 5] -> [9, 3, 4, 0, 1, 6, 5, 7, 2, 9, 1] [7, 4, 6, 9, 3, 0, 8] -> [9, 3, 4, 0, 7, 4, 6, 9, 3, 0, 8, 7, 2, 9, 1] [2, 8, 6, 7] -> [9, 3, 4, 0, 2, 8, 6, 7, 7, 2, 9, 1] Questions: [3, 5] -> ? Answer:
[3, 5] -> [9, 3, 4, 0, 3, 5, 7, 2, 9, 1]
[3, 5]
[9, 3, 4, 0, 3, 5, 7, 2, 9, 1]
c204
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 followed by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [77, 94, 8, 1, 2, 4, 0] -> [4] [87, 0, 70, 0, 87] -> [87, 70] [4, 0, 0, 9, 61, 44, 67, 9, 18, 41] -> [4, 0] [3, 0, 0] -> [3, 0] [8, 0, 0, 41] -> [8, 0] [1, 1, 1, 0, 0, 0, 0, 0, 1] -> [1, 0, 0, 0, 0] [2, 5, 26, 26, 10, 44, 79, 7, 92] -> [] [5, 78, 0, 0, 0] -> [78, 0, 0] Questions: [66, 0, 25, 0, 25, 0, 0, 3] -> ? Answer:
[66, 0, 25, 0, 25, 0, 0, 3] -> [66, 25, 25, 0]
[66, 0, 25, 0, 25, 0, 0, 3]
[66, 25, 25, 0]
c230
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the smallest element to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40] -> [40] [6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] [35] -> [35] [6, 13] -> [6, 8, 10, 12] [44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62] [11, 2] -> [2, 4, 6, 8, 10] [63, 63, 75] -> [63, 65, 67, 69, 71, 73, 75] [29] -> [29] Questions: [2, 1, 6] -> ? Answer:
[2, 1, 6] -> [1, 3, 5]
[2, 1, 6]
[1, 3, 5]
c240
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of elements equal to the input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 61, 9, 55, 87, 10, 90, 1, 39] -> [2] [24, 7, 85, 79, 7, 79, 9] -> [2] [93, 93, 93, 9, 93, 93, 9, 9, 33] -> [3] [2, 2] -> [2] [72, 8, 72, 6, 6, 70, 28, 8] -> [2] [52, 2, 14, 37, 92, 1, 96, 29] -> [0] [2, 9, 4, 9, 9, 9, 9, 4, 4] -> [5] [2, 1, 9, 2, 9, 13, 93, 93, 45] -> [2] Questions: [8, 33, 8, 2, 2, 6, 9, 33] -> ? Answer:
[8, 33, 8, 2, 2, 6, 9, 33] -> [2]
[8, 33, 8, 2, 2, 6, 9, 33]
[2]
c094
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [27, 4, 70, 28, 91, 82, 80, 7, 0] -> [70, 28, 27, 4, 91, 82, 80, 7, 0] [37, 5, 34, 45, 63, 25] -> [34, 45, 37, 5, 63, 25] [34, 8, 5, 0, 86, 52, 53, 33, 4, 1] -> [5, 0, 34, 8, 86, 52, 53, 33, 4, 1] [22, 2, 27, 48] -> [27, 48, 22, 2] [6, 59, 5] -> [5, 6, 59] [18, 6, 8, 54, 2, 38, 91] -> [8, 54, 18, 6, 2, 38, 91] [5, 73, 6, 2, 89, 87, 30, 85, 64, 1] -> [6, 2, 5, 73, 89, 87, 30, 85, 64, 1] [8, 26, 9, 31, 4, 13, 7, 50] -> [9, 31, 8, 26, 4, 13, 7, 50] Questions: [7, 38, 8, 5, 61, 3, 1, 95, 32] -> ? Answer:
[7, 38, 8, 5, 61, 3, 1, 95, 32] -> [8, 5, 7, 38, 61, 3, 1, 95, 32]
[7, 38, 8, 5, 61, 3, 1, 95, 32]
[8, 5, 7, 38, 61, 3, 1, 95, 32]
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: [6, 7, 3, 95, 5, 92, 37, 8, 2] -> ? Answer:
[6, 7, 3, 95, 5, 92, 37, 8, 2] -> [6, 7, 3, 95, 5, 2, 92, 37, 8, 2]
[6, 7, 3, 95, 5, 92, 37, 8, 2]
[6, 7, 3, 95, 5, 2, 92, 37, 8, 2]
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: [1, 1, 54, 54] -> ? Answer:
[1, 1, 54, 54] -> []
[1, 1, 54, 54]
[]
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: [5, 97, 52, 84, 6, 8, 2, 97, 56, 3] -> ? Answer:
[5, 97, 52, 84, 6, 8, 2, 97, 56, 3] -> [5, 2, 52, 84, 6, 8, 2, 2, 56, 3]
[5, 97, 52, 84, 6, 8, 2, 97, 56, 3]
[5, 2, 52, 84, 6, 8, 2, 2, 56, 3]
c208
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only the last N elements, where N is the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 33, 8, 97, 71, 74, 90, 3] -> [74, 90, 3] [6, 37, 19, 13, 4, 9, 19, 2] -> [19, 2] [6, 25, 2, 35, 8, 4, 0, 83, 63, 5] -> [4, 0, 83, 63, 5] [43, 3, 4, 3, 6, 8, 60, 90, 7] -> [4, 3, 6, 8, 60, 90, 7] [36, 2, 74, 5, 64, 31, 8, 18, 7] -> [74, 5, 64, 31, 8, 18, 7] [33, 2, 69, 24, 24, 38, 5, 4] -> [24, 38, 5, 4] [11, 75, 4, 7, 8, 10, 5, 6] -> [4, 7, 8, 10, 5, 6] [7, 0, 8, 12, 3, 2, 2] -> [2, 2] Questions: [2, 9, 1, 5, 1, 94, 32, 94, 0, 2] -> ? Answer:
[2, 9, 1, 5, 1, 94, 32, 94, 0, 2] -> [0, 2]
[2, 9, 1, 5, 1, 94, 32, 94, 0, 2]
[0, 2]
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: [36, 9, 74, 8, 47] -> ? Answer:
[36, 9, 74, 8, 47] -> [36, 47, 9, 8, 74, 74, 8, 9, 47, 36]
[36, 9, 74, 8, 47]
[36, 47, 9, 8, 74, 74, 8, 9, 47, 36]
c154
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3] [3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9] [91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91] [63, 7, 1, 2, 77, 57, 0, 5] -> [63, 7, 1, 6, 77, 57, 0, 5] [10, 93, 22, 10, 5, 10] -> [30, 93, 66, 30, 5, 30] [33, 2, 0, 21, 6, 28, 3, 8, 4] -> [33, 6, 0, 21, 18, 84, 3, 24, 12] [77, 8, 1, 77, 3, 9, 7, 4] -> [77, 24, 1, 77, 3, 9, 7, 12] [6, 9, 43, 7, 65, 7] -> [18, 9, 43, 7, 65, 7] Questions: [8, 7, 12, 12, 8, 25, 6] -> ? Answer:
[8, 7, 12, 12, 8, 25, 6] -> [24, 7, 36, 36, 24, 25, 18]
[8, 7, 12, 12, 8, 25, 6]
[24, 7, 36, 36, 24, 25, 18]
c183
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of elements 2 and following equal to element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9] [2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8] [2, 2, 2, 2, 2] -> [1, 2, 3, 4] [3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4] [5, 5, 2, 5, 2, 6, 2, 5, 5] -> [1, 3, 7, 8] [10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5] [85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4] [2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5] Questions: [10, 10, 10, 2, 6, 2, 10, 9, 5] -> ? Answer:
[10, 10, 10, 2, 6, 2, 10, 9, 5] -> [1, 2, 6]
[10, 10, 10, 2, 6, 2, 10, 9, 5]
[1, 2, 6]
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: [0, 9, 3, 7, 1, 8, 2, 4, 5, 6] -> ? Answer:
[0, 9, 3, 7, 1, 8, 2, 4, 5, 6] -> [3, 7, 1, 8, 2, 4, 5, 6]
[0, 9, 3, 7, 1, 8, 2, 4, 5, 6]
[3, 7, 1, 8, 2, 4, 5, 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: [9, 6, 6, 9, 6, 9, 6, 9] -> ? Answer:
[9, 6, 6, 9, 6, 9, 6, 9] -> [9, 15, 21, 30, 36, 45, 51, 60]
[9, 6, 6, 9, 6, 9, 6, 9]
[9, 15, 21, 30, 36, 45, 51, 60]
c202
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the indices of every even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [79, 74, 7, 82, 61, 9, 80, 22] -> [2, 4, 7, 8] [11, 2, 24, 52, 6, 51, 4] -> [2, 3, 4, 5, 7] [3, 99, 1, 28, 8, 2] -> [4, 5, 6] [80, 23, 89, 36, 5, 4, 3, 18, 8] -> [1, 4, 6, 8, 9] [18, 7, 50, 5, 64, 62, 1, 4] -> [1, 3, 5, 6, 8] [7, 74, 4] -> [2, 3] [94, 66, 3, 6, 30, 29, 61, 77, 9, 13] -> [1, 2, 4, 5] [11, 86, 45, 3, 9, 27, 6, 8] -> [2, 7, 8] Questions: [52, 1, 5, 87, 0, 31, 96] -> ? Answer:
[52, 1, 5, 87, 0, 31, 96] -> [1, 5, 7]
[52, 1, 5, 87, 0, 31, 96]
[1, 5, 7]
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, 9, 9, 6, 8] -> ? Answer:
[8, 9, 9, 6, 8] -> [0, 0, 0, 0, 0, 1, 0, 2, 2]
[8, 9, 9, 6, 8]
[0, 0, 0, 0, 0, 1, 0, 2, 2]
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: [13, 85, 5, 18, 4, 2, 99, 0, 47] -> ? Answer:
[13, 85, 5, 18, 4, 2, 99, 0, 47] -> [47]
[13, 85, 5, 18, 4, 2, 99, 0, 47]
[47]
c046
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 0, 4, 1, 6, 8, 9] -> [7, 5, 0, 4, 1, 6, 8, 9] [2, 6, 9, 8] -> [7, 2, 6, 9, 8] [0, 6, 2, 4, 8, 1, 9] -> [7, 0, 6, 2, 4, 8, 1, 9] [1, 8, 2, 4, 9, 0, 3] -> [7, 1, 8, 2, 4, 9, 0, 3] [1, 9, 2, 0, 6, 4, 8, 5, 3] -> [7, 1, 9, 2, 0, 6, 4, 8, 5, 3] [7, 4, 1, 5, 6, 9, 8, 0, 2, 3] -> [7, 7, 4, 1, 5, 6, 9, 8, 0, 2, 3] [0, 8, 1, 3, 7, 6, 5, 9, 2] -> [7, 0, 8, 1, 3, 7, 6, 5, 9, 2] [5, 3, 2, 6, 0, 4, 8, 7] -> [7, 5, 3, 2, 6, 0, 4, 8, 7] Questions: [2, 8, 4] -> ? Answer:
[2, 8, 4] -> [7, 2, 8, 4]
[2, 8, 4]
[7, 2, 8, 4]
c036
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1] [9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0] [7, 2, 0, 7] -> [7, 0, 2, 7] [4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1] [0, 7, 5, 2, 1, 8, 6, 9] -> [0, 5, 7, 2, 1, 8, 6, 9] [6, 7, 8, 1, 0, 2, 4] -> [1, 7, 8, 6, 0, 2, 4] [1, 7, 4, 5, 8, 9] -> [1, 4, 7, 5, 8, 9] [1, 1, 0, 7, 6] -> [1, 0, 1, 7, 6] Questions: [1, 6, 0, 8, 3, 5] -> ? Answer:
[1, 6, 0, 8, 3, 5] -> [1, 0, 6, 8, 3, 5]
[1, 6, 0, 8, 3, 5]
[1, 0, 6, 8, 3, 5]
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: [63, 9, 75, 13, 25, 19, 6] -> ? Answer:
[63, 9, 75, 13, 25, 19, 6] -> [63, 19, 9, 6, 13, 25, 75]
[63, 9, 75, 13, 25, 19, 6]
[63, 19, 9, 6, 13, 25, 75]
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: [39, 39, 72, 62, 76, 43, 43, 51, 5, 9] -> ? Answer:
[39, 39, 72, 62, 76, 43, 43, 51, 5, 9] -> [39]
[39, 39, 72, 62, 76, 43, 43, 51, 5, 9]
[39]
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, 12, 0, 93] -> ? Answer:
[56, 12, 0, 93] -> [0, 12, 56, 93]
[56, 12, 0, 93]
[0, 12, 56, 93]
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, 4, 3, 4, 8, 15] -> ? Answer:
[8, 4, 3, 4, 8, 15] -> [8, 12, 15, 19, 27, 42]
[8, 4, 3, 4, 8, 15]
[8, 12, 15, 19, 27, 42]
c131
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit is even".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [80, 0, 97, 50, 3, 6] -> [80, 0, 3, 6] [9, 7, 75, 26, 3, 8, 82, 0, 94] -> [9, 7, 26, 3, 8, 82, 0] [36, 7] -> [7] [7, 66, 0, 6, 42, 9, 52, 80, 23, 81] -> [7, 66, 0, 6, 42, 9, 80, 23, 81] [0, 69, 9, 10, 1, 72, 6, 37] -> [0, 69, 9, 1, 6] [55, 88, 39, 1, 95, 85, 6] -> [88, 1, 85, 6] [53, 74, 15, 74, 53, 0, 15, 53, 53] -> [0] [4, 69, 7, 50] -> [4, 69, 7] Questions: [36, 8, 83, 32] -> ? Answer:
[36, 8, 83, 32] -> [8, 83]
[36, 8, 83, 32]
[8, 83]
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: [28, 33, 7, 9, 99, 74, 8, 66, 97, 16] -> ? Answer:
[28, 33, 7, 9, 99, 74, 8, 66, 97, 16] -> [33, 99, 74, 66, 97]
[28, 33, 7, 9, 99, 74, 8, 66, 97, 16]
[33, 99, 74, 66, 97]
c140
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 a 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58] [36, 90] -> [36, 9] [16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81] [67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26] [35, 51, 6] -> [35, 9, 6] [9, 1] -> [9, 9] [1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79] [49, 55, 78, 3] -> [49, 9, 78, 3] Questions: [8, 7, 94, 39, 13, 78, 10] -> ? Answer:
[8, 7, 94, 39, 13, 78, 10] -> [8, 9, 94, 39, 13, 78, 10]
[8, 7, 94, 39, 13, 78, 10]
[8, 9, 94, 39, 13, 78, 10]
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: [9, 34, 94, 92, 31, 2] -> ? Answer:
[9, 34, 94, 92, 31, 2] -> [34, 94, 92, 31]
[9, 34, 94, 92, 31, 2]
[34, 94, 92, 31]
c164
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M / 4 + 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 13, 9, 2, 6, 63, 0, 3, 15, 7] -> [7, 8, 7, 5, 6, 20, 5, 5, 8, 6] [27] -> [11] [0, 16, 98, 4, 46, 52, 40, 2] -> [5, 9, 29, 6, 16, 18, 15, 5] [12, 28, 22, 1, 5, 4] -> [8, 12, 10, 5, 6, 6] [26] -> [11] [1, 34, 93, 9, 5, 6, 2, 3, 99, 92] -> [5, 13, 28, 7, 6, 6, 5, 5, 29, 28] [7, 3, 87, 0, 34, 66, 97, 64, 9] -> [6, 5, 26, 5, 13, 21, 29, 21, 7] [23, 7, 8, 97, 15, 55, 0, 49, 92] -> [10, 6, 7, 29, 8, 18, 5, 17, 28] Questions: [8, 94, 93, 3, 31, 47] -> ? Answer:
[8, 94, 93, 3, 31, 47] -> [7, 28, 28, 5, 12, 16]
[8, 94, 93, 3, 31, 47]
[7, 28, 28, 5, 12, 16]
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: [33, 90, 84, 30, 8, 94, 2, 42, 85, 3] -> ? Answer:
[33, 90, 84, 30, 8, 94, 2, 42, 85, 3] -> [33, 3]
[33, 90, 84, 30, 8, 94, 2, 42, 85, 3]
[33, 3]
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: [8, 2, 36, 84, 84, 45, 6] -> ? Answer:
[8, 2, 36, 84, 84, 45, 6] -> [84, 36, 6, 2, 8, 45, 84]
[8, 2, 36, 84, 84, 45, 6]
[84, 36, 6, 2, 8, 45, 84]
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: [9, 51, 93, 3, 62, 1, 73] -> ? Answer:
[9, 51, 93, 3, 62, 1, 73] -> [73, 51, 3, 1, 9, 62, 93]
[9, 51, 93, 3, 62, 1, 73]
[73, 51, 3, 1, 9, 62, 93]
c172
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative product of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6] -> [6] [0, 13, 6, 70, 7, 12, 13, 7] -> [0, 0, 0, 0, 0, 0, 0, 0] [1, 1, 82] -> [1, 1, 82] [3, 4, 8] -> [3, 12, 96] [3, 3, 1, 1] -> [3, 9, 9, 9] [3, 0, 42, 33, 5, 98, 62, 2, 41, 77] -> [3, 0, 0, 0, 0, 0, 0, 0, 0, 0] [1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1] [0, 9, 5, 3, 8, 8] -> [0, 0, 0, 0, 0, 0] Questions: [2, 2, 2] -> ? Answer:
[2, 2, 2] -> [2, 4, 8]
[2, 2, 2]
[2, 4, 8]
c202
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the indices of every even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [79, 74, 7, 82, 61, 9, 80, 22] -> [2, 4, 7, 8] [11, 2, 24, 52, 6, 51, 4] -> [2, 3, 4, 5, 7] [3, 99, 1, 28, 8, 2] -> [4, 5, 6] [80, 23, 89, 36, 5, 4, 3, 18, 8] -> [1, 4, 6, 8, 9] [18, 7, 50, 5, 64, 62, 1, 4] -> [1, 3, 5, 6, 8] [7, 74, 4] -> [2, 3] [94, 66, 3, 6, 30, 29, 61, 77, 9, 13] -> [1, 2, 4, 5] [11, 86, 45, 3, 9, 27, 6, 8] -> [2, 7, 8] Questions: [0, 91, 59, 92] -> ? Answer:
[0, 91, 59, 92] -> [1, 4]
[0, 91, 59, 92]
[1, 4]
c202
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the indices of every even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [79, 74, 7, 82, 61, 9, 80, 22] -> [2, 4, 7, 8] [11, 2, 24, 52, 6, 51, 4] -> [2, 3, 4, 5, 7] [3, 99, 1, 28, 8, 2] -> [4, 5, 6] [80, 23, 89, 36, 5, 4, 3, 18, 8] -> [1, 4, 6, 8, 9] [18, 7, 50, 5, 64, 62, 1, 4] -> [1, 3, 5, 6, 8] [7, 74, 4] -> [2, 3] [94, 66, 3, 6, 30, 29, 61, 77, 9, 13] -> [1, 2, 4, 5] [11, 86, 45, 3, 9, 27, 6, 8] -> [2, 7, 8] Questions: [88, 40] -> ? Answer:
[88, 40] -> [1, 2]
[88, 40]
[1, 2]
c195
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98] [9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7] [14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54] [9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5] [4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81] [85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47] [50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74] [24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80] Questions: [3, 6, 4, 75, 84] -> ? Answer:
[3, 6, 4, 75, 84] -> [3, 23, 68, 42, 99, 71, 84]
[3, 6, 4, 75, 84]
[3, 23, 68, 42, 99, 71, 84]
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: [9, 21, 21] -> ? Answer:
[9, 21, 21] -> [9, 11, 13, 15, 17, 19, 21]
[9, 21, 21]
[9, 11, 13, 15, 17, 19, 21]
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: [24, 48, 3, 4, 37, 95, 27] -> ? Answer:
[24, 48, 3, 4, 37, 95, 27] -> [24, 24, 24, 24, 24, 24, 24, 24, 24, 24]
[24, 48, 3, 4, 37, 95, 27]
[24, 24, 24, 24, 24, 24, 24, 24, 24, 24]
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, 8, 1, 4] -> ? Answer:
[9, 8, 1, 4] -> [9, 5, 8, 1, 4]
[9, 8, 1, 4]
[9, 5, 8, 1, 4]
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: [0, 2, 76, 4, 5, 19, 80, 1, 82] -> ? Answer:
[0, 2, 76, 4, 5, 19, 80, 1, 82] -> [0, 2, 76, 76, 76, 76, 80, 80, 82]
[0, 2, 76, 4, 5, 19, 80, 1, 82]
[0, 2, 76, 76, 76, 76, 80, 80, 82]
c124
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element M, M = element N, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 0] -> [1] [8, 24, 5, 24, 0, 82, 5, 4, 2] -> [24] [1, 1, 1, 1, 1, 1, 1, 1] -> [1] [2, 8, 2, 65, 7, 7, 9, 11, 2] -> [11] [7, 2, 7, 7, 3, 2, 3, 3, 63, 2] -> [7] [2, 5, 4, 55, 81, 0] -> [81] [1, 4, 49, 3, 2, 0, 4] -> [1] [6, 6, 6, 17, 29, 4, 6, 32, 32] -> [17] Questions: [2, 3, 3, 16, 1, 75] -> ? Answer:
[2, 3, 3, 16, 1, 75] -> [3]
[2, 3, 3, 16, 1, 75]
[3]
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: [7, 7, 5, 2, 5, 5] -> ? Answer:
[7, 7, 5, 2, 5, 5] -> [7, 12, 14]
[7, 7, 5, 2, 5, 5]
[7, 12, 14]
c088
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: [7, 9, 9, 4, 67, 67, 2] -> [4, 9, 9, 7, 67, 67, 2] [6, 6, 38, 6, 12, 2, 2, 21, 13, 6] -> [6, 38, 6, 6, 12, 2, 2, 21, 13, 6] [1, 6, 4, 1, 26, 48, 0] -> [1, 4, 6, 1, 26, 48, 0] [67, 87, 9, 67, 87] -> [67, 9, 87, 67, 87] [97, 90, 8, 97] -> [97, 8, 90, 97] [11, 1, 1, 24] -> [24, 1, 1, 11] [25, 84, 60, 25, 0, 60, 77, 5] -> [25, 60, 84, 25, 0, 60, 77, 5] [26, 27, 27, 0, 26, 27, 26, 0] -> [0, 27, 27, 26, 26, 27, 26, 0] Questions: [74, 4, 42, 74, 42, 7] -> ? Answer:
[74, 4, 42, 74, 42, 7] -> [74, 42, 4, 74, 42, 7]
[74, 4, 42, 74, 42, 7]
[74, 42, 4, 74, 42, 7]
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: [3] -> ? Answer:
[3] -> [4]
[3]
[4]
c082
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13] [91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15] [9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13] [0, 76, 8, 52, 68] -> [8] [38] -> [] [1] -> [] [79, 66, 1] -> [1] [] -> [] Questions: [17, 68, 44, 61] -> ? Answer:
[17, 68, 44, 61] -> [44]
[17, 68, 44, 61]
[44]
c004
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: [2, 6, 5, 9, 7, 1, 8, 3, 4] -> [8] [0, 4, 7, 3, 2, 9, 1, 8, 5, 6] -> [1] [9, 3, 2, 8] -> [] [0, 4, 5, 2, 8, 7, 1, 6] -> [1] [6] -> [] [0, 3, 5, 8, 2] -> [] [6, 8] -> [] [4, 7, 6] -> [] Questions: [7, 6, 1, 0, 8, 4, 9, 3] -> ? Answer:
[7, 6, 1, 0, 8, 4, 9, 3] -> [9]
[7, 6, 1, 0, 8, 4, 9, 3]
[9]
c062
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 7, 2, 9, 0, 6] -> [8, 5, 7, 2, 9, 0] [9, 2, 8, 1, 4, 5, 3] -> [9, 2, 8, 1, 4, 5] [7, 9, 0, 1, 5, 4, 6, 8, 3, 2] -> [7, 9, 0, 1, 5, 4, 6, 8, 3] [6, 8, 3, 9, 7] -> [6, 8, 3, 9] [6, 4, 2, 3, 0] -> [6, 4, 2, 3] [6, 0, 7, 9, 3, 8] -> [6, 0, 7, 9, 3] [2, 7, 1] -> [2, 7] [9, 3, 6] -> [9, 3] Questions: [7, 1, 4, 0, 5, 3] -> ? Answer:
[7, 1, 4, 0, 5, 3] -> [7, 1, 4, 0, 5]
[7, 1, 4, 0, 5, 3]
[7, 1, 4, 0, 5]
c235
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count up and down between elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 5] -> [5, 4, 3, 2, 1, 2, 3, 4, 5] [0, 1] -> [0, 1] [51, 51, 51, 47] -> [51, 50, 49, 48, 47] [63, 67, 63] -> [63, 64, 65, 66, 67, 66, 65, 64, 63] [3, 1, 0, 1] -> [3, 2, 1, 0, 1] [6, 9, 8, 1] -> [6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1] [5, 4, 5] -> [5, 4, 5] [3, 4, 8, 9] -> [3, 4, 5, 6, 7, 8, 9] Questions: [2, 2, 1, 2, 2, 1, 1] -> ? Answer:
[2, 2, 1, 2, 2, 1, 1] -> [2, 1, 2, 1]
[2, 2, 1, 2, 2, 1, 1]
[2, 1, 2, 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: [5, 8, 2, 0, 6, 3, 9, 1, 7, 4] -> ? Answer:
[5, 8, 2, 0, 6, 3, 9, 1, 7, 4] -> [1, 7, 4]
[5, 8, 2, 0, 6, 3, 9, 1, 7, 4]
[1, 7, 4]
c018
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 6 with a 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 5, 3, 8, 7] -> [6, 5, 3, 8, 7] [5, 0, 2, 4, 3, 8, 9] -> [5, 0, 2, 4, 3, 3, 9] [1, 8, 2, 4, 3, 9] -> [1, 8, 2, 4, 3, 3] [1, 8, 5, 2, 9, 6, 4, 7] -> [1, 8, 5, 2, 9, 3, 4, 7] [1, 3, 5, 6, 2, 4, 0, 7, 9] -> [1, 3, 5, 6, 2, 3, 0, 7, 9] [0, 9, 7, 6, 1, 5] -> [0, 9, 7, 6, 1, 3] [6] -> [6] [2, 3, 0, 7, 1, 6, 4, 8] -> [2, 3, 0, 7, 1, 3, 4, 8] Questions: [0, 6] -> ? Answer:
[0, 6] -> [0, 6]
[0, 6]
[0, 6]
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: [1, 21, 9, 66, 8, 3, 91] -> ? Answer:
[1, 21, 9, 66, 8, 3, 91] -> [3, 9, 66, 91, 21, 8, 1]
[1, 21, 9, 66, 8, 3, 91]
[3, 9, 66, 91, 21, 8, 1]
c062
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 7, 2, 9, 0, 6] -> [8, 5, 7, 2, 9, 0] [9, 2, 8, 1, 4, 5, 3] -> [9, 2, 8, 1, 4, 5] [7, 9, 0, 1, 5, 4, 6, 8, 3, 2] -> [7, 9, 0, 1, 5, 4, 6, 8, 3] [6, 8, 3, 9, 7] -> [6, 8, 3, 9] [6, 4, 2, 3, 0] -> [6, 4, 2, 3] [6, 0, 7, 9, 3, 8] -> [6, 0, 7, 9, 3] [2, 7, 1] -> [2, 7] [9, 3, 6] -> [9, 3] Questions: [0, 9, 2, 4, 6] -> ? Answer:
[0, 9, 2, 4, 6] -> [0, 9, 2, 4]
[0, 9, 2, 4, 6]
[0, 9, 2, 4]
c132
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 4, 44, 78] -> [1, 4, 78] [7, 34, 4, 59, 45] -> [7, 34, 59, 45] [6, 78, 9, 56, 10, 7, 8] -> [6, 78, 56, 10, 7, 8] [64, 31, 6, 28, 46] -> [64, 31, 28, 46] [42, 21, 31, 2, 7, 3, 1, 9] -> [42, 21, 2, 7, 3, 1, 9] [31, 9, 3, 72] -> [31, 9, 72] [8, 93, 1, 7, 81, 0] -> [8, 93, 7, 81, 0] [44, 0, 91, 3, 50, 86] -> [44, 0, 3, 50, 86] Questions: [63, 98, 0, 7, 69] -> ? Answer:
[63, 98, 0, 7, 69] -> [63, 98, 7, 69]
[63, 98, 0, 7, 69]
[63, 98, 7, 69]
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: [8, 0, 3] -> ? Answer:
[8, 0, 3] -> [3, 0, 8]
[8, 0, 3]
[3, 0, 8]
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: [3, 7, 5, 4, 1, 9] -> ? Answer:
[3, 7, 5, 4, 1, 9] -> [9]
[3, 7, 5, 4, 1, 9]
[9]
c055
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6] [4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0] [3, 8, 0, 7] -> [0, 7, 3, 8] [3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4] [0, 3, 7, 1, 5, 8, 9, 6, 4, 2] -> [7, 1, 0, 3, 5, 8, 9, 6, 4, 2] [7, 1, 8, 0, 3, 4, 9] -> [8, 0, 7, 1, 3, 4, 9] [9, 4] -> [9, 4] [9, 6, 8, 7, 5, 0, 1, 4] -> [8, 7, 9, 6, 5, 0, 1, 4] Questions: [] -> ? Answer:
[] -> []
[]
[]
c032
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove two elements: the first two if element 1 > last element, else the last two".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0] [8, 6, 7] -> [7] [3, 8, 6, 0] -> [6, 0] [0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7] [0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, 2, 6, 5, 9] [3, 4, 9] -> [3] [6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2] [5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8] Questions: [8, 2, 9, 1, 4, 6, 5, 0, 7] -> ? Answer:
[8, 2, 9, 1, 4, 6, 5, 0, 7] -> [9, 1, 4, 6, 5, 0, 7]
[8, 2, 9, 1, 4, 6, 5, 0, 7]
[9, 1, 4, 6, 5, 0, 7]
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: [4, 5, 7, 3, 0] -> ? Answer:
[4, 5, 7, 3, 0] -> [4, 8, 7, 3, 0]
[4, 5, 7, 3, 0]
[4, 8, 7, 3, 0]
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: [13, 8, 1] -> ? Answer:
[13, 8, 1] -> [13, 8, 1]
[13, 8, 1]
[13, 8, 1]
c028
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 2 if element 1 > element 2, else remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 7, 3, 8, 3, 8] -> [4, 7, 8, 3, 8] [1, 0, 9, 8, 2, 7, 3, 6, 5, 4] -> [1, 9, 8, 2, 7, 3, 6, 5, 4] [8, 7, 9, 1, 4, 5, 5, 5, 3, 2] -> [8, 9, 1, 4, 5, 5, 5, 3, 2] [7, 0, 8] -> [7, 8] [4, 5, 1, 5, 4, 1, 4, 5] -> [4, 5, 5, 4, 1, 4, 5] [2, 9, 1, 5, 0, 3, 7, 8, 6, 4] -> [2, 9, 5, 0, 3, 7, 8, 6, 4] [3, 2, 9] -> [3, 9] [7, 9, 4, 2, 0, 5, 8] -> [7, 9, 2, 0, 5, 8] Questions: [4, 5, 0, 5, 3, 1, 6, 9] -> ? Answer:
[4, 5, 0, 5, 3, 1, 6, 9] -> [4, 5, 5, 3, 1, 6, 9]
[4, 5, 0, 5, 3, 1, 6, 9]
[4, 5, 5, 3, 1, 6, 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: [2, 2, 4, 2, 7, 0] -> ? Answer:
[2, 2, 4, 2, 7, 0] -> [2, 4, 8, 10, 17, 17]
[2, 2, 4, 2, 7, 0]
[2, 4, 8, 10, 17, 17]
c053
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 element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 7, 9, 8, 6, 4, 2, 3, 5, 1] -> [0, 0, 9, 8, 6, 4, 2, 3, 5, 1] [7, 8, 6] -> [7, 7, 6] [0, 7, 4, 9] -> [0, 0, 4, 9] [8, 7] -> [8, 8] [2, 7, 0, 3, 9, 4, 6, 5] -> [2, 2, 0, 3, 9, 4, 6, 5] [8] -> [8, 8] [8, 5, 7, 4] -> [8, 8, 7, 4] [9, 6, 3] -> [9, 9, 3] Questions: [2, 3] -> ? Answer:
[2, 3] -> [2, 2]
[2, 3]
[2, 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: [3, 1, 3, 3, 1, 1] -> ? Answer:
[3, 1, 3, 3, 1, 1] -> [3, 4]
[3, 1, 3, 3, 1, 1]
[3, 4]
c151
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, M, M times, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 6, 2] -> [2, 2, 6, 6, 6, 6, 6, 6, 2, 2] [4, 4, 4] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4] [2, 2, 2, 2, 2] -> [2, 2, 2, 2, 2, 2, 2, 2, 2, 2] [4, 0, 4, 4, 0] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4] [3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] [1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1] [2, 5, 3, 5] -> [2, 2, 5, 5, 5, 5, 5, 3, 3, 3, 5, 5, 5, 5, 5] [0, 0, 0, 0, 0] -> [] Questions: [4] -> ? Answer:
[4] -> [4, 4, 4, 4]
[4]
[4, 4, 4, 4]
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: [33, 55, 87, 6, 98, 23, 10, 56, 58] -> ? Answer:
[33, 55, 87, 6, 98, 23, 10, 56, 58] -> [33, 23, 10, 56, 58]
[33, 55, 87, 6, 98, 23, 10, 56, 58]
[33, 23, 10, 56, 58]
c192
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with its tens digit".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [58, 5, 53, 1] -> [5, 0, 5, 0] [5, 18, 73, 61, 74, 69] -> [0, 1, 7, 6, 7, 6] [5, 4, 19, 74, 2, 7, 32, 31, 8] -> [0, 0, 1, 7, 0, 0, 3, 3, 0] [96, 50, 98, 92, 70] -> [9, 5, 9, 9, 7] [66, 85, 7, 68, 29, 97, 65, 20] -> [6, 8, 0, 6, 2, 9, 6, 2] [56, 62] -> [5, 6] [3, 36, 67, 6, 40, 72, 95] -> [0, 3, 6, 0, 4, 7, 9] [42] -> [4] Questions: [25, 22, 66, 37, 4, 1, 6] -> ? Answer:
[25, 22, 66, 37, 4, 1, 6] -> [2, 2, 6, 3, 0, 0, 0]
[25, 22, 66, 37, 4, 1, 6]
[2, 2, 6, 3, 0, 0, 0]
c172
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative product of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6] -> [6] [0, 13, 6, 70, 7, 12, 13, 7] -> [0, 0, 0, 0, 0, 0, 0, 0] [1, 1, 82] -> [1, 1, 82] [3, 4, 8] -> [3, 12, 96] [3, 3, 1, 1] -> [3, 9, 9, 9] [3, 0, 42, 33, 5, 98, 62, 2, 41, 77] -> [3, 0, 0, 0, 0, 0, 0, 0, 0, 0] [1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1] [0, 9, 5, 3, 8, 8] -> [0, 0, 0, 0, 0, 0] Questions: [1, 7, 1, 1, 7] -> ? Answer:
[1, 7, 1, 1, 7] -> [1, 7, 7, 7, 49]
[1, 7, 1, 1, 7]
[1, 7, 7, 7, 49]
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: [5, 4] -> ? Answer:
[5, 4] -> [6, 6]
[5, 4]
[6, 6]
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: [29, 29, 27, 47, 48, 0, 24] -> ? Answer:
[29, 29, 27, 47, 48, 0, 24] -> [1, 1, 1, 1, 1, 2]
[29, 29, 27, 47, 48, 0, 24]
[1, 1, 1, 1, 1, 2]