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
c068
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input and [7, 3, 8, 4, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 9] -> [0, 9, 7, 3, 8, 4, 3] [4, 6, 9, 0, 5] -> [4, 6, 9, 0, 5, 7, 3, 8, 4, 3] [9, 5, 7, 0, 1, 6, 2, 4, 8, 3] -> [9, 5, 7, 0, 1, 6, 2, 4, 8, 3, 7, 3, 8, 4, 3] [2, 7] -> [2, 7, 7, 3, 8, 4, 3] [4, 8, 1, 9, 3, 0, 2, 5, 6, 7] -> [4, 8, 1, 9, 3, 0, 2, 5, 6, 7, 7, 3, 8, 4, 3] [2] -> [2, 7, 3, 8, 4, 3] [1, 6, 7, 5, 2, 0] -> [1, 6, 7, 5, 2, 0, 7, 3, 8, 4, 3] [3, 7, 1, 2, 6, 9, 0, 4, 8, 5] -> [3, 7, 1, 2, 6, 9, 0, 4, 8, 5, 7, 3, 8, 4, 3] Questions: [9, 5, 1, 6] -> ? Answer:
[9, 5, 1, 6] -> [9, 5, 1, 6, 7, 3, 8, 4, 3]
[9, 5, 1, 6]
[9, 5, 1, 6, 7, 3, 8, 4, 3]
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: [3, 7, 1, 7, 8, 3, 1] -> ? Answer:
[3, 7, 1, 7, 8, 3, 1] -> [3, 7, 7, 8, 3, 1]
[3, 7, 1, 7, 8, 3, 1]
[3, 7, 7, 8, 3, 1]
c155
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "multiply each element by its index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 8, 8, 3, 3, 8, 3] -> [3, 16, 24, 12, 15, 48, 21] [3, 3, 3, 1, 2, 1] -> [3, 6, 9, 4, 10, 6] [5, 7, 1, 2, 3, 8, 4, 0, 6] -> [5, 14, 3, 8, 15, 48, 28, 0, 54] [8, 8, 1, 9, 1, 1] -> [8, 16, 3, 36, 5, 6] [6, 6, 9, 6, 9, 9, 9, 6] -> [6, 12, 27, 24, 45, 54, 63, 48] [1, 8, 1, 8, 8, 1, 1] -> [1, 16, 3, 32, 40, 6, 7] [0, 5, 0, 3, 1, 1, 3, 0, 3] -> [0, 10, 0, 12, 5, 6, 21, 0, 27] [1, 4, 6, 3, 4, 8, 1] -> [1, 8, 18, 12, 20, 48, 7] Questions: [0, 0, 5, 0, 0, 0] -> ? Answer:
[0, 0, 5, 0, 0, 0] -> [0, 0, 15, 0, 0, 0]
[0, 0, 5, 0, 0, 0]
[0, 0, 15, 0, 0, 0]
c158
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1] [1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0] [8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0] [7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0] [5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] [2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0] [1, 1, 1] -> [1, 0, 0] Questions: [1, 54, 8, 5, 32, 43, 40, 4, 7] -> ? Answer:
[1, 54, 8, 5, 32, 43, 40, 4, 7] -> [1, 0, 0, 0, 0, 0, 0, 0, 0]
[1, 54, 8, 5, 32, 43, 40, 4, 7]
[1, 0, 0, 0, 0, 0, 0, 0, 0]
c166
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in ascending order by the sum of their digits".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [61, 49, 53, 70, 8, 14, 94, 7] -> [14, 61, 70, 7, 53, 8, 49, 94] [98, 41, 5, 3, 20, 7, 4, 37, 55, 36] -> [20, 3, 4, 41, 5, 7, 36, 37, 55, 98] [93, 70, 19, 5, 52, 8, 0, 61] -> [0, 5, 70, 52, 61, 8, 19, 93] [37, 1, 43, 63, 93, 26, 4, 73] -> [1, 4, 43, 26, 63, 37, 73, 93] [2, 65, 4, 7, 25, 98, 6] -> [2, 4, 6, 7, 25, 65, 98] [43, 96, 0, 27, 85, 7] -> [0, 43, 7, 27, 85, 96] [73, 93, 6, 25, 71, 9, 53, 84, 1, 3] -> [1, 3, 6, 25, 71, 53, 9, 73, 93, 84] [2, 66, 6, 50, 21, 74, 14, 4, 1, 29] -> [1, 2, 21, 4, 50, 14, 6, 74, 29, 66] Questions: [4, 64, 6, 2, 1, 52, 9, 73, 7, 22] -> ? Answer:
[4, 64, 6, 2, 1, 52, 9, 73, 7, 22] -> [1, 2, 4, 22, 6, 52, 7, 9, 64, 73]
[4, 64, 6, 2, 1, 52, 9, 73, 7, 22]
[1, 2, 4, 22, 6, 52, 7, 9, 64, 73]
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: [16, 16, 5, 71, 5] -> ? Answer:
[16, 16, 5, 71, 5] -> [16, 5, 71]
[16, 16, 5, 71, 5]
[16, 5, 71]
c145
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace every element with element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [89, 0, 73] -> [89, 89, 89] [57, 0, 4, 9, 6, 97, 7, 2, 48, 77] -> [57, 57, 57, 57, 57, 57, 57, 57, 57, 57] [63, 6] -> [63, 63] [50, 1, 59, 28] -> [50, 50, 50, 50] [18, 9, 1, 38, 8] -> [18, 18, 18, 18, 18] [8, 0, 4] -> [8, 8, 8] [] -> [] [30, 39, 84, 7, 0, 1] -> [30, 30, 30, 30, 30, 30] Questions: [99, 61, 82, 7, 24, 0, 22, 1] -> ? Answer:
[99, 61, 82, 7, 24, 0, 22, 1] -> [99, 99, 99, 99, 99, 99, 99, 99]
[99, 61, 82, 7, 24, 0, 22, 1]
[99, 99, 99, 99, 99, 99, 99, 99]
c031
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 whichever are equal: the two elements or the last two".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 0, 3, 8, 7, 1, 4, 9, 1, 5] -> [3, 8, 7, 1, 4, 9, 1, 5] [0, 0, 1, 5, 7, 2, 9, 4, 3] -> [1, 5, 7, 2, 9, 4, 3] [2, 2, 7, 9, 1, 5, 9, 8, 0, 3] -> [7, 9, 1, 5, 9, 8, 0, 3] [3, 8, 5, 1, 1] -> [3, 8, 5] [2, 1, 4, 3, 9, 0, 0] -> [2, 1, 4, 3, 9] [9, 7, 9, 9] -> [9, 7] [7, 7, 5, 1, 9, 4, 3, 2] -> [5, 1, 9, 4, 3, 2] [8, 7, 7] -> [8] Questions: [3, 3, 0, 4, 5, 7, 9, 1, 3] -> ? Answer:
[3, 3, 0, 4, 5, 7, 9, 1, 3] -> [0, 4, 5, 7, 9, 1, 3]
[3, 3, 0, 4, 5, 7, 9, 1, 3]
[0, 4, 5, 7, 9, 1, 3]
c068
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input and [7, 3, 8, 4, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 9] -> [0, 9, 7, 3, 8, 4, 3] [4, 6, 9, 0, 5] -> [4, 6, 9, 0, 5, 7, 3, 8, 4, 3] [9, 5, 7, 0, 1, 6, 2, 4, 8, 3] -> [9, 5, 7, 0, 1, 6, 2, 4, 8, 3, 7, 3, 8, 4, 3] [2, 7] -> [2, 7, 7, 3, 8, 4, 3] [4, 8, 1, 9, 3, 0, 2, 5, 6, 7] -> [4, 8, 1, 9, 3, 0, 2, 5, 6, 7, 7, 3, 8, 4, 3] [2] -> [2, 7, 3, 8, 4, 3] [1, 6, 7, 5, 2, 0] -> [1, 6, 7, 5, 2, 0, 7, 3, 8, 4, 3] [3, 7, 1, 2, 6, 9, 0, 4, 8, 5] -> [3, 7, 1, 2, 6, 9, 0, 4, 8, 5, 7, 3, 8, 4, 3] Questions: [0, 2, 9, 4, 1, 7, 6, 8] -> ? Answer:
[0, 2, 9, 4, 1, 7, 6, 8] -> [0, 2, 9, 4, 1, 7, 6, 8, 7, 3, 8, 4, 3]
[0, 2, 9, 4, 1, 7, 6, 8]
[0, 2, 9, 4, 1, 7, 6, 8, 7, 3, 8, 4, 3]
c189
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 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: [7, 7, 5, 5, 5, 5, 7] -> [5, 6, 7] [57, 65, 65, 57, 65, 57, 65, 57, 65] -> [57, 58, 59, 60, 61, 62, 63, 64, 65] [9, 12, 9, 9, 12] -> [9, 10, 11, 12] [4, 8, 4, 3, 6, 4, 3] -> [3, 4, 5, 6, 7, 8] [77, 64, 77, 64, 64, 64, 77, 77, 64, 77] -> [64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77] [4, 6, 6, 6, 4] -> [4, 5, 6] [6, 6, 4, 0, 5, 0, 0, 6, 5] -> [0, 1, 2, 3, 4, 5, 6] [2, 6, 3, 2] -> [2, 3, 4, 5, 6] Questions: [44, 44, 44, 44] -> ? Answer:
[44, 44, 44, 44] -> [44]
[44, 44, 44, 44]
[44]
c020
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the first element with the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 7, 8, 9, 4, 0, 3, 2] -> [2, 1, 7, 8, 9, 4, 0, 3, 2] [0, 8, 5, 2, 7, 1, 4, 6, 9, 3] -> [3, 8, 5, 2, 7, 1, 4, 6, 9, 3] [7, 1, 0, 6, 3] -> [3, 1, 0, 6, 3] [5, 8, 6, 1, 0, 9, 7] -> [7, 8, 6, 1, 0, 9, 7] [3, 8, 6, 0] -> [0, 8, 6, 0] [8, 5, 7, 4, 2, 3, 6] -> [6, 5, 7, 4, 2, 3, 6] [0, 7, 1, 3, 4, 9, 6, 5] -> [5, 7, 1, 3, 4, 9, 6, 5] [1, 4, 9, 8, 2, 0, 5, 3, 6, 7] -> [7, 4, 9, 8, 2, 0, 5, 3, 6, 7] Questions: [2, 7, 0, 4, 9, 6, 8, 3, 5] -> ? Answer:
[2, 7, 0, 4, 9, 6, 8, 3, 5] -> [5, 7, 0, 4, 9, 6, 8, 3, 5]
[2, 7, 0, 4, 9, 6, 8, 3, 5]
[5, 7, 0, 4, 9, 6, 8, 3, 5]
c099
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all elements whose value < 50".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 70, 6, 1, 72, 5, 86, 58, 61] -> [70, 72, 86, 58, 61] [9, 81, 8, 65, 28, 52, 54, 7] -> [81, 65, 52, 54] [32, 68, 33, 7, 21] -> [68] [6, 14, 3] -> [] [85, 76, 66, 73, 89, 74, 16, 64, 1, 9] -> [85, 76, 66, 73, 89, 74, 64] [63, 29, 50, 3, 4, 5] -> [63, 50] [23, 86, 11] -> [86] [8, 97, 89, 2, 95, 4, 68, 71, 61] -> [97, 89, 95, 68, 71, 61] Questions: [4] -> ? Answer:
[4] -> []
[4]
[]
c040
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list contains a 3, else append 9 if the list contains a 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 0, 8, 5, 9, 1, 6, 2, 7] -> [4, 0, 8, 5, 9, 1, 6, 2, 7, 9] [9, 0] -> [9, 0, 9] [5, 0, 2, 9] -> [5, 0, 2, 9, 9] [7, 5, 8, 3, 4, 1, 6] -> [7, 5, 8, 3, 4, 1, 6, 3] [2, 8, 0, 5] -> [2, 8, 0, 5] [1, 8, 4, 3, 0, 6] -> [1, 8, 4, 3, 0, 6, 3] [] -> [] [3, 4, 7, 6, 0] -> [3, 4, 7, 6, 0, 3] Questions: [1, 9, 5, 0] -> ? Answer:
[1, 9, 5, 0] -> [1, 9, 5, 0, 9]
[1, 9, 5, 0]
[1, 9, 5, 0, 9]
c184
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only odd elements with an even index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 1, 48, 8, 2, 98, 13] -> [1] [67, 78, 17, 5, 55, 3, 6, 4, 41] -> [5, 3] [3, 5, 6, 21, 15, 77, 8, 86, 1] -> [5, 21, 77] [90, 31, 8, 2, 7, 24] -> [31] [9, 8, 0, 58, 21, 3] -> [3] [5, 10, 96, 79, 1, 7, 9, 99] -> [79, 7, 99] [9, 6, 2, 64, 15, 84] -> [] [3, 41, 7, 1, 11, 77, 9, 61, 4, 17] -> [41, 1, 77, 61, 17] Questions: [78, 18, 65, 3, 4, 6, 71] -> ? Answer:
[78, 18, 65, 3, 4, 6, 71] -> [3]
[78, 18, 65, 3, 4, 6, 71]
[3]
c007
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the first 2 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 6, 4, 5, 7] -> [8, 6] [2, 4, 7, 0, 8, 3, 5, 6, 1, 9] -> [2, 4] [3, 4, 2, 1] -> [3, 4] [3] -> [3] [3, 1, 0, 5, 7, 6, 2, 8] -> [3, 1] [0, 1, 4, 7, 5, 6, 3, 8, 2, 9] -> [0, 1] [5] -> [5] [6, 1, 7, 9, 5] -> [6, 1] Questions: [7, 2, 9, 3, 0, 6] -> ? Answer:
[7, 2, 9, 3, 0, 6] -> [7, 2]
[7, 2, 9, 3, 0, 6]
[7, 2]
c075
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element with an even index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 4, 0] -> [9, 0] [2, 4, 6, 3, 0, 8, 7] -> [2, 6, 0, 7] [2, 4, 8, 0] -> [2, 8] [3, 6, 5, 9, 0, 7, 2, 4, 8] -> [3, 5, 0, 2, 8] [9, 0, 6, 4, 1, 5, 7, 2, 3, 8] -> [9, 6, 1, 7, 3] [3, 0, 5, 1, 9, 8, 6, 2] -> [3, 5, 9, 6] [3, 2, 7, 5, 8, 1, 9] -> [3, 7, 8, 9] [1, 7, 8, 6, 3, 9, 2, 4, 5] -> [1, 8, 3, 2, 5] Questions: [7, 3] -> ? Answer:
[7, 3] -> [7]
[7, 3]
[7]
c068
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input and [7, 3, 8, 4, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 9] -> [0, 9, 7, 3, 8, 4, 3] [4, 6, 9, 0, 5] -> [4, 6, 9, 0, 5, 7, 3, 8, 4, 3] [9, 5, 7, 0, 1, 6, 2, 4, 8, 3] -> [9, 5, 7, 0, 1, 6, 2, 4, 8, 3, 7, 3, 8, 4, 3] [2, 7] -> [2, 7, 7, 3, 8, 4, 3] [4, 8, 1, 9, 3, 0, 2, 5, 6, 7] -> [4, 8, 1, 9, 3, 0, 2, 5, 6, 7, 7, 3, 8, 4, 3] [2] -> [2, 7, 3, 8, 4, 3] [1, 6, 7, 5, 2, 0] -> [1, 6, 7, 5, 2, 0, 7, 3, 8, 4, 3] [3, 7, 1, 2, 6, 9, 0, 4, 8, 5] -> [3, 7, 1, 2, 6, 9, 0, 4, 8, 5, 7, 3, 8, 4, 3] Questions: [6, 1, 9, 0, 4, 7, 8, 5, 2] -> ? Answer:
[6, 1, 9, 0, 4, 7, 8, 5, 2] -> [6, 1, 9, 0, 4, 7, 8, 5, 2, 7, 3, 8, 4, 3]
[6, 1, 9, 0, 4, 7, 8, 5, 2]
[6, 1, 9, 0, 4, 7, 8, 5, 2, 7, 3, 8, 4, 3]
c064
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first and last elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 8, 4] -> [8] [7, 1, 2, 9, 3, 0, 8, 4, 5, 6] -> [1, 2, 9, 3, 0, 8, 4, 5] [7, 9, 3, 6, 5, 1, 2, 8, 0] -> [9, 3, 6, 5, 1, 2, 8] [1, 6, 7, 2, 3, 5, 0, 4, 9] -> [6, 7, 2, 3, 5, 0, 4] [0, 5] -> [] [8, 7, 5, 2, 0, 4] -> [7, 5, 2, 0] [8, 3, 6, 1] -> [3, 6] [8, 2, 1, 0, 9, 7, 3, 6] -> [2, 1, 0, 9, 7, 3] Questions: [3, 8, 0, 4, 1, 2, 5, 9] -> ? Answer:
[3, 8, 0, 4, 1, 2, 5, 9] -> [8, 0, 4, 1, 2, 5]
[3, 8, 0, 4, 1, 2, 5, 9]
[8, 0, 4, 1, 2, 5]
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: [6, 98] -> ? Answer:
[6, 98] -> [0]
[6, 98]
[0]
c110
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 largest elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [] -> [] [61, 57, 55, 9, 39, 5] -> [55, 57, 61] [9, 26, 5, 50, 52, 8, 1, 94] -> [50, 52, 94] [6, 44] -> [6, 44] [6, 59, 18, 77, 1] -> [18, 59, 77] [11, 72, 48, 9, 95, 66, 2, 34, 8, 46] -> [66, 72, 95] [64] -> [64] [85, 39, 6, 2, 6, 27, 1, 80] -> [39, 80, 85] Questions: [47] -> ? Answer:
[47] -> [47]
[47]
[47]
c108
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 83] -> [86] [10, 0, 59, 5, 1, 9, 4] -> [88] [14, 4, 12] -> [30] [6, 0, 3, 82] -> [91] [5, 7, 4, 2] -> [18] [] -> [0] [62] -> [62] [22, 6, 1] -> [29] Questions: [54, 5] -> ? Answer:
[54, 5] -> [59]
[54, 5]
[59]
c110
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 largest elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [] -> [] [61, 57, 55, 9, 39, 5] -> [55, 57, 61] [9, 26, 5, 50, 52, 8, 1, 94] -> [50, 52, 94] [6, 44] -> [6, 44] [6, 59, 18, 77, 1] -> [18, 59, 77] [11, 72, 48, 9, 95, 66, 2, 34, 8, 46] -> [66, 72, 95] [64] -> [64] [85, 39, 6, 2, 6, 27, 1, 80] -> [39, 80, 85] Questions: [3, 22, 38, 3] -> ? Answer:
[3, 22, 38, 3] -> [3, 22, 38]
[3, 22, 38, 3]
[3, 22, 38]
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: [0, 93, 25, 35, 8, 79, 3, 65, 9] -> ? Answer:
[0, 93, 25, 35, 8, 79, 3, 65, 9] -> [0, 27, 10, 15, 0, 63, 0, 30, 0]
[0, 93, 25, 35, 8, 79, 3, 65, 9]
[0, 27, 10, 15, 0, 63, 0, 30, 0]
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: [86, 71] -> ? Answer:
[86, 71] -> []
[86, 71]
[]
c096
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 98 and append 37".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 86, 28, 75, 21, 0, 50, 98, 8, 22] -> [98, 7, 86, 28, 75, 21, 0, 50, 98, 8, 22, 37] [7, 58, 6, 24, 0] -> [98, 7, 58, 6, 24, 0, 37] [27] -> [98, 27, 37] [38] -> [98, 38, 37] [69, 7, 12, 23] -> [98, 69, 7, 12, 23, 37] [32, 27, 14] -> [98, 32, 27, 14, 37] [0, 20, 73, 83, 47, 9, 99] -> [98, 0, 20, 73, 83, 47, 9, 99, 37] [0, 93, 92, 5] -> [98, 0, 93, 92, 5, 37] Questions: [30, 77, 67, 2, 0, 3, 94, 6] -> ? Answer:
[30, 77, 67, 2, 0, 3, 94, 6] -> [98, 30, 77, 67, 2, 0, 3, 94, 6, 37]
[30, 77, 67, 2, 0, 3, 94, 6]
[98, 30, 77, 67, 2, 0, 3, 94, 6, 37]
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: [9, 0, 4, 53, 3, 42] -> ? Answer:
[9, 0, 4, 53, 3, 42] -> [9, 0, 4, 3]
[9, 0, 4, 53, 3, 42]
[9, 0, 4, 3]
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: [12, 38, 85, 4, 6, 2, 2, 38] -> ? Answer:
[12, 38, 85, 4, 6, 2, 2, 38] -> [48]
[12, 38, 85, 4, 6, 2, 2, 38]
[48]
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: [0, 7, 6, 4, 3] -> ? Answer:
[0, 7, 6, 4, 3] -> [9, 3, 4, 0, 0, 7, 6, 4, 3, 7, 2, 9, 1]
[0, 7, 6, 4, 3]
[9, 3, 4, 0, 0, 7, 6, 4, 3, 7, 2, 9, 1]
c197
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the number of occurrences of that element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 8, 7, 20, 61, 45, 0] -> [2, 1, 1, 1, 1, 1, 2] [11, 11, 11] -> [3, 3, 3] [94, 53, 35, 60, 1, 38] -> [1, 1, 1, 1, 1, 1] [] -> [] [75, 75, 75, 75, 75, 75, 75, 75, 75, 75] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [26, 63, 63, 63, 26, 26, 63, 63, 26] -> [4, 5, 5, 5, 4, 4, 5, 5, 4] [58, 71, 11, 11, 58] -> [2, 1, 2, 2, 2] [25, 25, 25, 25, 25, 25, 25] -> [7, 7, 7, 7, 7, 7, 7] Questions: [0, 59, 0, 0, 0, 91, 7, 84, 22, 84] -> ? Answer:
[0, 59, 0, 0, 0, 91, 7, 84, 22, 84] -> [4, 1, 4, 4, 4, 1, 1, 2, 1, 2]
[0, 59, 0, 0, 0, 91, 7, 84, 22, 84]
[4, 1, 4, 4, 4, 1, 1, 2, 1, 2]
c220
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "if input length is even, double each element, else triple it".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [27, 5, 5] -> [81, 15, 15] [8, 7, 31] -> [24, 21, 93] [4, 0, 5, 2, 1, 3, 6, 9, 33] -> [12, 0, 15, 6, 3, 9, 18, 27, 99] [2, 6] -> [4, 12] [42, 42] -> [84, 84] [7, 0, 2, 5, 9, 1, 4] -> [21, 0, 6, 15, 27, 3, 12] [14, 6] -> [28, 12] [9, 5, 1, 49, 9, 15] -> [18, 10, 2, 98, 18, 30] Questions: [4, 0, 29] -> ? Answer:
[4, 0, 29] -> [12, 0, 87]
[4, 0, 29]
[12, 0, 87]
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: [7, 1, 9, 0, 6, 4, 2, 8] -> ? Answer:
[7, 1, 9, 0, 6, 4, 2, 8] -> [7, 7, 7, 7, 7, 7, 1, 9, 0, 6, 4, 2, 8]
[7, 1, 9, 0, 6, 4, 2, 8]
[7, 7, 7, 7, 7, 7, 1, 9, 0, 6, 4, 2, 8]
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: [54, 31, 50, 31, 54, 54, 50, 54, 31, 50] -> ? Answer:
[54, 31, 50, 31, 54, 54, 50, 54, 31, 50] -> [31, 50, 31, 50, 31, 50]
[54, 31, 50, 31, 54, 54, 50, 54, 31, 50]
[31, 50, 31, 50, 31, 50]
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: [60, 28, 64, 62, 78, 82] -> ? Answer:
[60, 28, 64, 62, 78, 82] -> [60, 0, 28, 0, 64, 0, 62, 0, 78, 0, 82, 0]
[60, 28, 64, 62, 78, 82]
[60, 0, 28, 0, 64, 0, 62, 0, 78, 0, 82, 0]
c005
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N + 1, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 4, 6, 4] -> [4] [3, 7, 9, 7, 1, 1, 8, 9] -> [7] [2, 5, 3, 1, 0, 4, 7, 8] -> [3] [7, 6, 8, 3, 1, 9, 0, 2, 4] -> [2] [4, 2, 6, 3, 1, 0] -> [1] [2, 6, 6] -> [6] [2, 8, 6, 3, 1] -> [6] [4, 2, 5, 7, 6, 9, 8] -> [6] Questions: [5, 9, 4, 1, 6, 2, 3, 7, 0] -> ? Answer:
[5, 9, 4, 1, 6, 2, 3, 7, 0] -> [2]
[5, 9, 4, 1, 6, 2, 3, 7, 0]
[2]
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: [8] -> ? Answer:
[8] -> [9]
[8]
[9]
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: [7, 9, 1, 6, 2, 3, 4] -> ? Answer:
[7, 9, 1, 6, 2, 3, 4] -> [7, 7, 7, 7, 7, 7, 9, 1, 6, 2, 3, 4]
[7, 9, 1, 6, 2, 3, 4]
[7, 7, 7, 7, 7, 7, 9, 1, 6, 2, 3, 4]
c142
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "every digit in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [36] -> [3, 6] [44, 94] -> [4, 4, 9, 4] [8, 79, 9, 85] -> [0, 8, 7, 9, 0, 9, 8, 5] [6, 37, 2, 25] -> [0, 6, 3, 7, 0, 2, 2, 5] [98, 7, 22, 58, 73, 43, 78] -> [9, 8, 0, 7, 2, 2, 5, 8, 7, 3, 4, 3, 7, 8] [1, 37, 98, 69, 12, 70] -> [0, 1, 3, 7, 9, 8, 6, 9, 1, 2, 7, 0] [11, 4, 17] -> [1, 1, 0, 4, 1, 7] [2, 7, 73, 14, 3, 40] -> [0, 2, 0, 7, 7, 3, 1, 4, 0, 3, 4, 0] Questions: [9, 96, 40] -> ? Answer:
[9, 96, 40] -> [0, 9, 9, 6, 4, 0]
[9, 96, 40]
[0, 9, 9, 6, 4, 0]
c107
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [35, 70, 1, 35, 70, 9, 35, 26, 9] -> [35, 70, 1, 9, 26] [17, 25, 25, 43, 8, 25, 43] -> [17, 25, 43, 8] [96, 25, 25, 3, 81, 16, 16, 16, 81] -> [96, 25, 3, 81, 16] [37, 11, 11, 3, 3, 87, 87, 11] -> [37, 11, 3, 87] [] -> [] [51, 51, 51, 51] -> [51] [75, 21, 21, 21, 75, 75] -> [75, 21] [8, 8, 8, 8] -> [8] Questions: [0, 52, 69, 4, 52, 69, 0] -> ? Answer:
[0, 52, 69, 4, 52, 69, 0] -> [0, 52, 69, 4]
[0, 52, 69, 4, 52, 69, 0]
[0, 52, 69, 4]
c247
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 before the first 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [30, 6, 0, 8, 0, 88, 3] -> [30, 6] [62, 0, 3, 0, 5, 56, 49] -> [62] [66, 0, 66, 66, 1] -> [66] [39, 39, 0, 39, 0, 39, 39, 39, 39] -> [39, 39] [6, 1, 7, 0, 6, 2, 0, 6, 69] -> [6, 1, 7] [84, 84, 84, 0, 7, 0, 62, 7, 62, 0] -> [84, 84, 84] [44, 8, 0, 13, 82, 16, 48, 5, 32] -> [44, 8] [6, 50, 50, 0, 7, 0, 8] -> [6, 50, 50] Questions: [6, 0, 77, 6, 0, 77, 2, 6, 2] -> ? Answer:
[6, 0, 77, 6, 0, 77, 2, 6, 2] -> [6]
[6, 0, 77, 6, 0, 77, 2, 6, 2]
[6]
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: [3, 95, 2, 12, 59, 3] -> ? Answer:
[3, 95, 2, 12, 59, 3] -> []
[3, 95, 2, 12, 59, 3]
[]
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: [81, 5, 6, 3, 7] -> ? Answer:
[81, 5, 6, 3, 7] -> [7, 81, 5, 6, 3, 7]
[81, 5, 6, 3, 7]
[7, 81, 5, 6, 3, 7]
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: [10, 99, 42, 24, 3, 70] -> ? Answer:
[10, 99, 42, 24, 3, 70] -> [0, 1, 1, 1, 1, 0]
[10, 99, 42, 24, 3, 70]
[0, 1, 1, 1, 1, 0]
c198
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in descending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [] -> [] [94, 64, 8, 3, 1, 20, 38, 54, 0, 41] -> [94, 64, 54, 41, 38, 20, 8, 3, 1, 0] [98, 9, 6, 68, 5, 3, 4, 7] -> [98, 68, 9, 7, 6, 5, 4, 3] [5, 78, 58, 5, 30, 32, 7, 72, 0, 2] -> [78, 72, 58, 32, 30, 7, 5, 2, 0] [4, 64, 39, 25, 83, 52, 5, 0, 88, 49] -> [88, 83, 64, 52, 49, 39, 25, 5, 4, 0] [35, 80, 9, 22, 4, 57] -> [80, 57, 35, 22, 9, 4] [4, 14, 1, 3, 75, 6] -> [75, 14, 6, 4, 3, 1] [93, 93, 93, 93, 93, 93, 93, 93, 93] -> [93] Questions: [57, 88, 2, 59, 73, 1, 37, 26] -> ? Answer:
[57, 88, 2, 59, 73, 1, 37, 26] -> [88, 73, 59, 57, 37, 26, 2, 1]
[57, 88, 2, 59, 73, 1, 37, 26]
[88, 73, 59, 57, 37, 26, 2, 1]
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: [23, 48, 35] -> ? Answer:
[23, 48, 35] -> [35, 23, 48, 35]
[23, 48, 35]
[35, 23, 48, 35]
c101
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [11,19, 24, 33, 42, 5, 82, 0, 64, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [47, 59, 59, 23, 4, 78, 23] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [43, 7, 78, 7, 43, 4, 4] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [83] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [58, 58, 58] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [84, 84, 84] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [14] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [52, 57, 55, 51] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [62, 20, 8, 62, 56, 8, 3, 98, 66] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] Questions: [69, 69, 69, 69, 69, 69] -> ? Answer:
[69, 69, 69, 69, 69, 69] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[69, 69, 69, 69, 69, 69]
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
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: [9, 7] -> ? Answer:
[9, 7] -> [9, 9, 7, 7]
[9, 7]
[9, 9, 7, 7]
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: [1, 48, 74, 72, 44, 50] -> ? Answer:
[1, 48, 74, 72, 44, 50] -> [1, 48, 74, 74, 74, 74]
[1, 48, 74, 72, 44, 50]
[1, 48, 74, 74, 74, 74]
c134
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements M through N, M = element 1, N = element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 9, 37, 37, 3, 9, 9, 3, 37, 2] -> [3, 9, 2] [5, 7, 1, 10, 3, 18, 93, 2, 4] -> [5, 7, 1, 10, 2, 4] [3, 6, 7, 30, 1, 29, 4, 3, 2, 2] -> [3, 6, 4, 3, 2, 2] [2, 2, 41, 41, 2, 89] -> [2, 41, 41, 2, 89] [6, 7, 23, 2, 1, 8, 4, 4] -> [6, 7, 23, 2, 1, 4] [3, 7, 86, 3, 3, 7, 3, 86, 86, 86] -> [3, 7, 86, 86, 86] [2, 5, 3, 3, 37, 2, 3, 3, 1, 94] -> [2, 2, 3, 3, 1, 94] [6, 7, 1, 40, 5, 8, 27, 89] -> [6, 7, 1, 40, 5, 89] Questions: [1, 2, 5, 8, 8, 5, 2, 1] -> ? Answer:
[1, 2, 5, 8, 8, 5, 2, 1] -> [5, 8, 8, 5, 2, 1]
[1, 2, 5, 8, 8, 5, 2, 1]
[5, 8, 8, 5, 2, 1]
c158
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1] [1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0] [8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0] [7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0] [5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] [2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0] [1, 1, 1] -> [1, 0, 0] Questions: [80, 2, 1, 44, 0, 20, 9, 48, 86, 3] -> ? Answer:
[80, 2, 1, 44, 0, 20, 9, 48, 86, 3] -> [0, 1, 0, 0, 0, 0, 0, 0, 0, 0]
[80, 2, 1, 44, 0, 20, 9, 48, 86, 3]
[0, 1, 0, 0, 0, 0, 0, 0, 0, 0]
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, 2, 9] -> ? Answer:
[7, 2, 9] -> []
[7, 2, 9]
[]
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: [51, 3, 51, 5, 5, 11] -> ? Answer:
[51, 3, 51, 5, 5, 11] -> [3, 5, 5, 11]
[51, 3, 51, 5, 5, 11]
[3, 5, 5, 11]
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: [9, 7, 1, 5, 2, 0, 6, 4] -> ? Answer:
[9, 7, 1, 5, 2, 0, 6, 4] -> [7, 1, 5]
[9, 7, 1, 5, 2, 0, 6, 4]
[7, 1, 5]
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: [33, 9, 34, 33, 0, 59] -> ? Answer:
[33, 9, 34, 33, 0, 59] -> [18, 42, 77, 20, 36]
[33, 9, 34, 33, 0, 59]
[18, 42, 77, 20, 36]
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: [4, 8, 1, 0, 6, 9, 5] -> ? Answer:
[4, 8, 1, 0, 6, 9, 5] -> [4, 4, 8, 1, 0, 6, 9, 5]
[4, 8, 1, 0, 6, 9, 5]
[4, 4, 8, 1, 0, 6, 9, 5]
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: [7, 0, 2, 3] -> ? Answer:
[7, 0, 2, 3] -> [3, 0, 2, 7]
[7, 0, 2, 3]
[3, 0, 2, 7]
c112
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [14, 23, 88, 7, 0, 82, 8] -> [1, 2, 3, 4, 5, 6, 7, 8] [38, 0, 5, 47, 80, 86, 4, 21, 94, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [2, 28, 78, 80, 90, 79, 8, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [12] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] [95, 93, 13] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] [0, 4, 8, 53, 1] -> [1] [38, 0, 1, 22, 16, 3] -> [1, 2, 3] [0, 9, 1, 3, 98, 4, 77, 36, 8] -> [1, 2, 3, 4, 5, 6, 7, 8] Questions: [30, 56, 31, 33, 92, 50, 1, 8, 4] -> ? Answer:
[30, 56, 31, 33, 92, 50, 1, 8, 4] -> [1, 2, 3, 4]
[30, 56, 31, 33, 92, 50, 1, 8, 4]
[1, 2, 3, 4]
c045
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 4, 5, 0, 3, 6, 9, 1] -> [8, 4, 5, 0, 3, 6, 9, 1] [7, 4, 2, 3] -> [7, 4, 2, 3] [0, 9, 5] -> [0, 9, 5] [5, 3, 7, 6, 0, 9, 2, 1, 8] -> [5, 3, 7, 6, 0, 9, 2, 1, 8] [0, 3, 4, 6, 1, 8, 9, 7, 2] -> [0, 3, 4, 6, 1, 8, 9, 7, 2] [3, 5, 8, 4, 1, 0, 2, 7] -> [3, 5, 8, 4, 1, 0, 2, 7] [9, 1, 8, 4, 2] -> [9, 1, 8, 4, 2] [7] -> [7] Questions: [4, 9, 7, 6, 3, 0] -> ? Answer:
[4, 9, 7, 6, 3, 0] -> [4, 9, 7, 6, 3, 0]
[4, 9, 7, 6, 3, 0]
[4, 9, 7, 6, 3, 0]
c189
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 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: [7, 7, 5, 5, 5, 5, 7] -> [5, 6, 7] [57, 65, 65, 57, 65, 57, 65, 57, 65] -> [57, 58, 59, 60, 61, 62, 63, 64, 65] [9, 12, 9, 9, 12] -> [9, 10, 11, 12] [4, 8, 4, 3, 6, 4, 3] -> [3, 4, 5, 6, 7, 8] [77, 64, 77, 64, 64, 64, 77, 77, 64, 77] -> [64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77] [4, 6, 6, 6, 4] -> [4, 5, 6] [6, 6, 4, 0, 5, 0, 0, 6, 5] -> [0, 1, 2, 3, 4, 5, 6] [2, 6, 3, 2] -> [2, 3, 4, 5, 6] Questions: [9, 8, 9, 8, 8, 9, 9, 8, 9] -> ? Answer:
[9, 8, 9, 8, 8, 9, 9, 8, 9] -> [8, 9]
[9, 8, 9, 8, 8, 9, 9, 8, 9]
[8, 9]
c233
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of occurrences of each unique element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 80, 86, 80, 62, 7, 78, 62, 4] -> [1, 2, 1, 2, 1, 1, 1] [81, 76, 71, 76, 71] -> [1, 2, 2] [0, 0, 4] -> [2, 1] [47, 5, 90, 19, 0, 86, 63, 86, 87] -> [1, 1, 1, 1, 1, 2, 1, 1] [68, 6, 8, 7, 17, 75, 0, 69, 19, 49] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [17, 84, 84, 84, 84, 92, 84, 92, 92] -> [1, 5, 3] [25, 7, 75, 79, 25, 75] -> [2, 1, 2, 1] [41, 65, 65, 65, 41] -> [2, 3] Questions: [64, 52, 52, 64, 64, 64, 52] -> ? Answer:
[64, 52, 52, 64, 64, 64, 52] -> [4, 3]
[64, 52, 52, 64, 64, 64, 52]
[4, 3]
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: [9, 8, 0, 1, 5, 2, 6, 3, 4, 7] -> ? Answer:
[9, 8, 0, 1, 5, 2, 6, 3, 4, 7] -> [0, 1, 9, 8, 5, 2, 6, 3, 4, 7]
[9, 8, 0, 1, 5, 2, 6, 3, 4, 7]
[0, 1, 9, 8, 5, 2, 6, 3, 4, 7]
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: [39, 6, 18, 15, 1, 3, 6, 7, 7] -> ? Answer:
[39, 6, 18, 15, 1, 3, 6, 7, 7] -> [39, 6, 18, 15, 1, 3, 6, 7, 7]
[39, 6, 18, 15, 1, 3, 6, 7, 7]
[39, 6, 18, 15, 1, 3, 6, 7, 7]
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: [8, 5, 9, 45, 57, 87, 27, 12, 35] -> ? Answer:
[8, 5, 9, 45, 57, 87, 27, 12, 35] -> [0, 0, 0, 20, 35, 56, 14, 2, 15]
[8, 5, 9, 45, 57, 87, 27, 12, 35]
[0, 0, 0, 20, 35, 56, 14, 2, 15]
c120
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but first element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [99, 2] -> [99] [2, 24, 1, 76, 46, 48, 13, 0] -> [2] [18, 6, 95, 2, 5, 1] -> [18] [65, 71, 30] -> [65] [52, 9, 1, 13, 49, 5, 35, 87] -> [52] [55, 81, 20, 8, 29] -> [55] [32, 49, 44] -> [32] [4, 3, 8, 2] -> [4] Questions: [80, 9, 6, 53, 87, 3, 18, 1, 86, 51] -> ? Answer:
[80, 9, 6, 53, 87, 3, 18, 1, 86, 51] -> [80]
[80, 9, 6, 53, 87, 3, 18, 1, 86, 51]
[80]
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: [36, 0, 6, 87, 17, 10] -> ? Answer:
[36, 0, 6, 87, 17, 10] -> [36, 0, 87, 17, 10]
[36, 0, 6, 87, 17, 10]
[36, 0, 87, 17, 10]
c101
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [11,19, 24, 33, 42, 5, 82, 0, 64, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [47, 59, 59, 23, 4, 78, 23] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [43, 7, 78, 7, 43, 4, 4] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [83] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [58, 58, 58] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [84, 84, 84] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [14] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [52, 57, 55, 51] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [62, 20, 8, 62, 56, 8, 3, 98, 66] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] Questions: [6, 10, 52, 28, 28, 52, 6, 88, 6, 52] -> ? Answer:
[6, 10, 52, 28, 28, 52, 6, 88, 6, 52] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[6, 10, 52, 28, 28, 52, 6, 88, 6, 52]
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
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: [6, 4, 7, 4, 7, 1, 4, 4, 4] -> ? Answer:
[6, 4, 7, 4, 7, 1, 4, 4, 4] -> [6, 7, 4, 7, 1, 4, 4, 4]
[6, 4, 7, 4, 7, 1, 4, 4, 4]
[6, 7, 4, 7, 1, 4, 4, 4]
c194
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input; prepend and append the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7] [74, 1, 24] -> [3, 24, 1, 74, 3] [94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8] [6] -> [1, 6, 1] [53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7] [4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10] [92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7] [21] -> [1, 21, 1] Questions: [73, 93, 12, 14, 27, 7, 33, 41] -> ? Answer:
[73, 93, 12, 14, 27, 7, 33, 41] -> [8, 41, 33, 7, 27, 14, 12, 93, 73, 8]
[73, 93, 12, 14, 27, 7, 33, 41]
[8, 41, 33, 7, 27, 14, 12, 93, 73, 8]
c105
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate all but the last element with all but the first element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [49, 11, 73, 7] -> [49, 11, 73, 11, 73, 7] [3, 81, 35, 26] -> [3, 81, 35, 81, 35, 26] [6, 8, 5] -> [6, 8, 8, 5] [47, 45, 73] -> [47, 45, 45, 73] [62, 4, 8, 75, 2, 19] -> [62, 4, 8, 75, 2, 4, 8, 75, 2, 19] [39, 61, 49, 63, 89] -> [39, 61, 49, 63, 61, 49, 63, 89] [59, 65, 90, 9] -> [59, 65, 90, 65, 90, 9] [2, 20, 8, 28, 17, 88] -> [2, 20, 8, 28, 17, 20, 8, 28, 17, 88] Questions: [31, 78, 2, 91, 6, 1] -> ? Answer:
[31, 78, 2, 91, 6, 1] -> [31, 78, 2, 91, 6, 78, 2, 91, 6, 1]
[31, 78, 2, 91, 6, 1]
[31, 78, 2, 91, 6, 78, 2, 91, 6, 1]
c096
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 98 and append 37".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 86, 28, 75, 21, 0, 50, 98, 8, 22] -> [98, 7, 86, 28, 75, 21, 0, 50, 98, 8, 22, 37] [7, 58, 6, 24, 0] -> [98, 7, 58, 6, 24, 0, 37] [27] -> [98, 27, 37] [38] -> [98, 38, 37] [69, 7, 12, 23] -> [98, 69, 7, 12, 23, 37] [32, 27, 14] -> [98, 32, 27, 14, 37] [0, 20, 73, 83, 47, 9, 99] -> [98, 0, 20, 73, 83, 47, 9, 99, 37] [0, 93, 92, 5] -> [98, 0, 93, 92, 5, 37] Questions: [6, 35, 14, 46, 11] -> ? Answer:
[6, 35, 14, 46, 11] -> [98, 6, 35, 14, 46, 11, 37]
[6, 35, 14, 46, 11]
[98, 6, 35, 14, 46, 11, 37]
c233
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of occurrences of each unique element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 80, 86, 80, 62, 7, 78, 62, 4] -> [1, 2, 1, 2, 1, 1, 1] [81, 76, 71, 76, 71] -> [1, 2, 2] [0, 0, 4] -> [2, 1] [47, 5, 90, 19, 0, 86, 63, 86, 87] -> [1, 1, 1, 1, 1, 2, 1, 1] [68, 6, 8, 7, 17, 75, 0, 69, 19, 49] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [17, 84, 84, 84, 84, 92, 84, 92, 92] -> [1, 5, 3] [25, 7, 75, 79, 25, 75] -> [2, 1, 2, 1] [41, 65, 65, 65, 41] -> [2, 3] Questions: [35, 13, 35, 13, 35, 13, 35, 13, 13] -> ? Answer:
[35, 13, 35, 13, 35, 13, 35, 13, 13] -> [4, 5]
[35, 13, 35, 13, 35, 13, 35, 13, 13]
[4, 5]
c169
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "second largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [38, 4, 32, 9, 28, 96, 21, 59, 14, 8] -> [59] [1, 37, 2, 59, 60, 71, 96, 30] -> [71] [34, 9, 6, 42, 0, 8, 36] -> [36] [66, 7, 31, 0, 8, 4, 2, 65, 1, 86] -> [66] [1, 6, 3, 62, 2, 87] -> [62] [69, 67, 75, 9, 66, 34, 4] -> [69] [18, 40, 0, 58, 33, 5, 6] -> [40] [62, 76, 4, 0, 42, 91, 8, 98] -> [91] Questions: [9, 78, 4, 53, 13, 87, 14] -> ? Answer:
[9, 78, 4, 53, 13, 87, 14] -> [78]
[9, 78, 4, 53, 13, 87, 14]
[78]
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: [5, 8, 4, 3, 9, 2, 6, 1, 7, 0] -> ? Answer:
[5, 8, 4, 3, 9, 2, 6, 1, 7, 0] -> [5, 8, 4, 3, 9, 3, 6, 1, 7, 0]
[5, 8, 4, 3, 9, 2, 6, 1, 7, 0]
[5, 8, 4, 3, 9, 3, 6, 1, 7, 0]
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: [90, 2, 81, 6, 80, 3, 5, 64, 7, 21] -> ? Answer:
[90, 2, 81, 6, 80, 3, 5, 64, 7, 21] -> []
[90, 2, 81, 6, 80, 3, 5, 64, 7, 21]
[]
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: [4, 0, 5, 9] -> ? Answer:
[4, 0, 5, 9] -> [4, 4, 5, 9]
[4, 0, 5, 9]
[4, 4, 5, 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, 6] -> ? Answer:
[0, 6] -> [0, 6, 4]
[0, 6]
[0, 6, 4]
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: [83, 83, 83, 83, 83, 83, 83, 83, 83] -> ? Answer:
[83, 83, 83, 83, 83, 83, 83, 83, 83] -> [83, 83, 83, 83, 83, 83, 83, 83]
[83, 83, 83, 83, 83, 83, 83, 83, 83]
[83, 83, 83, 83, 83, 83, 83, 83]
c101
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [11,19, 24, 33, 42, 5, 82, 0, 64, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [47, 59, 59, 23, 4, 78, 23] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [43, 7, 78, 7, 43, 4, 4] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [83] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [58, 58, 58] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [84, 84, 84] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [14] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [52, 57, 55, 51] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] [62, 20, 8, 62, 56, 8, 3, 98, 66] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] Questions: [] -> ? Answer:
[] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[]
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
c113
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose ones digit is greater than element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 2] -> [] [9, 7, 26, 0, 48, 10, 53] -> [7, 26, 0, 48, 10, 53] [6, 0, 42, 1] -> [0, 42, 1] [6, 75, 1, 3, 5, 2, 44] -> [75, 1, 3, 5, 2, 44] [13, 78, 6, 8, 9] -> [13, 78, 6, 8, 9] [54, 6, 23, 15] -> [54, 6, 23, 15] [8, 31, 72, 13, 79, 81] -> [31, 72, 13, 81] [2, 1, 0, 31, 9, 74, 25, 46, 26, 29] -> [1, 0, 31] Questions: [6, 3, 48, 55, 52, 5, 7, 42, 27, 66] -> ? Answer:
[6, 3, 48, 55, 52, 5, 7, 42, 27, 66] -> [3, 55, 52, 5, 42]
[6, 3, 48, 55, 52, 5, 7, 42, 27, 66]
[3, 55, 52, 5, 42]
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: [1, 5, 6] -> ? Answer:
[1, 5, 6] -> [6, 1, 5]
[1, 5, 6]
[6, 1, 5]
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: [7, 6, 8] -> ? Answer:
[7, 6, 8] -> [9, 3, 4, 0, 7, 6, 8, 7, 2, 9, 1]
[7, 6, 8]
[9, 3, 4, 0, 7, 6, 8, 7, 2, 9, 1]
c198
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in descending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [] -> [] [94, 64, 8, 3, 1, 20, 38, 54, 0, 41] -> [94, 64, 54, 41, 38, 20, 8, 3, 1, 0] [98, 9, 6, 68, 5, 3, 4, 7] -> [98, 68, 9, 7, 6, 5, 4, 3] [5, 78, 58, 5, 30, 32, 7, 72, 0, 2] -> [78, 72, 58, 32, 30, 7, 5, 2, 0] [4, 64, 39, 25, 83, 52, 5, 0, 88, 49] -> [88, 83, 64, 52, 49, 39, 25, 5, 4, 0] [35, 80, 9, 22, 4, 57] -> [80, 57, 35, 22, 9, 4] [4, 14, 1, 3, 75, 6] -> [75, 14, 6, 4, 3, 1] [93, 93, 93, 93, 93, 93, 93, 93, 93] -> [93] Questions: [34, 8, 34, 8, 68, 68] -> ? Answer:
[34, 8, 34, 8, 68, 68] -> [68, 34, 8]
[34, 8, 34, 8, 68, 68]
[68, 34, 8]
c044
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] Questions: [2, 6, 7, 6] -> ? Answer:
[2, 6, 7, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[2, 6, 7, 6]
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
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: [9, 36] -> ? Answer:
[9, 36] -> [36, 9, 36]
[9, 36]
[36, 9, 36]
c112
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [14, 23, 88, 7, 0, 82, 8] -> [1, 2, 3, 4, 5, 6, 7, 8] [38, 0, 5, 47, 80, 86, 4, 21, 94, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [2, 28, 78, 80, 90, 79, 8, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [12] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] [95, 93, 13] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] [0, 4, 8, 53, 1] -> [1] [38, 0, 1, 22, 16, 3] -> [1, 2, 3] [0, 9, 1, 3, 98, 4, 77, 36, 8] -> [1, 2, 3, 4, 5, 6, 7, 8] Questions: [3, 9, 8, 7] -> ? Answer:
[3, 9, 8, 7] -> [1, 2, 3, 4, 5, 6, 7]
[3, 9, 8, 7]
[1, 2, 3, 4, 5, 6, 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, 2, 6, 3] -> ? Answer:
[4, 2, 6, 3] -> [4, 8, 6, 3]
[4, 2, 6, 3]
[4, 8, 6, 3]
c159
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element N counts the number of occurrences of N, up to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 3, 3, 3, 4] -> [0, 0, 4, 2] [2, 5, 6, 9, 6, 5, 5, 9] -> [0, 1, 0, 0, 3, 2, 0, 0, 2] [8, 1, 1, 1, 8, 8, 8, 8, 1] -> [4, 0, 0, 0, 0, 0, 0, 5] [6] -> [0, 0, 0, 0, 0, 1] [10, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 1] [2, 6] -> [0, 1, 0, 0, 0, 1] [1, 1, 9, 9, 9, 9, 9, 9, 9, 9] -> [2, 0, 0, 0, 0, 0, 0, 0, 8] [8, 1, 8, 8, 8, 2, 8, 2, 1] -> [2, 2, 0, 0, 0, 0, 0, 5] Questions: [6, 3] -> ? Answer:
[6, 3] -> [0, 0, 1, 0, 0, 1]
[6, 3]
[0, 0, 1, 0, 0, 1]
c104
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 19] -> [19] [2, 40, 85, 46, 9] -> [85] [1, 22, 88, 12, 8, 81, 9, 16, 48, 18] -> [88] [24, 60, 4] -> [60] [80, 1, 50, 49, 5, 48, 63] -> [80] [22, 29, 65, 20, 6] -> [65] [0, 8, 3, 55, 1, 86, 7, 56] -> [86] [3, 43, 39] -> [43] Questions: [34, 73, 4, 12] -> ? Answer:
[34, 73, 4, 12] -> [73]
[34, 73, 4, 12]
[73]
c223
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap the digits of each element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [53, 23, 42] -> [35, 32, 24] [17, 4, 59, 58, 9, 69, 63, 13, 22] -> [71, 40, 95, 85, 90, 96, 36, 31, 22] [32, 80, 94, 8, 25, 34, 9, 0] -> [23, 8, 49, 80, 52, 43, 90, 0] [52, 59, 77, 88, 32] -> [25, 95, 77, 88, 23] [2, 74, 54, 99, 36, 57, 4, 0] -> [20, 47, 45, 99, 63, 75, 40, 0] [34, 12, 92, 7, 50, 87, 3, 0, 17, 74] -> [43, 21, 29, 70, 5, 78, 30, 0, 71, 47] [12, 85, 66, 41, 5, 4, 36] -> [21, 58, 66, 14, 50, 40, 63] [20, 75, 47, 7, 51, 2, 23, 40, 19, 36] -> [2, 57, 74, 70, 15, 20, 32, 4, 91, 63] Questions: [2, 7, 65, 4, 13] -> ? Answer:
[2, 7, 65, 4, 13] -> [20, 70, 56, 40, 31]
[2, 7, 65, 4, 13]
[20, 70, 56, 40, 31]
c025
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 6, 5, 3, 1, 8, 4, 9, 7] -> [0, 5, 3, 1, 8, 4, 9, 7] [1, 6, 5, 0, 8, 9, 7, 2, 4, 3] -> [1, 5, 0, 8, 9, 7, 2, 4, 3] [3, 4, 6, 2] -> [3, 6, 2] [4, 9, 3, 2] -> [4, 3, 2] [1, 2] -> [1] [5, 2, 7, 3, 6] -> [5, 7, 3, 6] [0, 6] -> [0] [1, 9, 6, 8, 0, 5] -> [1, 6, 8, 0, 5] Questions: [1, 5, 8] -> ? Answer:
[1, 5, 8] -> [1, 8]
[1, 5, 8]
[1, 8]
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: [6, 4, 3, 8, 5, 0] -> ? Answer:
[6, 4, 3, 8, 5, 0] -> [6, 3, 4, 8, 5, 0]
[6, 4, 3, 8, 5, 0]
[6, 3, 4, 8, 5, 0]
c099
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all elements whose value < 50".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 70, 6, 1, 72, 5, 86, 58, 61] -> [70, 72, 86, 58, 61] [9, 81, 8, 65, 28, 52, 54, 7] -> [81, 65, 52, 54] [32, 68, 33, 7, 21] -> [68] [6, 14, 3] -> [] [85, 76, 66, 73, 89, 74, 16, 64, 1, 9] -> [85, 76, 66, 73, 89, 74, 64] [63, 29, 50, 3, 4, 5] -> [63, 50] [23, 86, 11] -> [86] [8, 97, 89, 2, 95, 4, 68, 71, 61] -> [97, 89, 95, 68, 71, 61] Questions: [22, 47, 3, 97, 8, 98, 6, 4] -> ? Answer:
[22, 47, 3, 97, 8, 98, 6, 4] -> [97, 98]
[22, 47, 3, 97, 8, 98, 6, 4]
[97, 98]
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, 5] -> ? Answer:
[8, 5] -> []
[8, 5]
[]
c182
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 every third element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 52, 12, 4, 6, 0, 75, 5, 63] -> [12, 0, 63] [94, 7, 6, 4, 2, 3, 5, 16, 8] -> [6, 3, 8] [8, 50, 31, 43, 94, 24, 2, 11, 95, 1] -> [31, 24, 95] [61, 41, 21, 5, 42, 8, 6, 4, 8, 54] -> [21, 8, 8] [7, 6, 13, 64, 37, 34, 44, 9, 4] -> [13, 34, 4] [6, 86, 3, 4, 26, 41, 54, 90, 9, 62] -> [3, 41, 9] [12, 4, 40, 8, 91, 32, 83, 98, 7, 29] -> [40, 32, 7] [5, 88, 3, 12, 2, 72, 75, 15, 88] -> [3, 72, 88] Questions: [0, 28, 1, 1, 8, 10, 72, 5, 6, 9] -> ? Answer:
[0, 28, 1, 1, 8, 10, 72, 5, 6, 9] -> [1, 10, 6]
[0, 28, 1, 1, 8, 10, 72, 5, 6, 9]
[1, 10, 6]
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: [1, 5, 14, 9, 8, 3, 6, 88] -> ? Answer:
[1, 5, 14, 9, 8, 3, 6, 88] -> [1, 45, 88]
[1, 5, 14, 9, 8, 3, 6, 88]
[1, 45, 88]
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: [70, 5, 42, 5, 4] -> ? Answer:
[70, 5, 42, 5, 4] -> [2]
[70, 5, 42, 5, 4]
[2]
c187
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input with itself, separated by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 83, 59] -> [6, 83, 59, 0, 6, 83, 59] [7, 8] -> [7, 8, 0, 7, 8] [7, 71, 38, 20, 94] -> [7, 71, 38, 20, 94, 0, 7, 71, 38, 20, 94] [66, 69, 30, 1, 77] -> [66, 69, 30, 1, 77, 0, 66, 69, 30, 1, 77] [26] -> [26, 0, 26] [44, 1, 6, 53] -> [44, 1, 6, 53, 0, 44, 1, 6, 53] [75, 64, 53, 5, 2] -> [75, 64, 53, 5, 2, 0, 75, 64, 53, 5, 2] [43, 14] -> [43, 14, 0, 43, 14] Questions: [57] -> ? Answer:
[57] -> [57, 0, 57]
[57]
[57, 0, 57]
c031
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 whichever are equal: the two elements or the last two".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 0, 3, 8, 7, 1, 4, 9, 1, 5] -> [3, 8, 7, 1, 4, 9, 1, 5] [0, 0, 1, 5, 7, 2, 9, 4, 3] -> [1, 5, 7, 2, 9, 4, 3] [2, 2, 7, 9, 1, 5, 9, 8, 0, 3] -> [7, 9, 1, 5, 9, 8, 0, 3] [3, 8, 5, 1, 1] -> [3, 8, 5] [2, 1, 4, 3, 9, 0, 0] -> [2, 1, 4, 3, 9] [9, 7, 9, 9] -> [9, 7] [7, 7, 5, 1, 9, 4, 3, 2] -> [5, 1, 9, 4, 3, 2] [8, 7, 7] -> [8] Questions: [2, 6, 8, 9, 9] -> ? Answer:
[2, 6, 8, 9, 9] -> [2, 6, 8]
[2, 6, 8, 9, 9]
[2, 6, 8]
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: [3, 1] -> ? Answer:
[3, 1] -> [3, 8, 1]
[3, 1]
[3, 8, 1]
c162
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 3 * M + 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16] [15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52] [6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25] [5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13] [4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25] [16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28] [1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37] [0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34] Questions: [5, 3] -> ? Answer:
[5, 3] -> [22, 16]
[5, 3]
[22, 16]
c075
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element with an even index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 4, 0] -> [9, 0] [2, 4, 6, 3, 0, 8, 7] -> [2, 6, 0, 7] [2, 4, 8, 0] -> [2, 8] [3, 6, 5, 9, 0, 7, 2, 4, 8] -> [3, 5, 0, 2, 8] [9, 0, 6, 4, 1, 5, 7, 2, 3, 8] -> [9, 6, 1, 7, 3] [3, 0, 5, 1, 9, 8, 6, 2] -> [3, 5, 9, 6] [3, 2, 7, 5, 8, 1, 9] -> [3, 7, 8, 9] [1, 7, 8, 6, 3, 9, 2, 4, 5] -> [1, 8, 3, 2, 5] Questions: [4, 5, 9, 0, 3, 1, 2, 7] -> ? Answer:
[4, 5, 9, 0, 3, 1, 2, 7] -> [4, 9, 3, 2]
[4, 5, 9, 0, 3, 1, 2, 7]
[4, 9, 3, 2]