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
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: [3, 0, 4, 9, 8, 1, 7] -> ? Answer:
[3, 0, 4, 9, 8, 1, 7] -> [4, 9, 8, 1, 7]
[3, 0, 4, 9, 8, 1, 7]
[4, 9, 8, 1, 7]
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: [34, 5, 3, 0, 14, 9, 15, 42, 4] -> ? Answer:
[34, 5, 3, 0, 14, 9, 15, 42, 4] -> [0]
[34, 5, 3, 0, 14, 9, 15, 42, 4]
[0]
c034
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 6, 8, 9, 2] -> [1, 8, 6, 9, 2] [1, 4, 3, 8, 5, 0, 2] -> [1, 3, 4, 8, 5, 0, 2] [9, 0, 3, 1, 7, 2, 6, 5] -> [9, 3, 0, 1, 7, 2, 6, 5] [0, 8, 5, 4, 3, 2, 7] -> [0, 5, 8, 4, 3, 2, 7] [7, 6, 2, 5, 0, 9, 1, 8, 3] -> [7, 2, 6, 5, 0, 9, 1, 8, 3] [9, 4, 0, 5] -> [9, 0, 4, 5] [2, 4, 6, 1, 7, 9] -> [2, 6, 4, 1, 7, 9] [0, 6, 4, 7, 1] -> [0, 4, 6, 7, 1] Questions: [8, 2, 5, 1, 3] -> ? Answer:
[8, 2, 5, 1, 3] -> [8, 5, 2, 1, 3]
[8, 2, 5, 1, 3]
[8, 5, 2, 1, 3]
c057
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert a 4 as element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 2, 1, 3] -> [6, 2, 1, 3, 4] [] -> [4] [8, 6, 2] -> [8, 6, 2, 4] [2, 5] -> [2, 5, 4] [3, 9, 4, 5, 8, 0, 2, 7, 1] -> [3, 9, 4, 5, 8, 0, 4, 2, 7, 1] [1, 8, 5, 6, 7] -> [1, 8, 5, 6, 7, 4] [0] -> [0, 4] [8, 0, 9, 3] -> [8, 0, 9, 3, 4] Questions: [1, 9] -> ? Answer:
[1, 9] -> [1, 9, 4]
[1, 9]
[1, 9, 4]
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] -> ? Answer:
[4] -> []
[4]
[]
c222
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 60, 78, 91] -> [4, 4, 4, 4] [96, 30, 0, 2, 6, 17] -> [6, 6, 6, 6, 6, 6] [89, 98, 99] -> [3, 3, 3] [4, 52, 90, 88, 7, 97, 14] -> [7, 7, 7, 7, 7, 7, 7] [25, 64, 79] -> [3, 3, 3] [41, 89, 5] -> [3, 3, 3] [71, 65, 3, 43, 44, 4] -> [6, 6, 6, 6, 6, 6] [80, 37, 78, 6, 66, 29, 89, 0, 79] -> [9, 9, 9, 9, 9, 9, 9, 9, 9] Questions: [47, 93, 36, 24, 82, 10, 8, 48, 55, 92] -> ? Answer:
[47, 93, 36, 24, 82, 10, 8, 48, 55, 92] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
[47, 93, 36, 24, 82, 10, 8, 48, 55, 92]
[10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
c039
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list length is 3, else append 9 if the list length is 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 2, 7, 0, 5, 1, 6, 4, 8] -> [9, 2, 7, 0, 5, 1, 6, 4, 8, 9] [2, 0, 5, 3, 7, 6, 1, 9, 8] -> [2, 0, 5, 3, 7, 6, 1, 9, 8, 9] [6, 2, 0] -> [6, 2, 0, 3] [0, 9, 8, 2, 7, 5, 4, 1, 6] -> [0, 9, 8, 2, 7, 5, 4, 1, 6, 9] [] -> [] [8, 4, 3] -> [8, 4, 3, 3] [2, 4, 5, 3, 1, 7, 0, 8, 6] -> [2, 4, 5, 3, 1, 7, 0, 8, 6, 9] [6, 1, 2, 0, 4, 3, 5, 7, 8] -> [6, 1, 2, 0, 4, 3, 5, 7, 8, 9] Questions: [3, 0, 4] -> ? Answer:
[3, 0, 4] -> [3, 0, 4, 3]
[3, 0, 4]
[3, 0, 4, 3]
c036
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1] [9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0] [7, 2, 0, 7] -> [7, 0, 2, 7] [4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1] [0, 7, 5, 2, 1, 8, 6, 9] -> [0, 5, 7, 2, 1, 8, 6, 9] [6, 7, 8, 1, 0, 2, 4] -> [1, 7, 8, 6, 0, 2, 4] [1, 7, 4, 5, 8, 9] -> [1, 4, 7, 5, 8, 9] [1, 1, 0, 7, 6] -> [1, 0, 1, 7, 6] Questions: [3, 4, 6, 0] -> ? Answer:
[3, 4, 6, 0] -> [0, 4, 6, 3]
[3, 4, 6, 0]
[0, 4, 6, 3]
c130
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 44, 96, 40, 40, 3, 8] -> [44, 96, 40] [4, 6, 0, 5, 2, 8, 3, 7, 37, 24] -> [6, 0, 5, 2] [3, 51, 21, 21, 2] -> [51, 21, 21] [6, 1, 90, 77, 85, 7, 4, 9, 5] -> [1, 90, 77, 85, 7, 4] [2, 55, 5, 88, 9, 3, 45] -> [55, 5] [5, 6, 35, 3, 67, 41, 27, 82] -> [6, 35, 3, 67, 41] [5, 35, 4, 0, 7, 3, 9, 2] -> [35, 4, 0, 7, 3] [7, 9, 81, 2, 6, 1, 5, 6, 3] -> [9, 81, 2, 6, 1, 5, 6] Questions: [6, 90, 36, 0, 66, 31, 57, 9] -> ? Answer:
[6, 90, 36, 0, 66, 31, 57, 9] -> [90, 36, 0, 66, 31, 57]
[6, 90, 36, 0, 66, 31, 57, 9]
[90, 36, 0, 66, 31, 57]
c168
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to 10, skipping the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [20, 9, 16, 92, 82, 3] -> [1, 2, 3, 4, 5, 7, 8, 9, 10] [77, 76, 34, 12, 26, 20, 79] -> [1, 2, 3, 4, 5, 6, 8, 9, 10] [6, 74, 2, 9, 5, 67] -> [1, 2, 3, 4, 5, 7, 8, 9, 10] [95] -> [2, 3, 4, 5, 6, 7, 8, 9, 10] [97, 86, 90, 37, 43, 5, 57, 33, 72, 7] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [40, 86] -> [1, 3, 4, 5, 6, 7, 8, 9, 10] [87, 5, 66] -> [1, 2, 4, 5, 6, 7, 8, 9, 10] [85, 20, 90, 5, 65] -> [1, 2, 3, 4, 6, 7, 8, 9, 10] Questions: [29] -> ? Answer:
[29] -> [2, 3, 4, 5, 6, 7, 8, 9, 10]
[29]
[2, 3, 4, 5, 6, 7, 8, 9, 10]
c188
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if it is divisible by 3, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0] [89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0] [54, 12, 73] -> [1, 1, 0] [71, 48, 3, 6] -> [0, 1, 1, 1] [27, 8, 7, 36, 2, 6, 62] -> [1, 0, 0, 1, 0, 1, 0] [21, 0, 9, 25, 44, 95, 65] -> [1, 1, 1, 0, 0, 0, 0] [15, 63] -> [1, 1] [4, 72, 9, 0, 8, 95, 5, 2, 15, 49] -> [0, 1, 1, 1, 0, 0, 0, 0, 1, 0] Questions: [87, 90] -> ? Answer:
[87, 90] -> [1, 1]
[87, 90]
[1, 1]
c199
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order, each preceded by its rank".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [93, 3, 51] -> [1, 3, 2, 51, 3, 93] [7, 29, 9, 32, 74, 96, 95] -> [1, 7, 2, 9, 3, 29, 4, 32, 5, 74, 6, 95, 7, 96] [41, 29, 82, 46, 33, 5] -> [1, 5, 2, 29, 3, 33, 4, 41, 5, 46, 6, 82] [18, 14, 47, 15] -> [1, 14, 2, 15, 3, 18, 4, 47] [] -> [] [54, 41, 21, 48, 14, 59] -> [1, 14, 2, 21, 3, 41, 4, 48, 5, 54, 6, 59] [73, 75, 0, 15] -> [1, 0, 2, 15, 3, 73, 4, 75] [12, 37, 38, 63, 60, 45, 72] -> [1, 12, 2, 37, 3, 38, 4, 45, 5, 60, 6, 63, 7, 72] Questions: [2, 78, 4] -> ? Answer:
[2, 78, 4] -> [1, 2, 2, 4, 3, 78]
[2, 78, 4]
[1, 2, 2, 4, 3, 78]
c138
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all occurrences of element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [30, 71, 30, 30, 47, 47, 90, 59, 59, 90] -> [71, 47, 47, 90, 59, 59, 90] [30, 47, 30, 30, 78, 8, 47, 78] -> [47, 78, 8, 47, 78] [90, 90, 90] -> [] [58, 58, 2, 58] -> [2] [25, 80] -> [80] [3, 83, 3, 8, 36, 28, 28, 9, 8] -> [83, 8, 36, 28, 28, 9, 8] [92, 92, 8, 92] -> [8] [38, 45, 9, 8, 47, 38, 3, 81, 47, 45] -> [45, 9, 8, 47, 3, 81, 47, 45] Questions: [50, 50, 50] -> ? Answer:
[50, 50, 50] -> []
[50, 50, 50]
[]
c054
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 elements 1 and 2 with element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 8, 4, 3, 7, 6, 2, 0] -> [4, 4, 4, 3, 7, 6, 2, 0] [4, 8, 3, 6, 5, 1, 0] -> [3, 3, 3, 6, 5, 1, 0] [3, 1, 2, 8, 7, 9, 5] -> [2, 2, 2, 8, 7, 9, 5] [9, 0, 5, 7, 3] -> [5, 5, 5, 7, 3] [2, 1, 3, 8] -> [3, 3, 3, 8] [3, 4, 5] -> [5, 5, 5] [8, 2, 3, 9, 6, 7, 5] -> [3, 3, 3, 9, 6, 7, 5] [6, 3, 4] -> [4, 4, 4] Questions: [3, 4, 0, 7, 8] -> ? Answer:
[3, 4, 0, 7, 8] -> [0, 0, 0, 7, 8]
[3, 4, 0, 7, 8]
[0, 0, 0, 7, 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: [3, 7, 6, 1] -> ? Answer:
[3, 7, 6, 1] -> [5, 9, 8, 3]
[3, 7, 6, 1]
[5, 9, 8, 3]
c228
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the number of occurrences of that element so far in the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 6, 6, 6] -> [1, 2, 3, 4] [36, 60, 36, 36, 60, 60, 36] -> [1, 1, 2, 3, 2, 3, 4] [80, 80, 80] -> [1, 2, 3] [62, 62, 62, 62, 62] -> [1, 2, 3, 4, 5] [5, 5, 5, 5] -> [1, 2, 3, 4] [17, 69, 17, 12, 12, 12, 12, 69, 69, 69] -> [1, 1, 2, 1, 2, 3, 4, 2, 3, 4] [3, 49, 49, 3, 49, 3, 3, 49] -> [1, 1, 2, 2, 3, 3, 4, 4] [3, 3, 3, 3] -> [1, 2, 3, 4] Questions: [21, 21, 21, 21] -> ? Answer:
[21, 21, 21, 21] -> [1, 2, 3, 4]
[21, 21, 21, 21]
[1, 2, 3, 4]
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: [39, 25, 48, 19] -> ? Answer:
[39, 25, 48, 19] -> [39, 9, 48, 19]
[39, 25, 48, 19]
[39, 9, 48, 19]
c026
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 8, 6] -> [9, 8] [9, 3, 4, 0] -> [9, 3, 0] [5, 9, 1, 7] -> [5, 9, 7] [4, 7, 3, 6, 0, 8, 2, 5] -> [4, 7, 6, 0, 8, 2, 5] [0, 6, 1, 2, 3, 5, 9] -> [0, 6, 2, 3, 5, 9] [9, 3, 5, 2, 7, 0, 8, 1, 4, 6] -> [9, 3, 2, 7, 0, 8, 1, 4, 6] [5, 2, 6, 1, 0, 9, 4, 8] -> [5, 2, 1, 0, 9, 4, 8] [7, 4, 0, 8, 2] -> [7, 4, 8, 2] Questions: [5, 4, 0, 6, 8] -> ? Answer:
[5, 4, 0, 6, 8] -> [5, 4, 6, 8]
[5, 4, 0, 6, 8]
[5, 4, 6, 8]
c079
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, 6, 0] -> [9] [8, 1] -> [9] [0, 8] -> [8] [0, 1, 3] -> [4] [5, 2] -> [7] [1, 7] -> [8] [2, 4, 3] -> [9] [2, 0] -> [2] Questions: [0, 4, 1] -> ? Answer:
[0, 4, 1] -> [5]
[0, 4, 1]
[5]
c214
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29] [5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1] [4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1] [8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92] [2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79] [3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1] [6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8] [4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56] Questions: [8, 1, 5, 57, 10, 9, 7, 70, 0, 6] -> ? Answer:
[8, 1, 5, 57, 10, 9, 7, 70, 0, 6] -> [1, 5, 57, 10, 9, 7, 70, 6]
[8, 1, 5, 57, 10, 9, 7, 70, 0, 6]
[1, 5, 57, 10, 9, 7, 70, 6]
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: [2, 2, 2, 2] -> ? Answer:
[2, 2, 2, 2] -> [1, 2, 3]
[2, 2, 2, 2]
[1, 2, 3]
c222
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 60, 78, 91] -> [4, 4, 4, 4] [96, 30, 0, 2, 6, 17] -> [6, 6, 6, 6, 6, 6] [89, 98, 99] -> [3, 3, 3] [4, 52, 90, 88, 7, 97, 14] -> [7, 7, 7, 7, 7, 7, 7] [25, 64, 79] -> [3, 3, 3] [41, 89, 5] -> [3, 3, 3] [71, 65, 3, 43, 44, 4] -> [6, 6, 6, 6, 6, 6] [80, 37, 78, 6, 66, 29, 89, 0, 79] -> [9, 9, 9, 9, 9, 9, 9, 9, 9] Questions: [98, 46, 4, 62, 0, 2, 74, 89] -> ? Answer:
[98, 46, 4, 62, 0, 2, 74, 89] -> [8, 8, 8, 8, 8, 8, 8, 8]
[98, 46, 4, 62, 0, 2, 74, 89]
[8, 8, 8, 8, 8, 8, 8, 8]
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: [68, 6, 58, 53, 58, 6, 53, 3] -> ? Answer:
[68, 6, 58, 53, 58, 6, 53, 3] -> [1, 1, 2, 2, 2]
[68, 6, 58, 53, 58, 6, 53, 3]
[1, 1, 2, 2, 2]
c156
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 add each element to its new index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 64, 6, 94, 79, 5, 9, 26] -> [27, 11, 8, 83, 99, 12, 71, 12] [3, 25, 2, 83, 1, 5, 0, 19, 9, 64] -> [65, 11, 22, 4, 10, 7, 90, 10, 34, 13] [3, 59, 76, 6, 81, 1] -> [2, 83, 9, 80, 64, 9] [11, 17, 1, 5, 62, 10, 14] -> [15, 12, 65, 9, 6, 23, 18] [4, 76, 71, 2, 52, 6, 94, 1] -> [2, 96, 9, 56, 7, 77, 83, 12] [66, 7, 5, 4, 12, 6, 16, 70, 37] -> [38, 72, 19, 10, 17, 10, 12, 15, 75] [92, 1, 7, 9, 69, 6] -> [7, 71, 12, 11, 6, 98] [6, 18, 8, 1, 3, 2, 17] -> [18, 4, 6, 5, 13, 24, 13] Questions: [37, 63, 61, 3, 24, 2, 7] -> ? Answer:
[37, 63, 61, 3, 24, 2, 7] -> [8, 4, 27, 7, 66, 69, 44]
[37, 63, 61, 3, 24, 2, 7]
[8, 4, 27, 7, 66, 69, 44]
c051
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1 five times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8, 3, 5, 4] -> [0, 0, 0, 0, 0, 0, 8, 3, 5, 4] [4, 0, 6, 5, 3, 8, 9, 1, 7, 2] -> [4, 4, 4, 4, 4, 4, 0, 6, 5, 3, 8, 9, 1, 7, 2] [9, 4] -> [9, 9, 9, 9, 9, 9, 4] [0] -> [0, 0, 0, 0, 0, 0] [1, 6, 5, 2, 3, 7, 8, 4] -> [1, 1, 1, 1, 1, 1, 6, 5, 2, 3, 7, 8, 4] [5] -> [5, 5, 5, 5, 5, 5] [5, 6, 9, 2, 4] -> [5, 5, 5, 5, 5, 5, 6, 9, 2, 4] [7, 4, 1] -> [7, 7, 7, 7, 7, 7, 4, 1] Questions: [0, 1, 9, 4, 3, 8] -> ? Answer:
[0, 1, 9, 4, 3, 8] -> [0, 0, 0, 0, 0, 0, 1, 9, 4, 3, 8]
[0, 1, 9, 4, 3, 8]
[0, 0, 0, 0, 0, 0, 1, 9, 4, 3, 8]
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, 26, 8, 46, 4, 94, 18, 3] -> ? Answer:
[6, 26, 8, 46, 4, 94, 18, 3] -> [6, 26, 8, 46, 4, 3, 94, 18, 3]
[6, 26, 8, 46, 4, 94, 18, 3]
[6, 26, 8, 46, 4, 3, 94, 18, 3]
c161
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M + the input length - M’s index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40, 5, 83, 3, 29, 8] -> [45, 9, 86, 5, 30, 8] [40, 4, 83, 6, 5, 61, 9] -> [46, 9, 87, 9, 7, 62, 9] [0, 87, 50, 11, 7, 72] -> [5, 91, 53, 13, 8, 72] [4, 6, 46, 96, 1, 9] -> [9, 10, 49, 98, 2, 9] [44, 4, 24, 95, 92, 33, 6] -> [50, 9, 28, 98, 94, 34, 6] [80, 5, 49, 2, 21, 0, 32] -> [86, 10, 53, 5, 23, 1, 32] [19, 28, 34, 16, 1, 51] -> [24, 32, 37, 18, 2, 51] [1, 9, 2, 89, 21, 64, 11, 71, 15, 7] -> [10, 17, 9, 95, 26, 68, 14, 73, 16, 7] Questions: [0, 35, 29, 88, 6, 96] -> ? Answer:
[0, 35, 29, 88, 6, 96] -> [5, 39, 32, 90, 7, 96]
[0, 35, 29, 88, 6, 96]
[5, 39, 32, 90, 7, 96]
c022
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 5 as element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 0, 3] -> [6, 5, 0, 3] [1, 4] -> [1, 5, 4] [5, 6, 3, 9, 2, 0] -> [5, 5, 6, 3, 9, 2, 0] [6, 8, 9, 0, 5, 3, 2, 4, 7, 1] -> [6, 5, 8, 9, 0, 5, 3, 2, 4, 7, 1] [7, 2, 4, 8, 9, 3, 5, 1, 6, 0] -> [7, 5, 2, 4, 8, 9, 3, 5, 1, 6, 0] [1, 7, 3, 0] -> [1, 5, 7, 3, 0] [1, 7, 6, 8, 4] -> [1, 5, 7, 6, 8, 4] [4, 8, 3] -> [4, 5, 8, 3] Questions: [9, 3, 2, 5, 1, 8, 7, 4] -> ? Answer:
[9, 3, 2, 5, 1, 8, 7, 4] -> [9, 5, 3, 2, 5, 1, 8, 7, 4]
[9, 3, 2, 5, 1, 8, 7, 4]
[9, 5, 3, 2, 5, 1, 8, 7, 4]
c226
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove first M and last N elements, M = element 1, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 25, 4, 98, 0, 8, 30, 82, 1] -> [98, 0, 8, 30, 82] [1, 37, 4, 88, 4, 1, 88, 1, 1] -> [37, 4, 88, 4, 1, 88, 1] [3, 77, 41, 5, 28, 1, 2, 6, 69, 3] -> [5, 28, 1, 2] [2, 4, 21, 0, 0, 1] -> [21, 0, 0] [1, 33, 1, 95, 1, 6, 9, 3, 2] -> [33, 1, 95, 1, 6, 9] [1, 8, 32, 0, 3, 40, 62, 6] -> [8] [1, 85, 34, 95, 58, 68, 9, 2, 4] -> [85, 34, 95, 58] [5, 9, 9, 8, 4, 55, 1] -> [55] Questions: [1, 2, 1, 1] -> ? Answer:
[1, 2, 1, 1] -> [2, 1]
[1, 2, 1, 1]
[2, 1]
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: [2, 86, 0, 25, 57, 12, 12] -> ? Answer:
[2, 86, 0, 25, 57, 12, 12] -> [25, 57, 12, 12]
[2, 86, 0, 25, 57, 12, 12]
[25, 57, 12, 12]
c132
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 4, 44, 78] -> [1, 4, 78] [7, 34, 4, 59, 45] -> [7, 34, 59, 45] [6, 78, 9, 56, 10, 7, 8] -> [6, 78, 56, 10, 7, 8] [64, 31, 6, 28, 46] -> [64, 31, 28, 46] [42, 21, 31, 2, 7, 3, 1, 9] -> [42, 21, 2, 7, 3, 1, 9] [31, 9, 3, 72] -> [31, 9, 72] [8, 93, 1, 7, 81, 0] -> [8, 93, 7, 81, 0] [44, 0, 91, 3, 50, 86] -> [44, 0, 3, 50, 86] Questions: [6, 32, 22, 5, 33, 25, 92] -> ? Answer:
[6, 32, 22, 5, 33, 25, 92] -> [6, 32, 5, 33, 25, 92]
[6, 32, 22, 5, 33, 25, 92]
[6, 32, 5, 33, 25, 92]
c043
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [8, 2, 7, 0, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 6, 6, 6, 6, 3] -> [8, 2, 7, 0, 3] [6] -> [8, 2, 7, 0, 3] [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3] [5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3] [1, 1, 1, 1, 1, 1] -> [8, 2, 7, 0, 3] [5, 1, 5, 9, 6, 5, 1] -> [8, 2, 7, 0, 3] [6, 1, 9, 5, 0, 4] -> [8, 2, 7, 0, 3] [1, 1, 1, 6, 5, 6, 1, 5] -> [8, 2, 7, 0, 3] Questions: [4, 4, 4, 4, 4, 1, 4, 1, 1] -> ? Answer:
[4, 4, 4, 4, 4, 1, 4, 1, 1] -> [8, 2, 7, 0, 3]
[4, 4, 4, 4, 4, 1, 4, 1, 1]
[8, 2, 7, 0, 3]
c238
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements that appear exactly once".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 7, 7, 7, 7, 8, 7, 8, 8] -> [] [5, 8, 8, 6, 8, 8] -> [5, 6] [8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3] [7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22] [4, 7, 10, 4, 7, 7, 1] -> [10, 1] [9, 47, 7, 5, 47, 25, 5, 45, 25] -> [9, 7, 45] [1, 1, 1, 1, 1, 1, 1] -> [] [0, 6, 0, 15, 1] -> [6, 15, 1] Questions: [1, 95, 4, 0, 54, 4, 3, 54, 95, 95] -> ? Answer:
[1, 95, 4, 0, 54, 4, 3, 54, 95, 95] -> [1, 0, 3]
[1, 95, 4, 0, 54, 4, 3, 54, 95, 95]
[1, 0, 3]
c246
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 unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [34, 44, 0, 2, 3, 5, 8, 98, 9, 73] -> [10] [4, 66, 92, 99, 23, 7, 19, 5, 56, 91] -> [10] [31, 3, 40, 34, 9, 0, 67, 1] -> [8] [21, 30, 8, 79, 51, 0, 84, 49, 15] -> [9] [53, 39, 61, 7, 97, 2, 4, 5, 81] -> [9] [78, 81, 67, 27, 3, 63, 10, 69, 60, 39] -> [10] [2, 9, 48, 44, 93, 0, 6, 8, 97, 24] -> [10] [2, 0, 78, 30, 7, 9, 28, 62, 83, 5] -> [10] Questions: [6, 7, 12, 2, 47, 8, 4, 58, 91] -> ? Answer:
[6, 7, 12, 2, 47, 8, 4, 58, 91] -> [9]
[6, 7, 12, 2, 47, 8, 4, 58, 91]
[9]
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: [8, 4, 5, 5, 8, 8, 8, 8, 4] -> ? Answer:
[8, 4, 5, 5, 8, 8, 8, 8, 4] -> [4, 5, 6, 7]
[8, 4, 5, 5, 8, 8, 8, 8, 4]
[4, 5, 6, 7]
c243
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 odd elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 33, 9, 1, 7, 62, 88, 9, 8] -> [5] [72, 1, 6, 2, 5, 0, 82, 9] -> [3] [8, 45, 77, 9, 88, 77, 81, 66] -> [5] [34, 2, 88, 4, 63, 7, 9, 62, 7, 2] -> [4] [3, 27, 5, 1, 8, 4, 7, 6, 37] -> [6] [1, 0, 85, 3, 99, 68, 8] -> [4] [24, 51, 1, 7, 55, 9, 70, 77, 95, 90] -> [7] [89, 4, 93, 92, 67, 18, 7, 1] -> [5] Questions: [87, 1, 0, 3, 7, 4, 52] -> ? Answer:
[87, 1, 0, 3, 7, 4, 52] -> [4]
[87, 1, 0, 3, 7, 4, 52]
[4]
c136
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first occurrence of the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [64, 3, 64, 64, 1, 55] -> [3, 64, 64, 1, 55] [5, 24, 11, 26, 73, 41, 60, 73] -> [5, 24, 11, 26, 41, 60, 73] [82, 5, 82, 82, 81, 12, 31, 5, 31] -> [5, 82, 82, 81, 12, 31, 5, 31] [59, 4, 5, 16, 59, 9] -> [4, 5, 16, 59, 9] [0, 78, 78, 9, 78] -> [0, 78, 9, 78] [25, 25] -> [25] [71, 1, 0, 22, 6, 18, 4, 99, 3, 87] -> [71, 1, 0, 22, 6, 18, 4, 3, 87] [4, 1, 40, 56, 71, 8, 45, 3, 13] -> [4, 1, 40, 56, 8, 45, 3, 13] Questions: [4, 4, 4] -> ? Answer:
[4, 4, 4] -> [4, 4]
[4, 4, 4]
[4, 4]
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: [3, 4, 7, 8, 6, 1, 5, 0, 9] -> ? Answer:
[3, 4, 7, 8, 6, 1, 5, 0, 9] -> [7, 8, 6, 1, 5]
[3, 4, 7, 8, 6, 1, 5, 0, 9]
[7, 8, 6, 1, 5]
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: [61, 0, 9, 4, 45, 57, 99] -> ? Answer:
[61, 0, 9, 4, 45, 57, 99] -> [0, 4, 9]
[61, 0, 9, 4, 45, 57, 99]
[0, 4, 9]
c181
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the order of elements with even indices".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21] [5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90] [98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9] [8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2] [7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12] [27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32] [4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76] [97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45] Questions: [27, 51, 89, 61, 93, 59, 82, 15] -> ? Answer:
[27, 51, 89, 61, 93, 59, 82, 15] -> [27, 15, 89, 59, 93, 61, 82, 51]
[27, 51, 89, 61, 93, 59, 82, 15]
[27, 15, 89, 59, 93, 61, 82, 51]
c016
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 3, 4] -> [2, 8, 4] [8, 3, 5, 7, 1, 4, 2, 6] -> [8, 8, 5, 7, 1, 4, 2, 6] [7, 0] -> [7, 8] [0, 3, 1] -> [0, 8, 1] [6, 7, 1, 5] -> [6, 8, 1, 5] [1, 2, 3, 7, 6, 9] -> [1, 8, 3, 7, 6, 9] [2, 6] -> [2, 8] [2, 3, 0, 4, 1, 5] -> [2, 8, 0, 4, 1, 5] Questions: [6, 5, 1, 4, 7, 8, 2, 3, 9] -> ? Answer:
[6, 5, 1, 4, 7, 8, 2, 3, 9] -> [6, 8, 1, 4, 7, 8, 2, 3, 9]
[6, 5, 1, 4, 7, 8, 2, 3, 9]
[6, 8, 1, 4, 7, 8, 2, 3, 9]
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: [47, 63, 98, 89, 1, 2, 94, 7, 4, 49] -> ? Answer:
[47, 63, 98, 89, 1, 2, 94, 7, 4, 49] -> [1, 2, 4]
[47, 63, 98, 89, 1, 2, 94, 7, 4, 49]
[1, 2, 4]
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, 3, 7] -> ? Answer:
[1, 3, 7] -> [21]
[1, 3, 7]
[21]
c176
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sums of each consecutive pair of elements, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 4, 67, 17, 56, 1] -> [73, 71, 84, 73, 57] [32, 3, 12, 57, 27, 7, 6, 88, 8, 9] -> [35, 15, 69, 84, 34, 13, 94, 96, 17] [59, 8, 2, 5, 71, 1] -> [67, 10, 7, 76, 72] [26, 33, 6, 5, 85, 8, 3, 1, 0, 2] -> [59, 39, 11, 90, 93, 11, 4, 1, 2] [62, 25, 5, 7, 42, 19] -> [87, 30, 12, 49, 61] [0, 52, 9, 83, 4, 1] -> [52, 61, 92, 87, 5] [7, 1, 0, 4, 6, 56] -> [8, 1, 4, 10, 62] [51, 5, 3, 8, 36, 1, 2, 6, 2, 4] -> [56, 8, 11, 44, 37, 3, 8, 8, 6] Questions: [69, 0, 5, 8, 63, 9] -> ? Answer:
[69, 0, 5, 8, 63, 9] -> [69, 5, 13, 71, 72]
[69, 0, 5, 8, 63, 9]
[69, 5, 13, 71, 72]
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: [96, 0, 8, 35, 15, 53] -> ? Answer:
[96, 0, 8, 35, 15, 53] -> [96, 0, 0, 0, 8, 0, 35, 1, 15, 1, 53, 1]
[96, 0, 8, 35, 15, 53]
[96, 0, 0, 0, 8, 0, 35, 1, 15, 1, 53, 1]
c084
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: [8, 25, 3, 79, 57, 84, 4, 44, 94, 5] -> [4] [2, 22, 23, 60, 37, 80, 9, 50] -> [9] [48, 15, 38, 8, 85, 2, 4, 33, 99] -> [4] [49, 99, 2, 59, 23, 85] -> [] [0, 18, 22, 9, 2, 20, 91] -> [91] [76, 1, 93, 7, 10, 17, 66] -> [66] [16, 8, 2, 90, 20, 60, 84, 28, 93, 1] -> [84] [3, 99, 27, 40, 1, 8, 69, 6, 9, 22] -> [69] Questions: [58, 50, 11, 45, 85, 88, 28, 41, 2] -> ? Answer:
[58, 50, 11, 45, 85, 88, 28, 41, 2] -> [28]
[58, 50, 11, 45, 85, 88, 28, 41, 2]
[28]
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: [3, 0, 7] -> ? Answer:
[3, 0, 7] -> [3, 3, 7]
[3, 0, 7]
[3, 3, 7]
c090
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [18, 42, 77, 20, 36]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 6, 9, 49, 90, 34, 24, 51, 35] -> [18, 42, 77, 20, 36] [24, 55] -> [18, 42, 77, 20, 36] [89, 4, 30, 8, 82, 63, 7, 1] -> [18, 42, 77, 20, 36] [37, 6, 37, 37, 10, 10, 10, 37] -> [18, 42, 77, 20, 36] [9, 84, 87, 78] -> [18, 42, 77, 20, 36] [32, 97, 3, 30, 8, 1, 3, 97, 79, 30] -> [18, 42, 77, 20, 36] [52, 52, 72, 98, 4, 52, 52, 72, 72] -> [18, 42, 77, 20, 36] [] -> [18, 42, 77, 20, 36] Questions: [14, 73, 16, 48, 73] -> ? Answer:
[14, 73, 16, 48, 73] -> [18, 42, 77, 20, 36]
[14, 73, 16, 48, 73]
[18, 42, 77, 20, 36]
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, 7, 3, 8, 2, 4] -> ? Answer:
[0, 7, 3, 8, 2, 4] -> [0, 7, 3, 8, 2, 3]
[0, 7, 3, 8, 2, 4]
[0, 7, 3, 8, 2, 3]
c130
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 44, 96, 40, 40, 3, 8] -> [44, 96, 40] [4, 6, 0, 5, 2, 8, 3, 7, 37, 24] -> [6, 0, 5, 2] [3, 51, 21, 21, 2] -> [51, 21, 21] [6, 1, 90, 77, 85, 7, 4, 9, 5] -> [1, 90, 77, 85, 7, 4] [2, 55, 5, 88, 9, 3, 45] -> [55, 5] [5, 6, 35, 3, 67, 41, 27, 82] -> [6, 35, 3, 67, 41] [5, 35, 4, 0, 7, 3, 9, 2] -> [35, 4, 0, 7, 3] [7, 9, 81, 2, 6, 1, 5, 6, 3] -> [9, 81, 2, 6, 1, 5, 6] Questions: [8, 45, 6, 18, 94, 0, 1, 2, 7, 34] -> ? Answer:
[8, 45, 6, 18, 94, 0, 1, 2, 7, 34] -> [45, 6, 18, 94, 0, 1, 2, 7]
[8, 45, 6, 18, 94, 0, 1, 2, 7, 34]
[45, 6, 18, 94, 0, 1, 2, 7]
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: [9, 1, 5, 7, 2] -> ? Answer:
[9, 1, 5, 7, 2] -> [9, 1, 5, 7, 2]
[9, 1, 5, 7, 2]
[9, 1, 5, 7, 2]
c125
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit equals the tens digit of element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [59, 82, 59, 82, 9, 83] -> [59, 59] [7, 9, 26, 5, 70, 6, 3] -> [7, 9, 5, 6, 3] [23, 80, 23, 2, 1, 5, 77, 91] -> [23, 23] [1, 9, 7, 78, 6, 5, 8, 0, 3, 4] -> [1, 9, 7, 6, 5, 8, 0, 3, 4] [78, 78, 78, 66, 78] -> [78, 78, 78, 78] [5, 8, 40, 6, 90, 2] -> [5, 8, 6, 2] [3, 5, 95, 21, 0, 2, 3] -> [3, 5, 0, 2, 3] [45, 62, 43, 73, 45, 52] -> [45, 43, 45] Questions: [11, 0, 11] -> ? Answer:
[11, 0, 11] -> [11, 11]
[11, 0, 11]
[11, 11]
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: [6, 76, 77, 95, 81, 9] -> ? Answer:
[6, 76, 77, 95, 81, 9] -> [6, 9, 76, 77, 81, 95]
[6, 76, 77, 95, 81, 9]
[6, 9, 76, 77, 81, 95]
c026
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 8, 6] -> [9, 8] [9, 3, 4, 0] -> [9, 3, 0] [5, 9, 1, 7] -> [5, 9, 7] [4, 7, 3, 6, 0, 8, 2, 5] -> [4, 7, 6, 0, 8, 2, 5] [0, 6, 1, 2, 3, 5, 9] -> [0, 6, 2, 3, 5, 9] [9, 3, 5, 2, 7, 0, 8, 1, 4, 6] -> [9, 3, 2, 7, 0, 8, 1, 4, 6] [5, 2, 6, 1, 0, 9, 4, 8] -> [5, 2, 1, 0, 9, 4, 8] [7, 4, 0, 8, 2] -> [7, 4, 8, 2] Questions: [6, 0, 3, 8, 1, 2, 4, 5] -> ? Answer:
[6, 0, 3, 8, 1, 2, 4, 5] -> [6, 0, 8, 1, 2, 4, 5]
[6, 0, 3, 8, 1, 2, 4, 5]
[6, 0, 8, 1, 2, 4, 5]
c141
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 2 with N, M = element 1, N = element 2; remove elements 1 and 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 5, 4, 40, 1, 79, 45, 62, 36] -> [4, 40, 1, 79, 45, 62, 5] [51, 3, 1, 4, 23, 9, 34, 7] -> [1, 4, 23, 9, 34, 7] [5, 1, 64, 2, 75, 20, 5, 2, 5] -> [64, 2, 75, 20, 1, 2, 5] [3, 4, 7, 38, 6, 75, 5, 0, 91, 3] -> [7, 38, 4, 75, 5, 0, 91, 3] [8, 0, 9, 38, 5, 4, 53, 2, 31, 57] -> [9, 38, 5, 4, 53, 2, 31, 0] [5, 5, 91, 31, 31, 7, 31, 72] -> [91, 31, 31, 7, 5, 72] [3, 3, 3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3] [6, 2, 57, 57, 57, 22, 57, 97, 2] -> [57, 57, 57, 22, 57, 2, 2] Questions: [3, 3, 16, 2, 20, 8, 23, 6] -> ? Answer:
[3, 3, 16, 2, 20, 8, 23, 6] -> [16, 2, 3, 8, 23, 6]
[3, 3, 16, 2, 20, 8, 23, 6]
[16, 2, 3, 8, 23, 6]
c148
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to each original element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 4] -> [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4] [2, 5, 2, 5] -> [1, 2, 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5] [1, 5, 3, 4] -> [1, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4] [3, 3, 1, 0] -> [1, 2, 3, 1, 2, 3, 1] [2, 1, 1] -> [1, 2, 1, 1] [5, 3, 1] -> [1, 2, 3, 4, 5, 1, 2, 3, 1] [6, 3, 3] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3] [6, 4, 1] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1] Questions: [2, 3, 3] -> ? Answer:
[2, 3, 3] -> [1, 2, 1, 2, 3, 1, 2, 3]
[2, 3, 3]
[1, 2, 1, 2, 3, 1, 2, 3]
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: [65, 1, 65, 1, 11, 5, 11, 35, 5, 35] -> ? Answer:
[65, 1, 65, 1, 11, 5, 11, 35, 5, 35] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[65, 1, 65, 1, 11, 5, 11, 35, 5, 35]
[81, 99, 41, 23, 22, 75, 68, 30, 24, 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: [6, 7, 8, 4, 2, 3, 67] -> ? Answer:
[6, 7, 8, 4, 2, 3, 67] -> [1]
[6, 7, 8, 4, 2, 3, 67]
[1]
c039
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list length is 3, else append 9 if the list length is 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 2, 7, 0, 5, 1, 6, 4, 8] -> [9, 2, 7, 0, 5, 1, 6, 4, 8, 9] [2, 0, 5, 3, 7, 6, 1, 9, 8] -> [2, 0, 5, 3, 7, 6, 1, 9, 8, 9] [6, 2, 0] -> [6, 2, 0, 3] [0, 9, 8, 2, 7, 5, 4, 1, 6] -> [0, 9, 8, 2, 7, 5, 4, 1, 6, 9] [] -> [] [8, 4, 3] -> [8, 4, 3, 3] [2, 4, 5, 3, 1, 7, 0, 8, 6] -> [2, 4, 5, 3, 1, 7, 0, 8, 6, 9] [6, 1, 2, 0, 4, 3, 5, 7, 8] -> [6, 1, 2, 0, 4, 3, 5, 7, 8, 9] Questions: [7, 4, 1, 9, 8, 5, 3] -> ? Answer:
[7, 4, 1, 9, 8, 5, 3] -> [7, 4, 1, 9, 8, 5, 3]
[7, 4, 1, 9, 8, 5, 3]
[7, 4, 1, 9, 8, 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: [21, 92, 5, 3, 9, 64] -> ? Answer:
[21, 92, 5, 3, 9, 64] -> [64, 9, 3, 5, 21, 92]
[21, 92, 5, 3, 9, 64]
[64, 9, 3, 5, 21, 92]
c241
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 4, 78, 6, 6, 28, 1, 78, 4, 70] -> [9] [84, 83, 51, 5, 85, 77, 59] -> [1] [28, 5, 4, 6, 57, 12, 90, 61, 50] -> [6] [2, 6, 78, 87, 97, 93, 11, 0, 34] -> [5] [5, 3, 1, 4, 25, 32, 8] -> [3] [80, 9, 38, 1, 4, 5, 6, 72, 98] -> [6] [18, 7, 53, 11, 6, 64, 8, 2, 68, 4] -> [7] [3, 6, 4, 63, 89, 41, 9] -> [2] Questions: [52, 73, 94, 2, 46, 7, 13, 0, 77, 84] -> ? Answer:
[52, 73, 94, 2, 46, 7, 13, 0, 77, 84] -> [6]
[52, 73, 94, 2, 46, 7, 13, 0, 77, 84]
[6]
c085
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 62, 4] -> [62] [5, 17, 1, 4, 3, 88, 68] -> [88] [1, 56, 7, 30] -> [56] [2, 1, 40, 92, 26, 95, 45] -> [40] [3, 79, 55, 55, 1, 74] -> [55] [1, 14, 3, 2, 78, 9] -> [14] [3, 23, 72, 23] -> [23] [3, 7, 55, 75, 5, 24, 14, 1] -> [75] Questions: [2, 4, 43, 1, 8, 5, 37, 6, 98, 86] -> ? Answer:
[2, 4, 43, 1, 8, 5, 37, 6, 98, 86] -> [43]
[2, 4, 43, 1, 8, 5, 37, 6, 98, 86]
[43]
c041
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 [9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 8, 7, 3, 6, 6, 0, 2] -> [9] [4] -> [9] [2, 1, 5, 4] -> [9] [4, 1, 1, 0, 5, 5, 3, 1, 2] -> [9] [2] -> [9] [2, 3, 3, 2, 2, 3, 2, 3, 3, 3] -> [9] [2, 6, 2, 6] -> [9] [4, 4, 4, 4, 4] -> [9] Questions: [0, 7, 7, 7] -> ? Answer:
[0, 7, 7, 7] -> [9]
[0, 7, 7, 7]
[9]
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: [80, 97] -> ? Answer:
[80, 97] -> [17, 38, 82, 80, 97, 1, 55, 27]
[80, 97]
[17, 38, 82, 80, 97, 1, 55, 27]
c119
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend or append 8, if necessary, so the list begins and ends with 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [37] -> [8, 37, 8] [99, 7, 79, 8] -> [8, 99, 7, 79, 8] [39, 8, 39, 77, 8] -> [8, 39, 8, 39, 77, 8] [8, 5] -> [8, 5, 8] [8, 3, 8, 70, 90] -> [8, 3, 8, 70, 90, 8] [58, 9, 8] -> [8, 58, 9, 8] [8, 6, 99, 34, 8] -> [8, 6, 99, 34, 8] [8, 8] -> [8, 8] Questions: [52, 24, 6, 8] -> ? Answer:
[52, 24, 6, 8] -> [8, 52, 24, 6, 8]
[52, 24, 6, 8]
[8, 52, 24, 6, 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: [32, 54, 77, 93, 1, 85, 5] -> ? Answer:
[32, 54, 77, 93, 1, 85, 5] -> [5]
[32, 54, 77, 93, 1, 85, 5]
[5]
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: [9, 4, 6, 40, 61, 36] -> ? Answer:
[9, 4, 6, 40, 61, 36] -> [4, 6, 65, 9, 36, 40, 61]
[9, 4, 6, 40, 61, 36]
[4, 6, 65, 9, 36, 40, 61]
c232
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "mean value of the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [60, 45, 24] -> [43] [72, 98, 43] -> [71] [32, 76, 3] -> [37] [13, 3, 6, 4] -> [6] [8, 37, 46, 7] -> [24] [3, 48, 8] -> [19] [90, 4, 1, 13, 2] -> [22] [4, 22, 93, 81, 8] -> [41] Questions: [4, 21, 5] -> ? Answer:
[4, 21, 5] -> [10]
[4, 21, 5]
[10]
c011
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8] -> [8] [0, 8, 7, 9] -> [8, 7, 9] [7, 6] -> [6] [7] -> [] [8, 9, 6, 5, 4] -> [9, 6, 5] [7, 4] -> [4] [8, 2, 1, 6, 7] -> [2, 1, 6] [3, 0, 4] -> [0, 4] Questions: [7, 1, 4, 0, 9, 3, 6, 5, 2] -> ? Answer:
[7, 1, 4, 0, 9, 3, 6, 5, 2] -> [1, 4, 0]
[7, 1, 4, 0, 9, 3, 6, 5, 2]
[1, 4, 0]
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: [66, 65, 0, 6, 69, 41] -> ? Answer:
[66, 65, 0, 6, 69, 41] -> [0, 6, 41]
[66, 65, 0, 6, 69, 41]
[0, 6, 41]
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: [4, 1] -> ? Answer:
[4, 1] -> []
[4, 1]
[]
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: [1, 5, 2, 0, 6, 8, 4, 3] -> ? Answer:
[1, 5, 2, 0, 6, 8, 4, 3] -> [8]
[1, 5, 2, 0, 6, 8, 4, 3]
[8]
c100
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [96, 69] -> [69, 96] [3, 53, 99, 51, 50, 92, 6] -> [6, 92, 50, 51, 99, 53, 3] [87, 91, 74] -> [74, 91, 87] [90, 5, 0, 96] -> [96, 0, 5, 90] [32, 0, 88, 5, 83, 2, 44, 16, 1, 97] -> [97, 1, 16, 44, 2, 83, 5, 88, 0, 32] [18, 59, 10, 83, 86, 64, 0] -> [0, 64, 86, 83, 10, 59, 18] [0, 42, 11, 2, 35] -> [35, 2, 11, 42, 0] [39, 65, 0, 1, 49, 30] -> [30, 49, 1, 0, 65, 39] Questions: [8, 68, 5, 9, 32, 7, 27] -> ? Answer:
[8, 68, 5, 9, 32, 7, 27] -> [27, 7, 32, 9, 5, 68, 8]
[8, 68, 5, 9, 32, 7, 27]
[27, 7, 32, 9, 5, 68, 8]
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: [1, 3, 8, 9, 5, 2, 6, 4] -> ? Answer:
[1, 3, 8, 9, 5, 2, 6, 4] -> [1, 8, 3, 8, 9, 5, 2, 6, 4]
[1, 3, 8, 9, 5, 2, 6, 4]
[1, 8, 3, 8, 9, 5, 2, 6, 4]
c114
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 the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [64, 81] -> [81, 64, 81] [36, 46, 9, 37] -> [37, 36, 46, 9, 37] [8, 50, 31] -> [31, 8, 50, 31] [78, 11, 6, 27, 30] -> [30, 78, 11, 6, 27, 30] [24, 56, 39, 44] -> [44, 24, 56, 39, 44] [47, 25, 92, 3, 43] -> [43, 47, 25, 92, 3, 43] [0, 67, 85] -> [85, 0, 67, 85] [18, 36, 0, 38, 11] -> [11, 18, 36, 0, 38, 11] Questions: [8, 66, 94] -> ? Answer:
[8, 66, 94] -> [94, 8, 66, 94]
[8, 66, 94]
[94, 8, 66, 94]
c241
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 4, 78, 6, 6, 28, 1, 78, 4, 70] -> [9] [84, 83, 51, 5, 85, 77, 59] -> [1] [28, 5, 4, 6, 57, 12, 90, 61, 50] -> [6] [2, 6, 78, 87, 97, 93, 11, 0, 34] -> [5] [5, 3, 1, 4, 25, 32, 8] -> [3] [80, 9, 38, 1, 4, 5, 6, 72, 98] -> [6] [18, 7, 53, 11, 6, 64, 8, 2, 68, 4] -> [7] [3, 6, 4, 63, 89, 41, 9] -> [2] Questions: [73, 84, 97, 3, 25, 19, 91] -> ? Answer:
[73, 84, 97, 3, 25, 19, 91] -> [1]
[73, 84, 97, 3, 25, 19, 91]
[1]
c201
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements > element 1, followed by elements < element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 27, 6, 4, 59, 1, 67, 9, 0] -> [27, 59, 67, 9, 6, 4, 1, 0] [93, 72] -> [72] [22, 94, 78, 8, 9, 2, 89, 5, 7, 97] -> [94, 78, 89, 97, 8, 9, 2, 5, 7] [47, 42] -> [42] [9, 90, 81, 5, 1, 2, 0, 29] -> [90, 81, 29, 5, 1, 2, 0] [58, 9, 2, 93, 81, 99, 97, 8, 4, 82] -> [93, 81, 99, 97, 82, 9, 2, 8, 4] [46, 97, 5, 52] -> [97, 52, 5] [82, 62, 12, 19, 91, 8, 99, 90] -> [91, 99, 90, 62, 12, 19, 8] Questions: [8] -> ? Answer:
[8] -> []
[8]
[]
c019
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 6 with a 3 if there is an element 6".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 4, 5, 6, 2, 0, 7, 8] -> [9, 4, 5, 6, 2, 3, 7, 8] [4] -> [4] [1, 6, 5, 4, 9, 8, 0, 3] -> [1, 6, 5, 4, 9, 3, 0, 3] [0, 9, 1, 7, 3, 5] -> [0, 9, 1, 7, 3, 3] [5, 7, 8, 2, 1, 4, 6] -> [5, 7, 8, 2, 1, 3, 6] [7] -> [7] [9, 2, 6, 0, 1, 4, 7] -> [9, 2, 6, 0, 1, 3, 7] [8, 2, 0, 9] -> [8, 2, 0, 9] Questions: [8, 4, 2, 5, 3, 7] -> ? Answer:
[8, 4, 2, 5, 3, 7] -> [8, 4, 2, 5, 3, 3]
[8, 4, 2, 5, 3, 7]
[8, 4, 2, 5, 3, 3]
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: [8, 9, 1] -> ? Answer:
[8, 9, 1] -> [3]
[8, 9, 1]
[3]
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: [1, 6, 83, 99, 41, 30] -> ? Answer:
[1, 6, 83, 99, 41, 30] -> [5, 6, 25, 29, 15, 12]
[1, 6, 83, 99, 41, 30]
[5, 6, 25, 29, 15, 12]
c185
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the sublist between the first and last elements with its sum".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [33, 7, 8, 24, 29, 21, 1, 5] -> [33, 90, 5] [8, 81, 7, 1, 3, 0] -> [8, 92, 0] [6, 22, 1, 7, 20, 14, 14, 14] -> [6, 78, 14] [60, 11, 63, 4, 11, 1, 7] -> [60, 90, 7] [96, 4, 0, 1, 63, 17] -> [96, 68, 17] [9, 0, 24, 4, 50, 0, 7] -> [9, 78, 7] [74, 9, 3, 0, 44, 54] -> [74, 56, 54] [31, 7, 1, 62, 2, 7, 8, 6, 4] -> [31, 93, 4] Questions: [0, 29, 26, 7, 29, 8] -> ? Answer:
[0, 29, 26, 7, 29, 8] -> [0, 91, 8]
[0, 29, 26, 7, 29, 8]
[0, 91, 8]
c122
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 penultimate element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [68, 58, 4, 55, 10, 27, 46, 16, 90, 2] -> [90] [2, 66, 10, 90, 27, 6] -> [27] [53, 0, 15, 9, 5, 65, 1, 63] -> [1] [14, 79] -> [14] [44, 0] -> [44] [42, 55] -> [42] [8, 79, 45, 7, 68, 75, 84, 9] -> [84] [53, 49, 52, 1] -> [52] Questions: [52, 31, 34, 46, 5] -> ? Answer:
[52, 31, 34, 46, 5] -> [46]
[52, 31, 34, 46, 5]
[46]
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: [58, 82, 23] -> ? Answer:
[58, 82, 23] -> [23, 58, 82]
[58, 82, 23]
[23, 58, 82]
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: [6] -> ? Answer:
[6] -> [6, 4]
[6]
[6, 4]
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: [7, 9, 19, 8, 95, 41, 49] -> ? Answer:
[7, 9, 19, 8, 95, 41, 49] -> [7, 9, 8, 19, 41, 49, 95]
[7, 9, 19, 8, 95, 41, 49]
[7, 9, 8, 19, 41, 49, 95]
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: [9, 3, 5, 0, 1, 2] -> ? Answer:
[9, 3, 5, 0, 1, 2] -> [5]
[9, 3, 5, 0, 1, 2]
[5]
c100
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [96, 69] -> [69, 96] [3, 53, 99, 51, 50, 92, 6] -> [6, 92, 50, 51, 99, 53, 3] [87, 91, 74] -> [74, 91, 87] [90, 5, 0, 96] -> [96, 0, 5, 90] [32, 0, 88, 5, 83, 2, 44, 16, 1, 97] -> [97, 1, 16, 44, 2, 83, 5, 88, 0, 32] [18, 59, 10, 83, 86, 64, 0] -> [0, 64, 86, 83, 10, 59, 18] [0, 42, 11, 2, 35] -> [35, 2, 11, 42, 0] [39, 65, 0, 1, 49, 30] -> [30, 49, 1, 0, 65, 39] Questions: [41, 31, 4, 29, 54, 8, 89, 5] -> ? Answer:
[41, 31, 4, 29, 54, 8, 89, 5] -> [5, 89, 8, 54, 29, 4, 31, 41]
[41, 31, 4, 29, 54, 8, 89, 5]
[5, 89, 8, 54, 29, 4, 31, 41]
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: [9, 40, 15] -> ? Answer:
[9, 40, 15] -> [9, 40]
[9, 40, 15]
[9, 40]
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: [9, 0, 24, 28, 44] -> ? Answer:
[9, 0, 24, 28, 44] -> [9, 1, 0, 2, 24, 3, 28, 4, 44, 5]
[9, 0, 24, 28, 44]
[9, 1, 0, 2, 24, 3, 28, 4, 44, 5]
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: [8, 6, 7, 3, 5, 1] -> ? Answer:
[8, 6, 7, 3, 5, 1] -> [8, 8, 6, 6, 7, 7, 3, 3, 5, 5, 1, 1]
[8, 6, 7, 3, 5, 1]
[8, 8, 6, 6, 7, 7, 3, 3, 5, 5, 1, 1]
c227
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave input and reversed input; keep only unique elements in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 32, 76, 4, 13, 0] -> [84, 0, 32, 13, 76, 4] [] -> [] [17, 59, 69, 46, 28, 3, 67, 54] -> [17, 54, 59, 67, 69, 3, 46, 28] [50, 72, 32, 3, 1, 3, 2, 32, 1] -> [50, 1, 72, 32, 2, 3] [63, 94, 68, 92, 61, 96, 1] -> [63, 1, 94, 96, 68, 61, 92] [83, 92, 6, 1, 72, 7, 66, 64, 40] -> [83, 40, 92, 64, 6, 66, 1, 7, 72] [7, 27, 24, 51, 80, 3, 34, 47, 68] -> [7, 68, 27, 47, 24, 34, 51, 3, 80] [93, 93, 29, 93, 29, 29, 93, 93, 29] -> [93, 29] Questions: [8, 2, 46, 62, 60, 82, 5, 79] -> ? Answer:
[8, 2, 46, 62, 60, 82, 5, 79] -> [8, 79, 2, 5, 46, 82, 62, 60]
[8, 2, 46, 62, 60, 82, 5, 79]
[8, 79, 2, 5, 46, 82, 62, 60]
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: [7, 62, 21, 9, 25, 6, 13, 0, 5, 53] -> ? Answer:
[7, 62, 21, 9, 25, 6, 13, 0, 5, 53] -> [7, 53]
[7, 62, 21, 9, 25, 6, 13, 0, 5, 53]
[7, 53]
c234
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repetitions in order of first appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [76, 42, 17, 76, 17] -> [76, 17] [57, 77, 57, 77, 77, 77] -> [57, 77, 77, 77] [0, 17, 17, 17, 70, 17] -> [17, 17, 17] [62, 6, 48, 1, 67, 69, 0, 59, 15, 48] -> [48] [81, 58, 58, 58, 58, 81, 58, 81, 81] -> [81, 81, 81, 58, 58, 58, 58] [97, 97, 97, 97] -> [97, 97, 97] [95, 95, 79, 5, 6, 22, 2] -> [95] [98, 2, 77, 98, 19] -> [98] Questions: [25, 89, 89, 25, 89, 25, 25, 89] -> ? Answer:
[25, 89, 89, 25, 89, 25, 25, 89] -> [25, 25, 25, 89, 89, 89]
[25, 89, 89, 25, 89, 25, 25, 89]
[25, 25, 25, 89, 89, 89]
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: [2, 28, 43, 67, 6, 9, 18] -> ? Answer:
[2, 28, 43, 67, 6, 9, 18] -> [43]
[2, 28, 43, 67, 6, 9, 18]
[43]
c218
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 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: [35, 35, 1, 35, 1, 35, 35, 1] -> [35, 35, 35, 35] [27, 27, 13, 13, 27, 27, 27, 13, 27, 13] -> [27, 27, 27, 27, 27] [42, 0, 0, 42, 0, 42, 0, 42, 42, 0] -> [42, 42, 42, 42] [41, 41, 41, 41, 41, 41, 41, 41] -> [41, 41, 41, 41, 41, 41, 41] [5, 83, 83, 5, 83, 5, 83, 83, 5, 83] -> [5, 5, 5] [0, 4, 19, 47, 2, 90, 5, 39, 73, 79] -> [] [43, 43, 43, 43, 43, 43, 43, 43, 43] -> [43, 43, 43, 43, 43, 43, 43, 43] [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [6, 6, 6, 6, 6, 6, 6, 6, 6] Questions: [18, 18, 18, 18, 18, 18, 18, 18, 18] -> ? Answer:
[18, 18, 18, 18, 18, 18, 18, 18, 18] -> [18, 18, 18, 18, 18, 18, 18, 18]
[18, 18, 18, 18, 18, 18, 18, 18, 18]
[18, 18, 18, 18, 18, 18, 18, 18]
c098
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: [6, 83, 43, 53, 86, 69, 49, 75] -> [7, 85, 46, 57, 91, 75, 56, 83] [9, 16, 28, 80] -> [10, 18, 31, 84] [36, 73, 47, 13, 6, 8, 17, 2, 19, 71] -> [37, 75, 50, 17, 11, 14, 24, 10, 28, 81] [3, 2, 47, 29, 9, 8, 0, 7, 75] -> [4, 4, 50, 33, 14, 14, 7, 15, 84] [2, 26] -> [3, 28] [0, 7, 1, 80, 4, 83, 46, 79] -> [1, 9, 4, 84, 9, 89, 53, 87] [55, 2, 22, 33, 53, 20, 37] -> [56, 4, 25, 37, 58, 26, 44] [16] -> [17] Questions: [] -> ? Answer:
[] -> []
[]
[]
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: [9, 7, 1, 4, 8, 3, 6, 2] -> ? Answer:
[9, 7, 1, 4, 8, 3, 6, 2] -> [9, 7, 1, 4, 8, 3, 6, 2]
[9, 7, 1, 4, 8, 3, 6, 2]
[9, 7, 1, 4, 8, 3, 6, 2]
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: [35, 0, 3, 29, 4, 6, 7, 9] -> ? Answer:
[35, 0, 3, 29, 4, 6, 7, 9] -> [35, 35, 35, 35, 35, 35, 35, 35, 35, 35]
[35, 0, 3, 29, 4, 6, 7, 9]
[35, 35, 35, 35, 35, 35, 35, 35, 35, 35]
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: [5, 4, 5, 3, 74, 3, 4] -> ? Answer:
[5, 4, 5, 3, 74, 3, 4] -> [16]
[5, 4, 5, 3, 74, 3, 4]
[16]
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: [1, 2, 1, 67] -> ? Answer:
[1, 2, 1, 67] -> [1]
[1, 2, 1, 67]
[1]