Dataset Viewer
Auto-converted to Parquet
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
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: [3, 7, 9, 0, 2] -> ? Answer:
[3, 7, 9, 0, 2] -> [3, 8, 9, 0, 2]
[3, 7, 9, 0, 2]
[3, 8, 9, 0, 2]
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: [38, 60, 26, 7, 73] -> ? Answer:
[38, 60, 26, 7, 73] -> [7, 26, 80, 38, 60, 73]
[38, 60, 26, 7, 73]
[7, 26, 80, 38, 60, 73]
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: [1, 3, 61, 35, 70] -> ? Answer:
[1, 3, 61, 35, 70] -> [3]
[1, 3, 61, 35, 70]
[3]
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: [18] -> ? Answer:
[18] -> []
[18]
[]
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, 8, 2, 3] -> ? Answer:
[9, 7, 1, 8, 2, 3] -> [7, 1, 8]
[9, 7, 1, 8, 2, 3]
[7, 1, 8]
c015
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements M + 2 through N + 2, M = element 1, N = element 2".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 5, 1, 6, 3, 1, 6, 0] -> [1, 6, 3, 1, 6] [3, 4, 5, 7, 6, 0, 8, 9, 2, 1] -> [6, 0] [2, 4, 0, 3, 7, 9, 6, 1] -> [3, 7, 9] [2, 7, 9, 1, 0, 8, 3, 4, 5, 6] -> [1, 0, 8, 3, 4, 5] [1, 4, 9, 3, 7, 8, 6] -> [9, 3, 7, 8] [2, 3, 5, 4, 7, 1] -> [4, 7] [5, 9, 9, 3, 3, 9] -> [] [1, 2, 1, 4, 5, 5] -> [1, 4] Questions: [4, 6, 5, 3, 0, 8, 7, 2, 9] -> ? Answer:
[4, 6, 5, 3, 0, 8, 7, 2, 9] -> [8, 7, 2]
[4, 6, 5, 3, 0, 8, 7, 2, 9]
[8, 7, 2]
c154
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3] [3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9] [91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91] [63, 7, 1, 2, 77, 57, 0, 5] -> [63, 7, 1, 6, 77, 57, 0, 5] [10, 93, 22, 10, 5, 10] -> [30, 93, 66, 30, 5, 30] [33, 2, 0, 21, 6, 28, 3, 8, 4] -> [33, 6, 0, 21, 18, 84, 3, 24, 12] [77, 8, 1, 77, 3, 9, 7, 4] -> [77, 24, 1, 77, 3, 9, 7, 12] [6, 9, 43, 7, 65, 7] -> [18, 9, 43, 7, 65, 7] Questions: [6, 8, 85, 1, 14, 6, 75, 3, 29] -> ? Answer:
[6, 8, 85, 1, 14, 6, 75, 3, 29] -> [18, 24, 85, 1, 42, 18, 75, 3, 29]
[6, 8, 85, 1, 14, 6, 75, 3, 29]
[18, 24, 85, 1, 42, 18, 75, 3, 29]
c219
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only every other element, starting from the end of the list".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33] [5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26] [5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58] [48, 6, 25, 14, 3, 55, 47, 38, 1] -> [48, 25, 3, 47, 1] [8, 3, 67, 89, 18, 73, 7, 6] -> [3, 89, 73, 6] [91, 51, 6, 5, 0, 1, 8, 61, 4, 95] -> [51, 5, 1, 61, 95] [85, 58, 98, 9, 41, 61, 7, 6, 67] -> [85, 98, 41, 7, 67] [32, 67, 9, 48, 3, 6, 7, 0, 8] -> [32, 9, 3, 7, 8] Questions: [70, 4, 6, 91, 57, 9, 1, 99, 8, 2] -> ? Answer:
[70, 4, 6, 91, 57, 9, 1, 99, 8, 2] -> [4, 91, 9, 99, 2]
[70, 4, 6, 91, 57, 9, 1, 99, 8, 2]
[4, 91, 9, 99, 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: [4, 2, 9, 8, 5, 12, 7, 1, 52] -> ? Answer:
[4, 2, 9, 8, 5, 12, 7, 1, 52] -> [4, 2, 9, 8, 5, 7, 1]
[4, 2, 9, 8, 5, 12, 7, 1, 52]
[4, 2, 9, 8, 5, 7, 1]
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: [9, 2, 0] -> ? Answer:
[9, 2, 0] -> [9, 8, 2, 0]
[9, 2, 0]
[9, 8, 2, 0]
c203
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 M positive multiples of the smallest element, where M is the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 60, 47] -> [31, 62, 93] [58, 33] -> [33, 66] [2, 23, 94, 91, 14, 1, 36, 32, 97, 77] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [8, 86, 35, 22, 9] -> [8, 16, 24, 32, 40] [91] -> [91] [22, 25] -> [22, 44] [67, 46, 27] -> [27, 54, 81] [56, 97, 24, 79] -> [24, 48, 72, 96] Questions: [53] -> ? Answer:
[53] -> [53]
[53]
[53]
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: [33, 45] -> ? Answer:
[33, 45] -> [2, 2]
[33, 45]
[2, 2]
c103
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [24, 47, 46, 40, 20] -> [5] [5, 99, 8, 30, 42, 13, 2, 83, 58, 44] -> [10] [40, 11] -> [2] [44, 6, 51, 71, 81, 68, 3] -> [7] [35, 17, 3, 6, 23, 0, 5, 90] -> [8] [9, 97, 28, 78, 48, 6, 31] -> [7] [71, 80] -> [2] [86, 27, 53] -> [3] Questions: [] -> ? Answer:
[] -> [0]
[]
[0]
c237
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of unique elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 8, 1, 2, 2, 2, 1] -> [2, 10, 11] [0, 2, 3, 5, 5, 0, 6, 6, 0, 5] -> [0, 2, 5, 10, 16] [2, 8, 6, 48, 48, 48, 8, 48, 8] -> [2, 10, 16, 64] [0, 5, 0, 15, 5, 2, 28, 4, 7, 4] -> [0, 5, 20, 22, 50, 54, 61] [1, 4, 4, 1, 3, 6, 3] -> [1, 5, 8, 14] [13, 8, 2, 4, 9, 9, 9] -> [13, 21, 23, 27, 36] [8, 0, 0, 15, 15, 3, 4] -> [8, 8, 23, 26, 30] [0, 8, 9, 8, 8, 0, 6] -> [0, 8, 17, 23] Questions: [1, 4, 7, 4, 8, 8, 7] -> ? Answer:
[1, 4, 7, 4, 8, 8, 7] -> [1, 5, 12, 20]
[1, 4, 7, 4, 8, 8, 7]
[1, 5, 12, 20]
c245
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of times element 1 appears in elements 2 and following".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 4, 5, 9, 2, 63, 8] -> [1] [33, 33, 33, 33, 33, 33, 33] -> [6] [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9] [35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0] [1, 75, 61, 2, 53, 86, 93, 4] -> [0] [9, 9, 9, 9, 58, 9, 58, 9] -> [5] [13, 13, 13, 13, 13, 13, 13, 13] -> [7] [4, 34, 77, 6, 0, 8, 94, 2, 7] -> [0] Questions: [1, 6, 64, 3, 1, 95, 90, 20, 7] -> ? Answer:
[1, 6, 64, 3, 1, 95, 90, 20, 7] -> [1]
[1, 6, 64, 3, 1, 95, 90, 20, 7]
[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: [0, 40, 7, 81, 4, 62, 45, 2, 5] -> ? Answer:
[0, 40, 7, 81, 4, 62, 45, 2, 5] -> [81]
[0, 40, 7, 81, 4, 62, 45, 2, 5]
[81]
c230
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the smallest element to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40] -> [40] [6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] [35] -> [35] [6, 13] -> [6, 8, 10, 12] [44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62] [11, 2] -> [2, 4, 6, 8, 10] [63, 63, 75] -> [63, 65, 67, 69, 71, 73, 75] [29] -> [29] Questions: [50, 46] -> ? Answer:
[50, 46] -> [46, 48, 50]
[50, 46]
[46, 48, 50]
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: [2, 19, 88, 9, 11, 93, 13, 8, 60] -> ? Answer:
[2, 19, 88, 9, 11, 93, 13, 8, 60] -> [19, 88]
[2, 19, 88, 9, 11, 93, 13, 8, 60]
[19, 88]
c219
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only every other element, starting from the end of the list".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33] [5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26] [5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58] [48, 6, 25, 14, 3, 55, 47, 38, 1] -> [48, 25, 3, 47, 1] [8, 3, 67, 89, 18, 73, 7, 6] -> [3, 89, 73, 6] [91, 51, 6, 5, 0, 1, 8, 61, 4, 95] -> [51, 5, 1, 61, 95] [85, 58, 98, 9, 41, 61, 7, 6, 67] -> [85, 98, 41, 7, 67] [32, 67, 9, 48, 3, 6, 7, 0, 8] -> [32, 9, 3, 7, 8] Questions: [3, 26, 13, 96, 85, 8, 84, 83] -> ? Answer:
[3, 26, 13, 96, 85, 8, 84, 83] -> [26, 96, 8, 83]
[3, 26, 13, 96, 85, 8, 84, 83]
[26, 96, 8, 83]
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, 6, 0, 4, 2] -> ? Answer:
[8, 6, 0, 4, 2] -> [9, 8, 3, 8, 7]
[8, 6, 0, 4, 2]
[9, 8, 3, 8, 7]
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: [27, 27, 87, 5, 87, 27, 5, 87, 5, 5] -> ? Answer:
[27, 27, 87, 5, 87, 27, 5, 87, 5, 5] -> [1, 2, 1, 1, 2, 3, 2, 3, 3, 4]
[27, 27, 87, 5, 87, 27, 5, 87, 5, 5]
[1, 2, 1, 1, 2, 3, 2, 3, 3, 4]
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: [8, 3, 4, 9, 2, 7] -> ? Answer:
[8, 3, 4, 9, 2, 7] -> [4, 4, 4, 9, 2, 7]
[8, 3, 4, 9, 2, 7]
[4, 4, 4, 9, 2, 7]
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: [47, 11, 9, 70, 2, 5, 7, 36] -> ? Answer:
[47, 11, 9, 70, 2, 5, 7, 36] -> [47, 11, 9, 2, 5, 7, 36]
[47, 11, 9, 70, 2, 5, 7, 36]
[47, 11, 9, 2, 5, 7, 36]
c167
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements divisible by 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [19, 73, 1, 3, 2, 6] -> [3, 6] [82, 89, 67, 51, 88, 8] -> [51] [9, 1, 83, 4, 95, 29, 44, 7] -> [9] [15, 6, 60, 66, 37, 63, 33, 53, 3, 0] -> [15, 6, 60, 66, 63, 33, 3, 0] [54, 8, 6, 0, 2, 70, 7, 9, 3, 19] -> [54, 6, 0, 9, 3] [2, 14, 7, 91, 80, 20, 31, 38] -> [] [0, 4, 73, 8, 8, 78] -> [0, 78] [96, 94, 9, 12, 7, 57, 0, 5, 1] -> [96, 9, 12, 57, 0] Questions: [89, 3, 48, 99, 8, 5, 45] -> ? Answer:
[89, 3, 48, 99, 8, 5, 45] -> [3, 48, 99, 45]
[89, 3, 48, 99, 8, 5, 45]
[3, 48, 99, 45]
c124
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element M, M = element N, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 0, 0] -> [1] [8, 24, 5, 24, 0, 82, 5, 4, 2] -> [24] [1, 1, 1, 1, 1, 1, 1, 1] -> [1] [2, 8, 2, 65, 7, 7, 9, 11, 2] -> [11] [7, 2, 7, 7, 3, 2, 3, 3, 63, 2] -> [7] [2, 5, 4, 55, 81, 0] -> [81] [1, 4, 49, 3, 2, 0, 4] -> [1] [6, 6, 6, 17, 29, 4, 6, 32, 32] -> [17] Questions: [2, 1, 6, 4, 1, 7, 80] -> ? Answer:
[2, 1, 6, 4, 1, 7, 80] -> [2]
[2, 1, 6, 4, 1, 7, 80]
[2]
c200
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "tens digits of the elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 1, 14, 28, 78, 53, 9] -> [0, 0, 0, 1, 2, 5, 7] [7, 67, 48, 6, 92, 0, 9, 79] -> [0, 0, 0, 0, 4, 6, 7, 9] [79, 87, 57] -> [5, 7, 8] [69, 84, 8, 36, 15] -> [0, 1, 3, 6, 8] [12, 66, 98, 37] -> [1, 3, 6, 9] [1, 47, 84] -> [0, 4, 8] [66, 10, 74, 56] -> [1, 5, 6, 7] [79, 7, 90, 76, 0, 1] -> [0, 0, 0, 7, 7, 9] Questions: [10, 0, 93, 63, 4, 26, 80] -> ? Answer:
[10, 0, 93, 63, 4, 26, 80] -> [0, 0, 1, 2, 6, 8, 9]
[10, 0, 93, 63, 4, 26, 80]
[0, 0, 1, 2, 6, 8, 9]
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: [0, 7, 2, 1, 8] -> ? Answer:
[0, 7, 2, 1, 8] -> [8, 7, 2, 1, 0]
[0, 7, 2, 1, 8]
[8, 7, 2, 1, 0]
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: [82] -> ? Answer:
[82] -> [82]
[82]
[82]
c223
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap the digits of each element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [53, 23, 42] -> [35, 32, 24] [17, 4, 59, 58, 9, 69, 63, 13, 22] -> [71, 40, 95, 85, 90, 96, 36, 31, 22] [32, 80, 94, 8, 25, 34, 9, 0] -> [23, 8, 49, 80, 52, 43, 90, 0] [52, 59, 77, 88, 32] -> [25, 95, 77, 88, 23] [2, 74, 54, 99, 36, 57, 4, 0] -> [20, 47, 45, 99, 63, 75, 40, 0] [34, 12, 92, 7, 50, 87, 3, 0, 17, 74] -> [43, 21, 29, 70, 5, 78, 30, 0, 71, 47] [12, 85, 66, 41, 5, 4, 36] -> [21, 58, 66, 14, 50, 40, 63] [20, 75, 47, 7, 51, 2, 23, 40, 19, 36] -> [2, 57, 74, 70, 15, 20, 32, 4, 91, 63] Questions: [0, 57, 17, 49, 98, 11, 45, 28, 92] -> ? Answer:
[0, 57, 17, 49, 98, 11, 45, 28, 92] -> [0, 75, 71, 94, 89, 11, 54, 82, 29]
[0, 57, 17, 49, 98, 11, 45, 28, 92]
[0, 75, 71, 94, 89, 11, 54, 82, 29]
c092
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 [92, 63, 34, 18, 55] with input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [21, 40, 9, 52, 7, 80] -> [92, 63, 34, 18, 55, 21, 40, 9, 52, 7, 80] [12, 27, 65, 4, 31, 8] -> [92, 63, 34, 18, 55, 12, 27, 65, 4, 31, 8] [23, 33, 76, 58, 90, 8] -> [92, 63, 34, 18, 55, 23, 33, 76, 58, 90, 8] [7, 16, 60, 34, 58, 73, 0, 79, 86] -> [92, 63, 34, 18, 55, 7, 16, 60, 34, 58, 73, 0, 79, 86] [57, 9, 33, 52, 4, 3, 0, 39] -> [92, 63, 34, 18, 55, 57, 9, 33, 52, 4, 3, 0, 39] [87, 12, 50, 66, 64] -> [92, 63, 34, 18, 55, 87, 12, 50, 66, 64] [41, 35, 4, 3, 25, 47, 88, 98, 0] -> [92, 63, 34, 18, 55, 41, 35, 4, 3, 25, 47, 88, 98, 0] [47, 5, 57] -> [92, 63, 34, 18, 55, 47, 5, 57] Questions: [10, 27, 85, 84, 74, 4, 20, 6, 8, 44] -> ? Answer:
[10, 27, 85, 84, 74, 4, 20, 6, 8, 44] -> [92, 63, 34, 18, 55, 10, 27, 85, 84, 74, 4, 20, 6, 8, 44]
[10, 27, 85, 84, 74, 4, 20, 6, 8, 44]
[92, 63, 34, 18, 55, 10, 27, 85, 84, 74, 4, 20, 6, 8, 44]
c200
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "tens digits of the elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 1, 14, 28, 78, 53, 9] -> [0, 0, 0, 1, 2, 5, 7] [7, 67, 48, 6, 92, 0, 9, 79] -> [0, 0, 0, 0, 4, 6, 7, 9] [79, 87, 57] -> [5, 7, 8] [69, 84, 8, 36, 15] -> [0, 1, 3, 6, 8] [12, 66, 98, 37] -> [1, 3, 6, 9] [1, 47, 84] -> [0, 4, 8] [66, 10, 74, 56] -> [1, 5, 6, 7] [79, 7, 90, 76, 0, 1] -> [0, 0, 0, 7, 7, 9] Questions: [9, 15, 41] -> ? Answer:
[9, 15, 41] -> [0, 1, 4]
[9, 15, 41]
[0, 1, 4]
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, 28, 15, 9, 7] -> ? Answer:
[4, 28, 15, 9, 7] -> [12, 84, 45, 27, 21]
[4, 28, 15, 9, 7]
[12, 84, 45, 27, 21]
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: [76, 6, 32, 78, 5, 1, 6, 4] -> ? Answer:
[76, 6, 32, 78, 5, 1, 6, 4] -> [76, 6, 32, 76, 77, 78, 5, 1, 6, 4]
[76, 6, 32, 78, 5, 1, 6, 4]
[76, 6, 32, 76, 77, 78, 5, 1, 6, 4]
c063
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 N + 1 elements, N = element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 9, 3, 5, 2, 0, 6, 7, 4] -> [3, 5, 2, 0, 6, 7, 4] [1, 2, 6, 9] -> [6, 9] [9] -> [] [2, 9, 6, 0, 3, 5, 4, 7, 8, 1] -> [0, 3, 5, 4, 7, 8, 1] [0, 5, 9, 6, 2] -> [5, 9, 6, 2] [1, 4, 8, 5] -> [8, 5] [0, 7] -> [7] [0, 9, 6, 2, 3, 8] -> [9, 6, 2, 3, 8] Questions: [1, 5, 9] -> ? Answer:
[1, 5, 9] -> [9]
[1, 5, 9]
[9]
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: [2, 1, 9, 4, 7, 8] -> ? Answer:
[2, 1, 9, 4, 7, 8] -> [9, 4, 7, 8]
[2, 1, 9, 4, 7, 8]
[9, 4, 7, 8]
c061
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 1, 3, 2] -> [2] [7, 1, 3, 8, 0, 9, 5, 4, 2] -> [2] [4, 0, 6, 7, 1, 8] -> [8] [6, 7, 2, 9, 8, 3, 1, 0, 4, 5] -> [5] [5, 1] -> [1] [0, 8, 4, 5] -> [5] [5, 2, 0, 8, 1, 4, 9, 6, 3, 7] -> [7] [5, 8, 9, 6, 7] -> [7] Questions: [6, 1, 3, 2, 4, 0] -> ? Answer:
[6, 1, 3, 2, 4, 0] -> [0]
[6, 1, 3, 2, 4, 0]
[0]
c203
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 M positive multiples of the smallest element, where M is the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [31, 60, 47] -> [31, 62, 93] [58, 33] -> [33, 66] [2, 23, 94, 91, 14, 1, 36, 32, 97, 77] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [8, 86, 35, 22, 9] -> [8, 16, 24, 32, 40] [91] -> [91] [22, 25] -> [22, 44] [67, 46, 27] -> [27, 54, 81] [56, 97, 24, 79] -> [24, 48, 72, 96] Questions: [13, 24, 13] -> ? Answer:
[13, 24, 13] -> [13, 26, 39]
[13, 24, 13]
[13, 26, 39]
c158
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1] [1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0] [8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0] [7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0] [5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] [2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0] [1, 1, 1] -> [1, 0, 0] Questions: [6, 6, 8, 1, 1, 6] -> ? Answer:
[6, 6, 8, 1, 1, 6] -> [0, 0, 0, 0, 0, 1]
[6, 6, 8, 1, 1, 6]
[0, 0, 0, 0, 0, 1]
c180
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "take the smallest element, append the second smallest, prepend the third smallest, append the fourth smallest, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [43, 15, 16, 18, 32, 22, 98, 3] -> [43, 22, 16, 3, 15, 18, 32, 98] [6, 27, 75, 54, 73, 2, 85, 97, 7] -> [85, 73, 27, 6, 2, 7, 54, 75, 97] [5, 27, 62, 54, 88, 8, 6, 68] -> [68, 54, 8, 5, 6, 27, 62, 88] [0, 17, 45, 35, 5, 1, 6, 68, 60] -> [60, 35, 6, 1, 0, 5, 17, 45, 68] [70, 81, 6, 46, 90, 9, 23, 20, 1, 4] -> [81, 46, 20, 6, 1, 4, 9, 23, 70, 90] [43, 12, 6, 24, 1, 75] -> [43, 12, 1, 6, 24, 75] [0, 23, 2, 7, 3, 6, 57] -> [23, 6, 2, 0, 3, 7, 57] [0, 85, 36, 7, 4, 9, 13, 62] -> [62, 13, 7, 0, 4, 9, 36, 85] Questions: [8, 95, 71, 15, 21, 23] -> ? Answer:
[8, 95, 71, 15, 21, 23] -> [71, 21, 8, 15, 23, 95]
[8, 95, 71, 15, 21, 23]
[71, 21, 8, 15, 23, 95]
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: [0, 89, 89, 0, 0, 0, 89, 0, 89] -> ? Answer:
[0, 89, 89, 0, 0, 0, 89, 0, 89] -> [1, 1, 2, 2, 3, 4, 3, 5, 4]
[0, 89, 89, 0, 0, 0, 89, 0, 89]
[1, 1, 2, 2, 3, 4, 3, 5, 4]
c245
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of times element 1 appears in elements 2 and following".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 4, 5, 9, 2, 63, 8] -> [1] [33, 33, 33, 33, 33, 33, 33] -> [6] [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9] [35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0] [1, 75, 61, 2, 53, 86, 93, 4] -> [0] [9, 9, 9, 9, 58, 9, 58, 9] -> [5] [13, 13, 13, 13, 13, 13, 13, 13] -> [7] [4, 34, 77, 6, 0, 8, 94, 2, 7] -> [0] Questions: [6, 0, 31, 6, 95, 73, 70] -> ? Answer:
[6, 0, 31, 6, 95, 73, 70] -> [1]
[6, 0, 31, 6, 95, 73, 70]
[1]
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: [2, 56, 4, 26, 0, 6, 17, 68] -> ? Answer:
[2, 56, 4, 26, 0, 6, 17, 68] -> [2, 56, 4, 26]
[2, 56, 4, 26, 0, 6, 17, 68]
[2, 56, 4, 26]
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: [64, 9, 48] -> ? Answer:
[64, 9, 48] -> [9, 48, 73, 64]
[64, 9, 48]
[9, 48, 73, 64]
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: [6, 3, 9, 6, 9, 13] -> ? Answer:
[6, 3, 9, 6, 9, 13] -> [3, 13]
[6, 3, 9, 6, 9, 13]
[3, 13]
c171
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 6, 7, 6, 4, 4] -> [7, 13, 20, 26, 30, 34] [3, 5, 15, 2, 3, 4, 7, 2] -> [3, 8, 23, 25, 28, 32, 39, 41] [7, 9, 9, 9, 7, 7, 9, 7, 7] -> [7, 16, 25, 34, 41, 48, 57, 64, 71] [1, 0, 1, 1, 1, 0] -> [1, 1, 2, 3, 4, 4] [8, 0, 8, 0, 0, 8, 16] -> [8, 8, 16, 16, 16, 24, 40] [5, 5, 5, 5, 5, 5] -> [5, 10, 15, 20, 25, 30] [0, 0, 0, 6, 6, 3, 6] -> [0, 0, 0, 6, 12, 15, 21] [1, 3, 13, 13, 10, 12, 2, 3, 13, 2] -> [1, 4, 17, 30, 40, 52, 54, 57, 70, 72] Questions: [2, 5, 7, 5, 2, 5, 5, 5] -> ? Answer:
[2, 5, 7, 5, 2, 5, 5, 5] -> [2, 7, 14, 19, 21, 26, 31, 36]
[2, 5, 7, 5, 2, 5, 5, 5]
[2, 7, 14, 19, 21, 26, 31, 36]
c094
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [27, 4, 70, 28, 91, 82, 80, 7, 0] -> [70, 28, 27, 4, 91, 82, 80, 7, 0] [37, 5, 34, 45, 63, 25] -> [34, 45, 37, 5, 63, 25] [34, 8, 5, 0, 86, 52, 53, 33, 4, 1] -> [5, 0, 34, 8, 86, 52, 53, 33, 4, 1] [22, 2, 27, 48] -> [27, 48, 22, 2] [6, 59, 5] -> [5, 6, 59] [18, 6, 8, 54, 2, 38, 91] -> [8, 54, 18, 6, 2, 38, 91] [5, 73, 6, 2, 89, 87, 30, 85, 64, 1] -> [6, 2, 5, 73, 89, 87, 30, 85, 64, 1] [8, 26, 9, 31, 4, 13, 7, 50] -> [9, 31, 8, 26, 4, 13, 7, 50] Questions: [74, 41, 10, 95, 88, 12, 2, 0, 8] -> ? Answer:
[74, 41, 10, 95, 88, 12, 2, 0, 8] -> [10, 95, 74, 41, 88, 12, 2, 0, 8]
[74, 41, 10, 95, 88, 12, 2, 0, 8]
[10, 95, 74, 41, 88, 12, 2, 0, 8]
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: [63, 31, 92, 9, 8, 0, 7, 12, 78] -> ? Answer:
[63, 31, 92, 9, 8, 0, 7, 12, 78] -> [63, 78]
[63, 31, 92, 9, 8, 0, 7, 12, 78]
[63, 78]
c023
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert as element 2: 8 if the list length > 5 else 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 8, 0, 7, 6, 4, 2] -> [9, 5, 3, 8, 0, 7, 6, 4, 2] [4, 1, 2, 0, 6, 9] -> [4, 5, 1, 2, 0, 6, 9] [6, 2, 8, 5, 1, 9, 7, 3, 4] -> [6, 5, 2, 8, 5, 1, 9, 7, 3, 4] [6, 2] -> [6, 8, 2] [7, 9, 2, 1, 4, 3, 8, 6, 0] -> [7, 5, 9, 2, 1, 4, 3, 8, 6, 0] [6, 2, 4, 3] -> [6, 8, 2, 4, 3] [0, 7, 1, 5, 4] -> [0, 5, 7, 1, 5, 4] [4, 8, 9, 5, 1, 7, 6, 3, 0, 2] -> [4, 5, 8, 9, 5, 1, 7, 6, 3, 0, 2] Questions: [7, 9, 5, 3, 6, 0, 4, 2, 8] -> ? Answer:
[7, 9, 5, 3, 6, 0, 4, 2, 8] -> [7, 5, 9, 5, 3, 6, 0, 4, 2, 8]
[7, 9, 5, 3, 6, 0, 4, 2, 8]
[7, 5, 9, 5, 3, 6, 0, 4, 2, 8]
c035
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 1, 0] -> [0, 1, 5, 0] [7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8] [0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7] [4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4, 6, 9] [1, 1, 9, 1, 8, 7] -> [1, 9, 1, 1, 8, 7] [3, 1, 1, 6] -> [6, 1, 1, 3] [3, 4, 4, 0, 5, 9, 9, 7, 5] -> [0, 4, 4, 3, 5, 9, 9, 7, 5] [2, 5, 1, 2, 8, 6] -> [2, 1, 5, 2, 8, 6] Questions: [0, 3, 0, 0] -> ? Answer:
[0, 3, 0, 0] -> [0, 0, 3, 0]
[0, 3, 0, 0]
[0, 0, 3, 0]
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, 5, 1, 6, 2, 0, 3, 9] -> ? Answer:
[7, 4, 5, 1, 6, 2, 0, 3, 9] -> [7, 4, 5, 1, 6, 2, 0, 3, 9, 9]
[7, 4, 5, 1, 6, 2, 0, 3, 9]
[7, 4, 5, 1, 6, 2, 0, 3, 9, 9]
c204
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements followed by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [77, 94, 8, 1, 2, 4, 0] -> [4] [87, 0, 70, 0, 87] -> [87, 70] [4, 0, 0, 9, 61, 44, 67, 9, 18, 41] -> [4, 0] [3, 0, 0] -> [3, 0] [8, 0, 0, 41] -> [8, 0] [1, 1, 1, 0, 0, 0, 0, 0, 1] -> [1, 0, 0, 0, 0] [2, 5, 26, 26, 10, 44, 79, 7, 92] -> [] [5, 78, 0, 0, 0] -> [78, 0, 0] Questions: [38] -> ? Answer:
[38] -> []
[38]
[]
c033
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 0, 4, 6, 7, 3] -> [6, 0, 4, 2, 7, 3] [1, 9, 3, 5] -> [5, 9, 3, 1] [6, 8, 7, 4] -> [4, 8, 7, 6] [1, 4, 0, 8, 6, 7, 3, 2, 5] -> [8, 4, 0, 1, 6, 7, 3, 2, 5] [7, 2, 6, 8, 0, 5, 9] -> [8, 2, 6, 7, 0, 5, 9] [7, 6, 2, 9, 1, 3, 5, 8, 0, 4] -> [9, 6, 2, 7, 1, 3, 5, 8, 0, 4] [2, 7, 5, 0, 3] -> [0, 7, 5, 2, 3] [7, 9, 4, 0, 3, 8, 1] -> [0, 9, 4, 7, 3, 8, 1] Questions: [8, 3, 0, 6, 9, 4, 2] -> ? Answer:
[8, 3, 0, 6, 9, 4, 2] -> [6, 3, 0, 8, 9, 4, 2]
[8, 3, 0, 6, 9, 4, 2]
[6, 3, 0, 8, 9, 4, 2]
c133
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 2 through 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 95, 72, 3, 1, 42, 4] -> [28, 42, 4] [8, 38, 4, 57, 88, 20, 36, 68] -> [8, 20, 36, 68] [89, 6, 16, 88, 4, 47] -> [89, 47] [9, 94, 8, 44, 24, 7, 87, 0, 89] -> [9, 7, 87, 0, 89] [65, 0, 82, 93, 42, 38, 7, 5] -> [65, 38, 7, 5] [59, 8, 86, 6, 96, 16, 4] -> [59, 16, 4] [96, 2, 44, 1, 35, 4] -> [96, 4] [87, 83, 3, 0, 19, 14, 9, 99, 61, 5] -> [87, 14, 9, 99, 61, 5] Questions: [0, 29, 1, 67, 73, 5, 8, 54] -> ? Answer:
[0, 29, 1, 67, 73, 5, 8, 54] -> [0, 5, 8, 54]
[0, 29, 1, 67, 73, 5, 8, 54]
[0, 5, 8, 54]
c215
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 1 with the length of the input, M = element 1; drop element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 9, 4, 1, 93] -> [9, 4, 5, 93] [3, 87, 87, 33, 59, 2, 6, 72, 45, 8] -> [87, 87, 10, 59, 2, 6, 72, 45, 8] [2, 61, 0, 27, 1, 4, 72, 92, 84] -> [61, 9, 27, 1, 4, 72, 92, 84] [4, 1, 5, 2, 0, 68, 36, 2, 14, 6] -> [1, 5, 2, 10, 68, 36, 2, 14, 6] [4, 97, 57, 8, 83, 1] -> [97, 57, 8, 6, 1] [6, 45, 1, 99, 53, 0, 41, 5, 4] -> [45, 1, 99, 53, 0, 9, 5, 4] [1, 1, 82] -> [3, 82] [6, 75, 55, 9, 0, 16, 0, 5] -> [75, 55, 9, 0, 16, 8, 5] Questions: [3, 32, 85, 8, 22, 9, 5] -> ? Answer:
[3, 32, 85, 8, 22, 9, 5] -> [32, 85, 7, 22, 9, 5]
[3, 32, 85, 8, 22, 9, 5]
[32, 85, 7, 22, 9, 5]
c207
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element-wise sum of the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [56, 9, 72, 7] -> [63, 81, 81, 63] [2, 5, 6, 59, 93, 1] -> [3, 98, 65, 65, 98, 3] [21, 39, 5, 9, 40, 4] -> [25, 79, 14, 14, 79, 25] [7, 37, 64] -> [71, 74, 71] [8, 4, 45] -> [53, 8, 53] [60, 4, 2] -> [62, 8, 62] [0, 61, 89, 3, 6, 65] -> [65, 67, 92, 92, 67, 65] [0, 42, 8, 27, 86] -> [86, 69, 16, 69, 86] Questions: [11, 1, 2] -> ? Answer:
[11, 1, 2] -> [13, 2, 13]
[11, 1, 2]
[13, 2, 13]
c190
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the first element to the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 84, 9] -> [1, 3, 5, 7, 9] [44, 7, 45, 40, 2, 8, 3, 6, 26] -> [] [68, 1, 84] -> [68, 70, 72, 74, 76, 78, 80, 82, 84] [62, 45, 75, 38, 97, 7, 2, 0] -> [] [3, 6, 7, 82, 70, 5] -> [3, 5] [0, 99, 9, 0, 4, 4] -> [0, 2, 4] [8, 56, 8, 42, 14] -> [8, 10, 12, 14] [9, 13] -> [9, 11, 13] Questions: [0, 2, 15, 2] -> ? Answer:
[0, 2, 15, 2] -> [0, 2]
[0, 2, 15, 2]
[0, 2]
c074
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element whose value < 8".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3] -> [] [1, 4, 5, 6, 2, 7, 0, 8, 3] -> [8] [4, 1] -> [] [2, 1, 3, 0, 7] -> [] [2, 9, 7, 5, 6] -> [9] [2, 5, 8, 7, 9, 0, 1, 3, 6, 4] -> [8, 9] [8, 1, 6, 3, 4, 7, 9, 0, 5] -> [8, 9] [0, 4, 3, 7, 6, 5, 1, 9, 2, 8] -> [9, 8] Questions: [6, 2, 5, 3, 9, 0] -> ? Answer:
[6, 2, 5, 3, 9, 0] -> [9]
[6, 2, 5, 3, 9, 0]
[9]
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: [40, 69, 3, 72, 6, 8] -> ? Answer:
[40, 69, 3, 72, 6, 8] -> [69, 8, 3, 6, 40, 72]
[40, 69, 3, 72, 6, 8]
[69, 8, 3, 6, 40, 72]
c128
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order after removing elements 1, 2, and 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [75, 9, 69, 22, 27, 5] -> [5, 22, 69] [9, 6, 24, 65, 25, 54, 21, 79, 18] -> [18, 21, 24, 54, 65, 79] [2, 54, 4, 58, 9, 6, 49, 36, 56] -> [4, 6, 36, 49, 56, 58] [85, 9, 3, 5, 50, 7, 1, 10, 4] -> [1, 3, 4, 5, 7, 10] [25, 9, 7, 1, 0, 33, 8] -> [1, 7, 8, 33] [41, 1, 2, 26, 5, 50, 33, 7, 96, 75] -> [2, 7, 26, 33, 50, 75, 96] [5, 64, 73, 2, 6, 3] -> [2, 3, 73] [0, 44, 34, 97, 4, 71, 20] -> [20, 34, 71, 97] Questions: [47, 6, 65, 93, 5, 8, 25, 52] -> ? Answer:
[47, 6, 65, 93, 5, 8, 25, 52] -> [8, 25, 52, 65, 93]
[47, 6, 65, 93, 5, 8, 25, 52]
[8, 25, 52, 65, 93]
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: [1, 4, 9, 6, 3, 0, 8, 2] -> ? Answer:
[1, 4, 9, 6, 3, 0, 8, 2] -> [2, 8, 18, 12, 6, 0, 16, 4]
[1, 4, 9, 6, 3, 0, 8, 2]
[2, 8, 18, 12, 6, 0, 16, 4]
c032
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove two elements: the first two if element 1 > last element, else the last two".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0] [8, 6, 7] -> [7] [3, 8, 6, 0] -> [6, 0] [0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7] [0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, 2, 6, 5, 9] [3, 4, 9] -> [3] [6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2] [5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8] Questions: [0, 6, 8, 5] -> ? Answer:
[0, 6, 8, 5] -> [0, 6]
[0, 6, 8, 5]
[0, 6]
c044
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] [6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] Questions: [7] -> ? Answer:
[7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7]
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
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: [2, 8, 2, 8, 48, 8, 97, 8, 4] -> ? Answer:
[2, 8, 2, 8, 48, 8, 97, 8, 4] -> [2, 4]
[2, 8, 2, 8, 48, 8, 97, 8, 4]
[2, 4]
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: [2, 8, 0, 6, 1, 5, 9, 4, 7] -> ? Answer:
[2, 8, 0, 6, 1, 5, 9, 4, 7] -> [2, 2, 8, 0, 6, 1, 5, 9, 4, 7]
[2, 8, 0, 6, 1, 5, 9, 4, 7]
[2, 2, 8, 0, 6, 1, 5, 9, 4, 7]
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: [9, 1, 3, 7, 4, 36] -> ? Answer:
[9, 1, 3, 7, 4, 36] -> [9, 15, 36]
[9, 1, 3, 7, 4, 36]
[9, 15, 36]
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: [48, 48, 63, 63, 66, 66, 48, 66, 63, 66] -> ? Answer:
[48, 48, 63, 63, 66, 66, 48, 66, 63, 66] -> [1, 2, 1, 2, 1, 2, 3, 3, 3, 4]
[48, 48, 63, 63, 66, 66, 48, 66, 63, 66]
[1, 2, 1, 2, 1, 2, 3, 3, 3, 4]
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: [59, 91, 71, 23, 0, 89, 54, 50, 66, 6] -> ? Answer:
[59, 91, 71, 23, 0, 89, 54, 50, 66, 6] -> [89, 66, 54, 23, 0, 6, 50, 59, 71, 91]
[59, 91, 71, 23, 0, 89, 54, 50, 66, 6]
[89, 66, 54, 23, 0, 6, 50, 59, 71, 91]
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: [3, 7] -> ? Answer:
[3, 7] -> []
[3, 7]
[]
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: [80, 99, 1, 69, 28, 56] -> ? Answer:
[80, 99, 1, 69, 28, 56] -> [1, 28, 56, 69, 80, 99]
[80, 99, 1, 69, 28, 56]
[1, 28, 56, 69, 80, 99]
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: [3, 36, 7, 72, 0, 13, 46, 25] -> ? Answer:
[3, 36, 7, 72, 0, 13, 46, 25] -> [72]
[3, 36, 7, 72, 0, 13, 46, 25]
[72]
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: [2, 5] -> ? Answer:
[2, 5] -> [7]
[2, 5]
[7]
c221
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [60, 6, 7, 47, 23, 1, 39, 13] -> [66] [99, 8, 46, 6, 73, 47, 7, 4, 5] -> [64] [6, 7, 1, 91, 21, 8, 20, 9, 18] -> [52] [16, 8, 13, 6, 11, 75, 4, 58] -> [92] [0, 37, 55, 3, 6, 15, 5, 2, 8] -> [16] [87, 93, 9, 87, 2, 5, 5, 1] -> [2] [44, 3, 39, 87, 5, 0, 6, 95] -> [50] [6, 4, 12, 29, 5, 2, 38, 34, 17, 9] -> [96] Questions: [1, 9, 3, 6, 9, 8, 65, 2, 65] -> ? Answer:
[1, 9, 3, 6, 9, 8, 65, 2, 65] -> [16]
[1, 9, 3, 6, 9, 8, 65, 2, 65]
[16]
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: [8, 9, 9] -> ? Answer:
[8, 9, 9] -> [8]
[8, 9, 9]
[8]
c037
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 0, 2, 1, 3, 6, 8, 9, 7, 5] -> [4, 0, 2, 1, 3, 6, 8, 9, 7, 5, 3] [2, 8, 7, 5, 0, 4, 6, 1] -> [2, 8, 7, 5, 0, 4, 6, 1, 3] [5, 3, 4, 1, 9] -> [5, 3, 4, 1, 9, 3] [6, 5, 0] -> [6, 5, 0, 3] [7, 1] -> [7, 1, 3] [4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3] [0, 8] -> [0, 8, 3] [3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3] Questions: [] -> ? Answer:
[] -> [3]
[]
[3]
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: [5, 91, 1, 12, 4, 3, 73] -> ? Answer:
[5, 91, 1, 12, 4, 3, 73] -> [5, 73]
[5, 91, 1, 12, 4, 3, 73]
[5, 73]
c097
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [11, 21, 43, 19], input, and [7, 89, 0, 57]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [84, 46, 9] -> [11, 21, 43, 19, 84, 46, 9, 7, 89, 0, 57] [27, 1, 53, 9] -> [11, 21, 43, 19, 27, 1, 53, 9, 7, 89, 0, 57] [27, 98, 73, 6, 67, 42] -> [11, 21, 43, 19, 27, 98, 73, 6, 67, 42, 7, 89, 0, 57] [91, 72, 12, 88, 66] -> [11, 21, 43, 19, 91, 72, 12, 88, 66, 7, 89, 0, 57] [9, 74, 1, 51, 55, 97] -> [11, 21, 43, 19, 9, 74, 1, 51, 55, 97, 7, 89, 0, 57] [37, 58] -> [11, 21, 43, 19, 37, 58, 7, 89, 0, 57] [8, 23, 39] -> [11, 21, 43, 19, 8, 23, 39, 7, 89, 0, 57] [6, 37, 44, 31, 5, 81] -> [11, 21, 43, 19, 6, 37, 44, 31, 5, 81, 7, 89, 0, 57] Questions: [60] -> ? Answer:
[60] -> [11, 21, 43, 19, 60, 7, 89, 0, 57]
[60]
[11, 21, 43, 19, 60, 7, 89, 0, 57]
c052
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat element 1 ten times".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 2, 9, 0, 3, 8, 1, 5, 6, 7] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] [1, 4, 7, 3, 6] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [8, 1, 2, 9, 6, 3, 4, 7] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [5, 9, 1, 6, 2, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] [8, 4, 6] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [8] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] [6, 7, 5, 1, 4, 9, 3, 2, 0, 8] -> [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] [0, 2, 6, 8, 1, 5, 9, 4] -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Questions: [5] -> ? Answer:
[5] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
[5]
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
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: [70, 18, 2, 9, 0, 0, 4, 77] -> ? Answer:
[70, 18, 2, 9, 0, 0, 4, 77] -> [70, 18, 2, 9, 0, 0, 4, 70, 71, 72, 73, 74, 75, 76, 77]
[70, 18, 2, 9, 0, 0, 4, 77]
[70, 18, 2, 9, 0, 0, 4, 70, 71, 72, 73, 74, 75, 76, 77]
c154
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3] [3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9] [91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91] [63, 7, 1, 2, 77, 57, 0, 5] -> [63, 7, 1, 6, 77, 57, 0, 5] [10, 93, 22, 10, 5, 10] -> [30, 93, 66, 30, 5, 30] [33, 2, 0, 21, 6, 28, 3, 8, 4] -> [33, 6, 0, 21, 18, 84, 3, 24, 12] [77, 8, 1, 77, 3, 9, 7, 4] -> [77, 24, 1, 77, 3, 9, 7, 12] [6, 9, 43, 7, 65, 7] -> [18, 9, 43, 7, 65, 7] Questions: [9, 3, 20, 3, 77, 1, 6, 75, 2] -> ? Answer:
[9, 3, 20, 3, 77, 1, 6, 75, 2] -> [9, 3, 60, 3, 77, 1, 18, 75, 6]
[9, 3, 20, 3, 77, 1, 6, 75, 2]
[9, 3, 60, 3, 77, 1, 18, 75, 6]
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: [19, 15, 8] -> ? Answer:
[19, 15, 8] -> [98, 19, 15, 8, 37]
[19, 15, 8]
[98, 19, 15, 8, 37]
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: [5, 4, 2, 4, 5, 4, 7] -> ? Answer:
[5, 4, 2, 4, 5, 4, 7] -> [9]
[5, 4, 2, 4, 5, 4, 7]
[9]
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: [3] -> ? Answer:
[3] -> []
[3]
[]
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: [2, 7, 4, 3] -> ? Answer:
[2, 7, 4, 3] -> [2, 2, 2, 2, 2, 2, 7, 4, 3]
[2, 7, 4, 3]
[2, 2, 2, 2, 2, 2, 7, 4, 3]
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: [83, 76, 8, 88, 2, 21, 98] -> ? Answer:
[83, 76, 8, 88, 2, 21, 98] -> [83, 76, 88, 2, 21, 98]
[83, 76, 8, 88, 2, 21, 98]
[83, 76, 88, 2, 21, 98]
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: [97, 97, 97] -> ? Answer:
[97, 97, 97] -> [3]
[97, 97, 97]
[3]
c046
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 0, 4, 1, 6, 8, 9] -> [7, 5, 0, 4, 1, 6, 8, 9] [2, 6, 9, 8] -> [7, 2, 6, 9, 8] [0, 6, 2, 4, 8, 1, 9] -> [7, 0, 6, 2, 4, 8, 1, 9] [1, 8, 2, 4, 9, 0, 3] -> [7, 1, 8, 2, 4, 9, 0, 3] [1, 9, 2, 0, 6, 4, 8, 5, 3] -> [7, 1, 9, 2, 0, 6, 4, 8, 5, 3] [7, 4, 1, 5, 6, 9, 8, 0, 2, 3] -> [7, 7, 4, 1, 5, 6, 9, 8, 0, 2, 3] [0, 8, 1, 3, 7, 6, 5, 9, 2] -> [7, 0, 8, 1, 3, 7, 6, 5, 9, 2] [5, 3, 2, 6, 0, 4, 8, 7] -> [7, 5, 3, 2, 6, 0, 4, 8, 7] Questions: [2, 5, 8, 0, 6, 3, 7, 9, 4, 1] -> ? Answer:
[2, 5, 8, 0, 6, 3, 7, 9, 4, 1] -> [7, 2, 5, 8, 0, 6, 3, 7, 9, 4, 1]
[2, 5, 8, 0, 6, 3, 7, 9, 4, 1]
[7, 2, 5, 8, 0, 6, 3, 7, 9, 4, 1]
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: [8, 3, 1, 4, 0] -> ? Answer:
[8, 3, 1, 4, 0] -> [1, 1, 1, 4, 0]
[8, 3, 1, 4, 0]
[1, 1, 1, 4, 0]
c111
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat the largest element N times, where N is the smallest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [90, 5] -> [90, 90, 90, 90, 90] [61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61] [10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91] [62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88] [38, 39, 1] -> [39] [6, 62] -> [62, 62, 62, 62, 62, 62] [0, 30, 25, 57, 2, 5] -> [] Questions: [16, 2, 9, 15, 32, 3, 5, 22] -> ? Answer:
[16, 2, 9, 15, 32, 3, 5, 22] -> [32, 32]
[16, 2, 9, 15, 32, 3, 5, 22]
[32, 32]
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: [8, 5, 1, 4, 0] -> ? Answer:
[8, 5, 1, 4, 0] -> [8, 5, 1, 4, 0]
[8, 5, 1, 4, 0]
[8, 5, 1, 4, 0]
c191
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat each element N times, where N is its tens digit, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [79] -> [79, 79, 79, 79, 79, 79, 79] [34, 1, 55, 4, 6, 9, 5, 59] -> [34, 34, 34, 55, 55, 55, 55, 55, 59, 59, 59, 59, 59] [1, 16, 10, 65, 7, 4, 0, 9, 72, 3] -> [16, 10, 65, 65, 65, 65, 65, 65, 72, 72, 72, 72, 72, 72, 72] [8, 24, 2, 47, 9, 5, 77, 0, 14] -> [24, 24, 47, 47, 47, 47, 77, 77, 77, 77, 77, 77, 77, 14] [57] -> [57, 57, 57, 57, 57] [93, 62] -> [93, 93, 93, 93, 93, 93, 93, 93, 93, 62, 62, 62, 62, 62, 62] [33, 53, 3, 1, 45, 8] -> [33, 33, 33, 53, 53, 53, 53, 53, 45, 45, 45, 45] [7, 85, 5, 6] -> [85, 85, 85, 85, 85, 85, 85, 85] Questions: [2, 8, 4, 3, 90, 31, 6] -> ? Answer:
[2, 8, 4, 3, 90, 31, 6] -> [90, 90, 90, 90, 90, 90, 90, 90, 90, 31, 31, 31]
[2, 8, 4, 3, 90, 31, 6]
[90, 90, 90, 90, 90, 90, 90, 90, 90, 31, 31, 31]
c230
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the smallest element to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [40] -> [40] [6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] [35] -> [35] [6, 13] -> [6, 8, 10, 12] [44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62] [11, 2] -> [2, 4, 6, 8, 10] [63, 63, 75] -> [63, 65, 67, 69, 71, 73, 75] [29] -> [29] Questions: [13, 17] -> ? Answer:
[13, 17] -> [13, 15, 17]
[13, 17]
[13, 15, 17]
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: [73, 8] -> ? Answer:
[73, 8] -> [8, 73, 8]
[73, 8]
[8, 73, 8]
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: [7, 7] -> ? Answer:
[7, 7] -> [7]
[7, 7]
[7]
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: [78, 28, 3] -> ? Answer:
[78, 28, 3] -> [78, 28, 3, 0, 78, 28, 3]
[78, 28, 3]
[78, 28, 3, 0, 78, 28, 3]
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: [2, 0, 6, 4, 9, 1, 3, 8, 5] -> ? Answer:
[2, 0, 6, 4, 9, 1, 3, 8, 5] -> [3]
[2, 0, 6, 4, 9, 1, 3, 8, 5]
[3]
c135
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 19, 7, 6, 9, 1, 5, 64, 47, 93] -> [2, 19, 6, 9, 1, 5, 64, 47, 93] [1, 69, 1, 7, 17, 17, 10, 7, 3, 37] -> [1, 69, 1, 17, 17, 10, 7, 3, 37] [7, 7, 9, 21, 7, 4, 4, 91, 0] -> [7, 9, 21, 7, 4, 4, 91, 0] [5, 7, 39, 7] -> [5, 39, 7] [7, 7, 7] -> [7, 7] [7, 7, 6, 6, 88, 7, 8] -> [7, 6, 6, 88, 7, 8] [7, 6, 9, 7] -> [6, 9, 7] [5, 7, 7, 7] -> [5, 7, 7] Questions: [7, 7, 7, 7, 7] -> ? Answer:
[7, 7, 7, 7, 7] -> [7, 7, 7, 7]
[7, 7, 7, 7, 7]
[7, 7, 7, 7]
c158
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1] [1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0] [8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0] [7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0] [5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] [2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0] [1, 1, 1] -> [1, 0, 0] Questions: [6, 6, 7, 3, 7, 6, 7, 6] -> ? Answer:
[6, 6, 7, 3, 7, 6, 7, 6] -> [0, 0, 0, 0, 0, 1, 1, 0]
[6, 6, 7, 3, 7, 6, 7, 6]
[0, 0, 0, 0, 0, 1, 1, 0]
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: [28, 85] -> ? Answer:
[28, 85] -> [28, 85, 0, 28, 85]
[28, 85]
[28, 85, 0, 28, 85]
c204
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements followed by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [77, 94, 8, 1, 2, 4, 0] -> [4] [87, 0, 70, 0, 87] -> [87, 70] [4, 0, 0, 9, 61, 44, 67, 9, 18, 41] -> [4, 0] [3, 0, 0] -> [3, 0] [8, 0, 0, 41] -> [8, 0] [1, 1, 1, 0, 0, 0, 0, 0, 1] -> [1, 0, 0, 0, 0] [2, 5, 26, 26, 10, 44, 79, 7, 92] -> [] [5, 78, 0, 0, 0] -> [78, 0, 0] Questions: [77, 0, 43, 7, 62, 0, 6, 3] -> ? Answer:
[77, 0, 43, 7, 62, 0, 6, 3] -> [77, 62]
[77, 0, 43, 7, 62, 0, 6, 3]
[77, 62]
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: [91, 78, 2, 8, 3, 7, 6, 9] -> ? Answer:
[91, 78, 2, 8, 3, 7, 6, 9] -> [8]
[91, 78, 2, 8, 3, 7, 6, 9]
[8]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
53