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
c091
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [2, 91, 37, 38, 71, 5] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [47, 47] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [66, 84, 97, 78, 46, 13, 9] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [72, 40, 72] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [15, 3, 15, 55, 7, 15, 85, 74, 6] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [33, 0, 3, 25] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] [5, 42, 7, 28] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69] Questions: [6, 21, 21, 6] -> ? Answer:
[6, 21, 21, 6] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[6, 21, 21, 6]
[81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
c003
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: [1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5] [5, 6, 2, 3, 9, 7, 1, 0] -> [1] [9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6] [1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3] [1, 0, 9, 5, 4, 2, 8] -> [8] [4, 5, 8, 3, 1, 6, 0] -> [0] [8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6] [1, 7, 9, 4, 6, 2, 0] -> [0] Questions: [6, 9, 4, 0, 3, 8, 5, 7] -> ? Answer:
[6, 9, 4, 0, 3, 8, 5, 7] -> [5]
[6, 9, 4, 0, 3, 8, 5, 7]
[5]
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: [0, 4] -> ? Answer:
[0, 4] -> [1, 6]
[0, 4]
[1, 6]
c178
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 an even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 65, 97, 2, 5, 44] -> [97, 5] [31, 0, 72, 85, 5, 74, 8] -> [31, 0, 5, 74] [2, 81, 0, 20, 44, 67, 6, 56] -> [81, 0, 20, 67, 6] [25, 19, 93, 73, 0, 32] -> [73, 0] [5, 48, 89, 68, 30, 14, 42, 8, 90] -> [5, 89, 68, 30, 14, 42, 8] [28, 62, 76, 48, 56, 12, 6, 72, 8, 76] -> [28, 62, 76, 48, 56, 12, 6, 72, 8] [5, 4, 57, 95, 38, 6, 47, 96, 10] -> [5, 95, 38, 47, 96] [3, 6, 86, 98, 67, 34, 1, 0] -> [3, 6, 86, 67, 1] Questions: [95, 3, 77, 4, 2, 81, 42] -> ? Answer:
[95, 3, 77, 4, 2, 81, 42] -> [77, 4, 81]
[95, 3, 77, 4, 2, 81, 42]
[77, 4, 81]
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: [7, 3, 8, 0, 1] -> ? Answer:
[7, 3, 8, 0, 1] -> [7, 3, 8, 0, 1]
[7, 3, 8, 0, 1]
[7, 3, 8, 0, 1]
c084
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 25, 3, 79, 57, 84, 4, 44, 94, 5] -> [4] [2, 22, 23, 60, 37, 80, 9, 50] -> [9] [48, 15, 38, 8, 85, 2, 4, 33, 99] -> [4] [49, 99, 2, 59, 23, 85] -> [] [0, 18, 22, 9, 2, 20, 91] -> [91] [76, 1, 93, 7, 10, 17, 66] -> [66] [16, 8, 2, 90, 20, 60, 84, 28, 93, 1] -> [84] [3, 99, 27, 40, 1, 8, 69, 6, 9, 22] -> [69] Questions: [7, 3, 5, 6, 9, 77, 1] -> ? Answer:
[7, 3, 5, 6, 9, 77, 1] -> [1]
[7, 3, 5, 6, 9, 77, 1]
[1]
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: [9, 7, 19, 2, 6, 0, 73, 28, 48] -> ? Answer:
[9, 7, 19, 2, 6, 0, 73, 28, 48] -> [0, 2, 6, 7, 9, 19, 73, 28, 48]
[9, 7, 19, 2, 6, 0, 73, 28, 48]
[0, 2, 6, 7, 9, 19, 73, 28, 48]
c066
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 2, 7, 3, 6, 5, 1, 9] -> [2, 7, 3, 6, 5, 1, 9, 8] [5, 3] -> [3, 5] [4, 1, 9, 0] -> [1, 9, 0, 4] [2, 8, 6, 9, 1] -> [8, 6, 9, 1, 2] [7] -> [7] [6, 3, 4] -> [3, 4, 6] [1, 2, 6, 3, 5, 8, 0, 7, 4] -> [2, 6, 3, 5, 8, 0, 7, 4, 1] [8, 4, 5, 0] -> [4, 5, 0, 8] Questions: [7, 8, 6, 5, 3, 4, 9, 0] -> ? Answer:
[7, 8, 6, 5, 3, 4, 9, 0] -> [8, 6, 5, 3, 4, 9, 0, 7]
[7, 8, 6, 5, 3, 4, 9, 0]
[8, 6, 5, 3, 4, 9, 0, 7]
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: [70, 9, 79, 8, 82, 81, 2] -> ? Answer:
[70, 9, 79, 8, 82, 81, 2] -> [9, 81]
[70, 9, 79, 8, 82, 81, 2]
[9, 81]
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, 6, 4, 4, 1, 7, 3, 5, 5] -> ? Answer:
[8, 6, 4, 4, 1, 7, 3, 5, 5] -> [8, 6, 4, 4, 1, 7, 3]
[8, 6, 4, 4, 1, 7, 3, 5, 5]
[8, 6, 4, 4, 1, 7, 3]
c195
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98] [9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7] [14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54] [9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5] [4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81] [85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47] [50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74] [24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80] Questions: [84, 5, 6, 35] -> ? Answer:
[84, 5, 6, 35] -> [84, 23, 68, 42, 99, 71, 35]
[84, 5, 6, 35]
[84, 23, 68, 42, 99, 71, 35]
c117
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by three elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5] [9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69] [7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4] [14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83] [70, 5, 77, 54] -> [54, 70, 5, 77] [64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42] [2, 45, 32, 14] -> [14, 2, 45, 32] [4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3] Questions: [45, 94, 84, 0, 62] -> ? Answer:
[45, 94, 84, 0, 62] -> [0, 62, 45, 94, 84]
[45, 94, 84, 0, 62]
[0, 62, 45, 94, 84]
c214
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29] [5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1] [4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1] [8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92] [2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79] [3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1] [6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8] [4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56] Questions: [2, 57, 1, 97] -> ? Answer:
[2, 57, 1, 97] -> [57, 97]
[2, 57, 1, 97]
[57, 97]
c140
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 2 with a 9".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58] [36, 90] -> [36, 9] [16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81] [67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26] [35, 51, 6] -> [35, 9, 6] [9, 1] -> [9, 9] [1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79] [49, 55, 78, 3] -> [49, 9, 78, 3] Questions: [6, 5, 1, 2, 47, 26, 88, 4] -> ? Answer:
[6, 5, 1, 2, 47, 26, 88, 4] -> [6, 9, 1, 2, 47, 26, 88, 4]
[6, 5, 1, 2, 47, 26, 88, 4]
[6, 9, 1, 2, 47, 26, 88, 4]
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: [7, 1, 2, 6, 65, 40, 86] -> ? Answer:
[7, 1, 2, 6, 65, 40, 86] -> [1, 2, 6, 65, 40, 86]
[7, 1, 2, 6, 65, 40, 86]
[1, 2, 6, 65, 40, 86]
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: [38, 5, 5] -> ? Answer:
[38, 5, 5] -> [38, 5, 5]
[38, 5, 5]
[38, 5, 5]
c081
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [23, 9, 13, 67, 24, 20, 71, 77] -> [13] [84, 51, 3, 47, 4, 67, 43, 88, 13] -> [3] [7, 55, 4] -> [4] [2, 0, 70, 3, 5, 8, 9, 7, 1, 33] -> [70] [41, 2, 48] -> [48] [6, 50, 65] -> [65] [2, 30, 7, 6, 89, 8, 45, 88] -> [7] [60, 19, 68, 0, 4, 9, 95, 82] -> [68] Questions: [65, 25, 90, 75, 1] -> ? Answer:
[65, 25, 90, 75, 1] -> [90]
[65, 25, 90, 75, 1]
[90]
c062
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 7, 2, 9, 0, 6] -> [8, 5, 7, 2, 9, 0] [9, 2, 8, 1, 4, 5, 3] -> [9, 2, 8, 1, 4, 5] [7, 9, 0, 1, 5, 4, 6, 8, 3, 2] -> [7, 9, 0, 1, 5, 4, 6, 8, 3] [6, 8, 3, 9, 7] -> [6, 8, 3, 9] [6, 4, 2, 3, 0] -> [6, 4, 2, 3] [6, 0, 7, 9, 3, 8] -> [6, 0, 7, 9, 3] [2, 7, 1] -> [2, 7] [9, 3, 6] -> [9, 3] Questions: [3, 6, 4, 0, 7, 1, 9, 5, 2, 8] -> ? Answer:
[3, 6, 4, 0, 7, 1, 9, 5, 2, 8] -> [3, 6, 4, 0, 7, 1, 9, 5, 2]
[3, 6, 4, 0, 7, 1, 9, 5, 2, 8]
[3, 6, 4, 0, 7, 1, 9, 5, 2]
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: [7, 1, 5] -> ? Answer:
[7, 1, 5] -> [7, 8, 5]
[7, 1, 5]
[7, 8, 5]
c102
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: [39, 8, 4] -> [39, 8, 4] [3, 89] -> [3, 89] [52, 67] -> [52, 67] [96, 68] -> [96, 68] [58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70] [93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71] [60, 92] -> [60, 92] [83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8] Questions: [27] -> ? Answer:
[27] -> [27]
[27]
[27]
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: [63, 70, 7, 24, 55, 3, 40, 33, 98, 76] -> ? Answer:
[63, 70, 7, 24, 55, 3, 40, 33, 98, 76] -> [63, 24, 3, 33]
[63, 70, 7, 24, 55, 3, 40, 33, 98, 76]
[63, 24, 3, 33]
c218
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements 2 and following equal to element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [35, 35, 1, 35, 1, 35, 35, 1] -> [35, 35, 35, 35] [27, 27, 13, 13, 27, 27, 27, 13, 27, 13] -> [27, 27, 27, 27, 27] [42, 0, 0, 42, 0, 42, 0, 42, 42, 0] -> [42, 42, 42, 42] [41, 41, 41, 41, 41, 41, 41, 41] -> [41, 41, 41, 41, 41, 41, 41] [5, 83, 83, 5, 83, 5, 83, 83, 5, 83] -> [5, 5, 5] [0, 4, 19, 47, 2, 90, 5, 39, 73, 79] -> [] [43, 43, 43, 43, 43, 43, 43, 43, 43] -> [43, 43, 43, 43, 43, 43, 43, 43] [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [6, 6, 6, 6, 6, 6, 6, 6, 6] Questions: [8, 37, 8, 8, 8, 8, 37, 8, 37, 8] -> ? Answer:
[8, 37, 8, 8, 8, 8, 37, 8, 37, 8] -> [8, 8, 8, 8, 8, 8]
[8, 37, 8, 8, 8, 8, 37, 8, 37, 8]
[8, 8, 8, 8, 8, 8]
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: [83, 83, 83, 83] -> ? Answer:
[83, 83, 83, 83] -> [4, 4, 4, 4]
[83, 83, 83, 83]
[4, 4, 4, 4]
c008
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the first 6 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 9, 3, 1, 6, 0, 7, 4, 2] -> [8, 5, 9, 3, 1, 6] [0, 4, 6] -> [0, 4, 6] [4, 8, 2, 3, 6] -> [4, 8, 2, 3, 6] [1, 0, 7, 3, 4, 2, 8, 9, 6, 5] -> [1, 0, 7, 3, 4, 2] [1] -> [1] [6, 4, 2, 1, 0, 7, 3, 5, 9] -> [6, 4, 2, 1, 0, 7] [1, 5, 6, 9, 0, 4, 8, 2, 3] -> [1, 5, 6, 9, 0, 4] [0, 6, 1, 3, 8, 9, 7] -> [0, 6, 1, 3, 8, 9] Questions: [6, 2] -> ? Answer:
[6, 2] -> [6, 2]
[6, 2]
[6, 2]
c208
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only the last N elements, where N is the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 33, 8, 97, 71, 74, 90, 3] -> [74, 90, 3] [6, 37, 19, 13, 4, 9, 19, 2] -> [19, 2] [6, 25, 2, 35, 8, 4, 0, 83, 63, 5] -> [4, 0, 83, 63, 5] [43, 3, 4, 3, 6, 8, 60, 90, 7] -> [4, 3, 6, 8, 60, 90, 7] [36, 2, 74, 5, 64, 31, 8, 18, 7] -> [74, 5, 64, 31, 8, 18, 7] [33, 2, 69, 24, 24, 38, 5, 4] -> [24, 38, 5, 4] [11, 75, 4, 7, 8, 10, 5, 6] -> [4, 7, 8, 10, 5, 6] [7, 0, 8, 12, 3, 2, 2] -> [2, 2] Questions: [61, 8, 9, 4, 77, 85, 5] -> ? Answer:
[61, 8, 9, 4, 77, 85, 5] -> [9, 4, 77, 85, 5]
[61, 8, 9, 4, 77, 85, 5]
[9, 4, 77, 85, 5]
c066
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 2, 7, 3, 6, 5, 1, 9] -> [2, 7, 3, 6, 5, 1, 9, 8] [5, 3] -> [3, 5] [4, 1, 9, 0] -> [1, 9, 0, 4] [2, 8, 6, 9, 1] -> [8, 6, 9, 1, 2] [7] -> [7] [6, 3, 4] -> [3, 4, 6] [1, 2, 6, 3, 5, 8, 0, 7, 4] -> [2, 6, 3, 5, 8, 0, 7, 4, 1] [8, 4, 5, 0] -> [4, 5, 0, 8] Questions: [7, 4, 1, 3, 2, 6, 0, 5] -> ? Answer:
[7, 4, 1, 3, 2, 6, 0, 5] -> [4, 1, 3, 2, 6, 0, 5, 7]
[7, 4, 1, 3, 2, 6, 0, 5]
[4, 1, 3, 2, 6, 0, 5, 7]
c123
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [86, 60, 7, 60, 4] -> [60] [7, 18, 93, 10, 5, 3, 4, 3] -> [93] [7, 6, 63, 7, 6, 65, 0, 50, 3] -> [63] [5, 56, 7, 2] -> [56] [14, 42, 76, 79, 3] -> [76] [78, 6, 17, 9, 58, 9, 3, 72, 47, 1] -> [78] [34, 41, 2] -> [41] [7, 3, 5, 48, 62, 54, 87, 5] -> [62] Questions: [2, 0, 8, 23, 6, 7, 4] -> ? Answer:
[2, 0, 8, 23, 6, 7, 4] -> [23]
[2, 0, 8, 23, 6, 7, 4]
[23]
c118
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by N elements, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 0, 6, 2, 3] -> [2, 3, 5, 0, 6] [23, 17, 1, 9, 7, 5, 2] -> [1, 9, 7, 5, 2, 23, 17] [14, 61, 9, 17, 3] -> [17, 3, 14, 61, 9] [64, 4, 1] -> [4, 1, 64] [24, 37, 9, 5, 17, 1] -> [37, 9, 5, 17, 1, 24] [75, 0, 45, 5, 3, 2] -> [45, 5, 3, 2, 75, 0] [8, 9, 1] -> [9, 1, 8] [42, 1, 42, 42, 18, 42, 1] -> [1, 42, 42, 18, 42, 1, 42] Questions: [48, 60, 1, 3, 0, 5] -> ? Answer:
[48, 60, 1, 3, 0, 5] -> [5, 48, 60, 1, 3, 0]
[48, 60, 1, 3, 0, 5]
[5, 48, 60, 1, 3, 0]
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: [] -> ? Answer:
[] -> []
[]
[]
c080
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in reverse order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [2, 8, 7, 0, 6, 5, 3, 4, 1] -> [1, 4, 3, 5, 6, 0, 7, 8, 2] [9, 1, 2, 8, 0] -> [0, 8, 2, 1, 9] [5, 3, 0, 7, 4, 6, 2, 9] -> [9, 2, 6, 4, 7, 0, 3, 5] [1, 0, 7, 3, 9, 2] -> [2, 9, 3, 7, 0, 1] [4, 0, 9] -> [9, 0, 4] [4, 2] -> [2, 4] [3, 6, 1, 7, 0, 4] -> [4, 0, 7, 1, 6, 3] [1, 8, 0, 7, 5] -> [5, 7, 0, 8, 1] Questions: [5, 9, 0, 6] -> ? Answer:
[5, 9, 0, 6] -> [6, 0, 9, 5]
[5, 9, 0, 6]
[6, 0, 9, 5]
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: [5, 0, 9, 3] -> ? Answer:
[5, 0, 9, 3] -> [5, 9, 3]
[5, 0, 9, 3]
[5, 9, 3]
c178
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 an even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 65, 97, 2, 5, 44] -> [97, 5] [31, 0, 72, 85, 5, 74, 8] -> [31, 0, 5, 74] [2, 81, 0, 20, 44, 67, 6, 56] -> [81, 0, 20, 67, 6] [25, 19, 93, 73, 0, 32] -> [73, 0] [5, 48, 89, 68, 30, 14, 42, 8, 90] -> [5, 89, 68, 30, 14, 42, 8] [28, 62, 76, 48, 56, 12, 6, 72, 8, 76] -> [28, 62, 76, 48, 56, 12, 6, 72, 8] [5, 4, 57, 95, 38, 6, 47, 96, 10] -> [5, 95, 38, 47, 96] [3, 6, 86, 98, 67, 34, 1, 0] -> [3, 6, 86, 67, 1] Questions: [14, 47, 23, 1, 54, 49, 20, 19] -> ? Answer:
[14, 47, 23, 1, 54, 49, 20, 19] -> [1, 49]
[14, 47, 23, 1, 54, 49, 20, 19]
[1, 49]
c242
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "take the largest unique element, append the second largest unique element, prepend the third largest unique element, append the fourth largest unique element, and so on".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [14, 9, 50, 48, 67, 64, 1, 6] -> [6, 14, 50, 67, 64, 48, 9, 1] [2, 2, 2, 77, 77, 2, 77, 77, 2, 21] -> [21, 77, 2] [42, 49, 56, 36, 88, 4, 5, 93, 0] -> [4, 36, 49, 88, 93, 56, 42, 5, 0] [3, 5, 8, 56, 60, 1, 9, 79, 23, 92] -> [3, 8, 23, 60, 92, 79, 56, 9, 5, 1] [13, 16, 47, 42, 94, 94] -> [16, 47, 94, 42, 13] [3, 54, 93, 91, 75, 2, 90] -> [3, 75, 91, 93, 90, 54, 2] [4, 1, 3, 73, 0, 41, 31, 18, 9] -> [1, 4, 18, 41, 73, 31, 9, 3, 0] [85, 71, 71, 1, 71, 1, 71] -> [71, 85, 1] Questions: [12, 15, 10, 12, 2, 2, 15] -> ? Answer:
[12, 15, 10, 12, 2, 2, 15] -> [10, 15, 12, 2]
[12, 15, 10, 12, 2, 2, 15]
[10, 15, 12, 2]
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: [5, 8, 6, 1, 3, 4, 0, 7] -> ? Answer:
[5, 8, 6, 1, 3, 4, 0, 7] -> [1, 8, 6, 5, 3, 4, 0, 7]
[5, 8, 6, 1, 3, 4, 0, 7]
[1, 8, 6, 5, 3, 4, 0, 7]
c159
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element N counts the number of occurrences of N, up to the largest element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 3, 3, 3, 4] -> [0, 0, 4, 2] [2, 5, 6, 9, 6, 5, 5, 9] -> [0, 1, 0, 0, 3, 2, 0, 0, 2] [8, 1, 1, 1, 8, 8, 8, 8, 1] -> [4, 0, 0, 0, 0, 0, 0, 5] [6] -> [0, 0, 0, 0, 0, 1] [10, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 1] [2, 6] -> [0, 1, 0, 0, 0, 1] [1, 1, 9, 9, 9, 9, 9, 9, 9, 9] -> [2, 0, 0, 0, 0, 0, 0, 0, 8] [8, 1, 8, 8, 8, 2, 8, 2, 1] -> [2, 2, 0, 0, 0, 0, 0, 5] Questions: [4, 2, 5, 3, 3] -> ? Answer:
[4, 2, 5, 3, 3] -> [0, 1, 2, 1, 1]
[4, 2, 5, 3, 3]
[0, 1, 2, 1, 1]
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: [2, 1] -> ? Answer:
[2, 1] -> [2, 8]
[2, 1]
[2, 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: [5, 16, 50, 3, 4, 98] -> ? Answer:
[5, 16, 50, 3, 4, 98] -> [5, 98]
[5, 16, 50, 3, 4, 98]
[5, 98]
c062
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 5, 7, 2, 9, 0, 6] -> [8, 5, 7, 2, 9, 0] [9, 2, 8, 1, 4, 5, 3] -> [9, 2, 8, 1, 4, 5] [7, 9, 0, 1, 5, 4, 6, 8, 3, 2] -> [7, 9, 0, 1, 5, 4, 6, 8, 3] [6, 8, 3, 9, 7] -> [6, 8, 3, 9] [6, 4, 2, 3, 0] -> [6, 4, 2, 3] [6, 0, 7, 9, 3, 8] -> [6, 0, 7, 9, 3] [2, 7, 1] -> [2, 7] [9, 3, 6] -> [9, 3] Questions: [1] -> ? Answer:
[1] -> []
[1]
[]
c006
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 2 elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 3, 1, 2, 9, 5, 4, 7, 0, 6] -> [8, 3] [6, 9, 8, 0, 3] -> [6, 9] [3, 2, 8, 5, 4, 6, 7, 0, 1] -> [3, 2] [6, 3, 7, 8, 4, 9, 2, 1, 5] -> [6, 3] [9, 1, 7, 5] -> [9, 1] [6, 0, 3] -> [6, 0] [7, 3, 8, 2, 4] -> [7, 3] [2, 4, 3, 7, 1] -> [2, 4] Questions: [6, 8, 9, 0] -> ? Answer:
[6, 8, 9, 0] -> [6, 8]
[6, 8, 9, 0]
[6, 8]
c199
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order, each preceded by its rank".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [93, 3, 51] -> [1, 3, 2, 51, 3, 93] [7, 29, 9, 32, 74, 96, 95] -> [1, 7, 2, 9, 3, 29, 4, 32, 5, 74, 6, 95, 7, 96] [41, 29, 82, 46, 33, 5] -> [1, 5, 2, 29, 3, 33, 4, 41, 5, 46, 6, 82] [18, 14, 47, 15] -> [1, 14, 2, 15, 3, 18, 4, 47] [] -> [] [54, 41, 21, 48, 14, 59] -> [1, 14, 2, 21, 3, 41, 4, 48, 5, 54, 6, 59] [73, 75, 0, 15] -> [1, 0, 2, 15, 3, 73, 4, 75] [12, 37, 38, 63, 60, 45, 72] -> [1, 12, 2, 37, 3, 38, 4, 45, 5, 60, 6, 63, 7, 72] Questions: [0, 9, 40, 79, 70, 87, 6] -> ? Answer:
[0, 9, 40, 79, 70, 87, 6] -> [1, 0, 2, 6, 3, 9, 4, 40, 5, 70, 6, 79, 7, 87]
[0, 9, 40, 79, 70, 87, 6]
[1, 0, 2, 6, 3, 9, 4, 40, 5, 70, 6, 79, 7, 87]
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: [87, 87] -> ? Answer:
[87, 87] -> [87]
[87, 87]
[87]
c168
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to 10, skipping the input’s length".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [20, 9, 16, 92, 82, 3] -> [1, 2, 3, 4, 5, 7, 8, 9, 10] [77, 76, 34, 12, 26, 20, 79] -> [1, 2, 3, 4, 5, 6, 8, 9, 10] [6, 74, 2, 9, 5, 67] -> [1, 2, 3, 4, 5, 7, 8, 9, 10] [95] -> [2, 3, 4, 5, 6, 7, 8, 9, 10] [97, 86, 90, 37, 43, 5, 57, 33, 72, 7] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] [40, 86] -> [1, 3, 4, 5, 6, 7, 8, 9, 10] [87, 5, 66] -> [1, 2, 4, 5, 6, 7, 8, 9, 10] [85, 20, 90, 5, 65] -> [1, 2, 3, 4, 6, 7, 8, 9, 10] Questions: [23, 92, 27, 48, 6, 56, 47] -> ? Answer:
[23, 92, 27, 48, 6, 56, 47] -> [1, 2, 3, 4, 5, 6, 8, 9, 10]
[23, 92, 27, 48, 6, 56, 47]
[1, 2, 3, 4, 5, 6, 8, 9, 10]
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: [1, 5, 3, 2] -> ? Answer:
[1, 5, 3, 2] -> [1, 8, 3, 2]
[1, 5, 3, 2]
[1, 8, 3, 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: [7, 5, 4] -> ? Answer:
[7, 5, 4] -> [8, 7, 7]
[7, 5, 4]
[8, 7, 7]
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: [57, 57, 57, 57, 57, 51, 57, 51] -> ? Answer:
[57, 57, 57, 57, 57, 51, 57, 51] -> [51, 52, 53, 54, 55, 56, 57]
[57, 57, 57, 57, 57, 51, 57, 51]
[51, 52, 53, 54, 55, 56, 57]
c049
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 8, 4, 2, 3, 0, 6, 7] -> [8, 4, 2, 3, 0, 6, 7] [2, 9, 1, 3, 4, 6, 7, 8, 5] -> [9, 1, 3, 4, 6, 7, 8, 5] [2, 9, 4] -> [9, 4] [9] -> [] [1, 8, 4, 2, 6] -> [8, 4, 2, 6] [7, 1, 8, 3, 2, 4] -> [1, 8, 3, 2, 4] [1, 9] -> [9] [6, 0, 5] -> [0, 5] Questions: [8, 4, 1, 9, 3, 5, 7, 2, 0, 6] -> ? Answer:
[8, 4, 1, 9, 3, 5, 7, 2, 0, 6] -> [4, 1, 9, 3, 5, 7, 2, 0, 6]
[8, 4, 1, 9, 3, 5, 7, 2, 0, 6]
[4, 1, 9, 3, 5, 7, 2, 0, 6]
c082
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13] [91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15] [9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13] [0, 76, 8, 52, 68] -> [8] [38] -> [] [1] -> [] [79, 66, 1] -> [1] [] -> [] Questions: [63, 1, 81, 8, 2] -> ? Answer:
[63, 1, 81, 8, 2] -> [81]
[63, 1, 81, 8, 2]
[81]
c012
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 2 through 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0] -> [] [5, 0, 7] -> [0, 7] [8, 2] -> [2] [6] -> [] [7, 2] -> [2] [] -> [] [2, 3, 4, 9, 5, 6, 1, 8, 0] -> [3, 4, 9] [3, 4, 5, 1] -> [4, 5, 1] Questions: [7, 5, 4] -> ? Answer:
[7, 5, 4] -> [5, 4]
[7, 5, 4]
[5, 4]
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: [8, 9, 5] -> ? Answer:
[8, 9, 5] -> [7, 8, 9, 5]
[8, 9, 5]
[7, 8, 9, 5]
c156
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input and add each element to its new index".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 64, 6, 94, 79, 5, 9, 26] -> [27, 11, 8, 83, 99, 12, 71, 12] [3, 25, 2, 83, 1, 5, 0, 19, 9, 64] -> [65, 11, 22, 4, 10, 7, 90, 10, 34, 13] [3, 59, 76, 6, 81, 1] -> [2, 83, 9, 80, 64, 9] [11, 17, 1, 5, 62, 10, 14] -> [15, 12, 65, 9, 6, 23, 18] [4, 76, 71, 2, 52, 6, 94, 1] -> [2, 96, 9, 56, 7, 77, 83, 12] [66, 7, 5, 4, 12, 6, 16, 70, 37] -> [38, 72, 19, 10, 17, 10, 12, 15, 75] [92, 1, 7, 9, 69, 6] -> [7, 71, 12, 11, 6, 98] [6, 18, 8, 1, 3, 2, 17] -> [18, 4, 6, 5, 13, 24, 13] Questions: [92, 3, 17, 0, 85, 82] -> ? Answer:
[92, 3, 17, 0, 85, 82] -> [83, 87, 3, 21, 8, 98]
[92, 3, 17, 0, 85, 82]
[83, 87, 3, 21, 8, 98]
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: [34, 7, 4, 5, 57, 1, 98, 0, 8, 9] -> ? Answer:
[34, 7, 4, 5, 57, 1, 98, 0, 8, 9] -> [4, 1, 8]
[34, 7, 4, 5, 57, 1, 98, 0, 8, 9]
[4, 1, 8]
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: [7, 3, 8, 0, 1, 2] -> ? Answer:
[7, 3, 8, 0, 1, 2] -> [7, 3, 8, 0, 1, 2, 4]
[7, 3, 8, 0, 1, 2]
[7, 3, 8, 0, 1, 2, 4]
c013
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 3 through 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 9, 0, 6, 5] -> [0, 6, 5] [2, 6, 1, 3] -> [1, 3] [4, 5, 7] -> [7] [8, 3] -> [] [4, 2, 8, 0, 5, 9, 7, 1, 3] -> [8, 0, 5, 9, 7] [2] -> [] [7, 9, 1, 6, 5, 2] -> [1, 6, 5, 2] [9, 7] -> [] Questions: [0, 4, 8, 3] -> ? Answer:
[0, 4, 8, 3] -> [8, 3]
[0, 4, 8, 3]
[8, 3]
c082
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13] [91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15] [9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13] [0, 76, 8, 52, 68] -> [8] [38] -> [] [1] -> [] [79, 66, 1] -> [1] [] -> [] Questions: [42] -> ? Answer:
[42] -> []
[42]
[]
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: [2, 6, 7, 9, 4, 8, 1] -> ? Answer:
[2, 6, 7, 9, 4, 8, 1] -> [7, 7, 7, 9, 4, 8, 1]
[2, 6, 7, 9, 4, 8, 1]
[7, 7, 7, 9, 4, 8, 1]
c183
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of elements 2 and following equal to element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9] [2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8] [2, 2, 2, 2, 2] -> [1, 2, 3, 4] [3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4] [5, 5, 2, 5, 2, 6, 2, 5, 5] -> [1, 3, 7, 8] [10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5] [85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4] [2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5] Questions: [7, 7, 7] -> ? Answer:
[7, 7, 7] -> [1, 2]
[7, 7, 7]
[1, 2]
c100
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [96, 69] -> [69, 96] [3, 53, 99, 51, 50, 92, 6] -> [6, 92, 50, 51, 99, 53, 3] [87, 91, 74] -> [74, 91, 87] [90, 5, 0, 96] -> [96, 0, 5, 90] [32, 0, 88, 5, 83, 2, 44, 16, 1, 97] -> [97, 1, 16, 44, 2, 83, 5, 88, 0, 32] [18, 59, 10, 83, 86, 64, 0] -> [0, 64, 86, 83, 10, 59, 18] [0, 42, 11, 2, 35] -> [35, 2, 11, 42, 0] [39, 65, 0, 1, 49, 30] -> [30, 49, 1, 0, 65, 39] Questions: [84, 57, 28, 8, 79, 1, 43, 69] -> ? Answer:
[84, 57, 28, 8, 79, 1, 43, 69] -> [69, 43, 1, 79, 8, 28, 57, 84]
[84, 57, 28, 8, 79, 1, 43, 69]
[69, 43, 1, 79, 8, 28, 57, 84]
c176
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sums of each consecutive pair of elements, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 4, 67, 17, 56, 1] -> [73, 71, 84, 73, 57] [32, 3, 12, 57, 27, 7, 6, 88, 8, 9] -> [35, 15, 69, 84, 34, 13, 94, 96, 17] [59, 8, 2, 5, 71, 1] -> [67, 10, 7, 76, 72] [26, 33, 6, 5, 85, 8, 3, 1, 0, 2] -> [59, 39, 11, 90, 93, 11, 4, 1, 2] [62, 25, 5, 7, 42, 19] -> [87, 30, 12, 49, 61] [0, 52, 9, 83, 4, 1] -> [52, 61, 92, 87, 5] [7, 1, 0, 4, 6, 56] -> [8, 1, 4, 10, 62] [51, 5, 3, 8, 36, 1, 2, 6, 2, 4] -> [56, 8, 11, 44, 37, 3, 8, 8, 6] Questions: [43, 7, 3, 10, 8, 83, 1] -> ? Answer:
[43, 7, 3, 10, 8, 83, 1] -> [50, 10, 13, 18, 91, 84]
[43, 7, 3, 10, 8, 83, 1]
[50, 10, 13, 18, 91, 84]
c148
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to each original element, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [5, 5, 4] -> [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4] [2, 5, 2, 5] -> [1, 2, 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5] [1, 5, 3, 4] -> [1, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4] [3, 3, 1, 0] -> [1, 2, 3, 1, 2, 3, 1] [2, 1, 1] -> [1, 2, 1, 1] [5, 3, 1] -> [1, 2, 3, 4, 5, 1, 2, 3, 1] [6, 3, 3] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3] [6, 4, 1] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1] Questions: [3, 3, 3, 3] -> ? Answer:
[3, 3, 3, 3] -> [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]
[3, 3, 3, 3]
[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]
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: [5, 9, 9, 0, 7, 72, 16] -> ? Answer:
[5, 9, 9, 0, 7, 72, 16] -> [4]
[5, 9, 9, 0, 7, 72, 16]
[4]
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: [2, 5, 0, 1, 8, 3] -> ? Answer:
[2, 5, 0, 1, 8, 3] -> [2, 5, 1, 8, 3]
[2, 5, 0, 1, 8, 3]
[2, 5, 1, 8, 3]
c123
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N, N = last element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [86, 60, 7, 60, 4] -> [60] [7, 18, 93, 10, 5, 3, 4, 3] -> [93] [7, 6, 63, 7, 6, 65, 0, 50, 3] -> [63] [5, 56, 7, 2] -> [56] [14, 42, 76, 79, 3] -> [76] [78, 6, 17, 9, 58, 9, 3, 72, 47, 1] -> [78] [34, 41, 2] -> [41] [7, 3, 5, 48, 62, 54, 87, 5] -> [62] Questions: [0, 6, 6, 43, 8, 37, 37, 56, 34, 3] -> ? Answer:
[0, 6, 6, 43, 8, 37, 37, 56, 34, 3] -> [6]
[0, 6, 6, 43, 8, 37, 37, 56, 34, 3]
[6]
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: [8, 1, 9, 2, 6] -> ? Answer:
[8, 1, 9, 2, 6] -> [9, 2, 6]
[8, 1, 9, 2, 6]
[9, 2, 6]
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: [35, 57, 5, 1, 38, 8, 69, 39, 10, 67] -> ? Answer:
[35, 57, 5, 1, 38, 8, 69, 39, 10, 67] -> [57, 5, 1, 38, 8, 69, 39, 10, 67]
[35, 57, 5, 1, 38, 8, 69, 39, 10, 67]
[57, 5, 1, 38, 8, 69, 39, 10, 67]
c196
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [17, 38, 82], input, and [1, 55, 27]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [22] -> [17, 38, 82, 22, 1, 55, 27] [2, 0, 73, 50] -> [17, 38, 82, 2, 0, 73, 50, 1, 55, 27] [12, 94, 98] -> [17, 38, 82, 12, 94, 98, 1, 55, 27] [36, 1, 78, 8, 0] -> [17, 38, 82, 36, 1, 78, 8, 0, 1, 55, 27] [35, 4, 0, 64, 1] -> [17, 38, 82, 35, 4, 0, 64, 1, 1, 55, 27] [7] -> [17, 38, 82, 7, 1, 55, 27] [14, 77, 52, 70, 29] -> [17, 38, 82, 14, 77, 52, 70, 29, 1, 55, 27] [61] -> [17, 38, 82, 61, 1, 55, 27] Questions: [7, 5, 40, 64, 66] -> ? Answer:
[7, 5, 40, 64, 66] -> [17, 38, 82, 7, 5, 40, 64, 66, 1, 55, 27]
[7, 5, 40, 64, 66]
[17, 38, 82, 7, 5, 40, 64, 66, 1, 55, 27]
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: [80, 56, 5, 9, 62, 1] -> ? Answer:
[80, 56, 5, 9, 62, 1] -> [80, 0, 56, 0, 5, 1, 9, 1, 62, 0, 1, 1]
[80, 56, 5, 9, 62, 1]
[80, 0, 56, 0, 5, 1, 9, 1, 62, 0, 1, 1]
c204
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements followed by 0".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [77, 94, 8, 1, 2, 4, 0] -> [4] [87, 0, 70, 0, 87] -> [87, 70] [4, 0, 0, 9, 61, 44, 67, 9, 18, 41] -> [4, 0] [3, 0, 0] -> [3, 0] [8, 0, 0, 41] -> [8, 0] [1, 1, 1, 0, 0, 0, 0, 0, 1] -> [1, 0, 0, 0, 0] [2, 5, 26, 26, 10, 44, 79, 7, 92] -> [] [5, 78, 0, 0, 0] -> [78, 0, 0] Questions: [1, 91, 91, 3, 6, 7, 0, 0, 91, 8] -> ? Answer:
[1, 91, 91, 3, 6, 7, 0, 0, 91, 8] -> [7, 0]
[1, 91, 91, 3, 6, 7, 0, 0, 91, 8]
[7, 0]
c013
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 3 through 7".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 9, 0, 6, 5] -> [0, 6, 5] [2, 6, 1, 3] -> [1, 3] [4, 5, 7] -> [7] [8, 3] -> [] [4, 2, 8, 0, 5, 9, 7, 1, 3] -> [8, 0, 5, 9, 7] [2] -> [] [7, 9, 1, 6, 5, 2] -> [1, 6, 5, 2] [9, 7] -> [] Questions: [5] -> ? Answer:
[5] -> []
[5]
[]
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: [7, 1, 3, 8, 6, 2, 5, 4, 9] -> ? Answer:
[7, 1, 3, 8, 6, 2, 5, 4, 9] -> [7, 1, 3, 8, 6, 2, 5]
[7, 1, 3, 8, 6, 2, 5, 4, 9]
[7, 1, 3, 8, 6, 2, 5]
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: [6, 94, 23, 59, 86, 8, 87, 82, 2, 62] -> ? Answer:
[6, 94, 23, 59, 86, 8, 87, 82, 2, 62] -> [94, 59, 8, 82, 62]
[6, 94, 23, 59, 86, 8, 87, 82, 2, 62]
[94, 59, 8, 82, 62]
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: [0, 2, 1] -> ? Answer:
[0, 2, 1] -> [7, 0, 2, 1]
[0, 2, 1]
[7, 0, 2, 1]
c225
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 and last two elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 5, 10, 34, 57, 44] -> [10, 34] [6, 5, 11, 42, 91, 70, 4] -> [11, 42, 91] [3, 91, 25, 90, 92, 0] -> [25, 90] [24, 46, 0, 31, 74, 5, 44, 80, 94] -> [0, 31, 74, 5, 44] [99, 9, 35, 98, 7, 54, 69, 8, 6] -> [35, 98, 7, 54, 69] [58, 8, 86, 6, 5] -> [86] [1, 6, 5, 48, 3, 76, 7, 83] -> [5, 48, 3, 76] [2, 7, 9, 20, 32, 60, 13] -> [9, 20, 32] Questions: [82, 65, 6, 48, 7, 9, 88, 19, 5, 1] -> ? Answer:
[82, 65, 6, 48, 7, 9, 88, 19, 5, 1] -> [6, 48, 7, 9, 88, 19]
[82, 65, 6, 48, 7, 9, 88, 19, 5, 1]
[6, 48, 7, 9, 88, 19]
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: [3, 8, 42, 2, 42, 8, 35, 3, 8, 3] -> ? Answer:
[3, 8, 42, 2, 42, 8, 35, 3, 8, 3] -> [3, 8, 8, 3]
[3, 8, 42, 2, 42, 8, 35, 3, 8, 3]
[3, 8, 8, 3]
c176
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sums of each consecutive pair of elements, in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [69, 4, 67, 17, 56, 1] -> [73, 71, 84, 73, 57] [32, 3, 12, 57, 27, 7, 6, 88, 8, 9] -> [35, 15, 69, 84, 34, 13, 94, 96, 17] [59, 8, 2, 5, 71, 1] -> [67, 10, 7, 76, 72] [26, 33, 6, 5, 85, 8, 3, 1, 0, 2] -> [59, 39, 11, 90, 93, 11, 4, 1, 2] [62, 25, 5, 7, 42, 19] -> [87, 30, 12, 49, 61] [0, 52, 9, 83, 4, 1] -> [52, 61, 92, 87, 5] [7, 1, 0, 4, 6, 56] -> [8, 1, 4, 10, 62] [51, 5, 3, 8, 36, 1, 2, 6, 2, 4] -> [56, 8, 11, 44, 37, 3, 8, 8, 6] Questions: [9, 13, 0, 8, 4, 2] -> ? Answer:
[9, 13, 0, 8, 4, 2] -> [22, 13, 8, 12, 6]
[9, 13, 0, 8, 4, 2]
[22, 13, 8, 12, 6]
c106
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [43, 0, 98, 5, 2] -> [0, 2, 5, 43, 98] [76, 70, 7, 2, 0, 7] -> [0, 2, 7, 7, 70, 76] [66, 28, 1, 11, 96, 80, 64] -> [1, 11, 28, 64, 66, 80, 96] [72, 93, 0, 43] -> [0, 43, 72, 93] [87, 2, 55, 30, 34, 61] -> [2, 30, 34, 55, 61, 87] [86, 1, 89, 29] -> [1, 29, 86, 89] [3, 74, 25, 6] -> [3, 6, 25, 74] [32, 21, 84, 42, 14] -> [14, 21, 32, 42, 84] Questions: [93, 58, 3, 9] -> ? Answer:
[93, 58, 3, 9] -> [3, 9, 58, 93]
[93, 58, 3, 9]
[3, 9, 58, 93]
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: [44, 76, 7, 46, 47, 9, 5, 24] -> ? Answer:
[44, 76, 7, 46, 47, 9, 5, 24] -> [7, 46, 44, 76, 47, 9, 5, 24]
[44, 76, 7, 46, 47, 9, 5, 24]
[7, 46, 44, 76, 47, 9, 5, 24]
c241
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of even elements".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [28, 4, 78, 6, 6, 28, 1, 78, 4, 70] -> [9] [84, 83, 51, 5, 85, 77, 59] -> [1] [28, 5, 4, 6, 57, 12, 90, 61, 50] -> [6] [2, 6, 78, 87, 97, 93, 11, 0, 34] -> [5] [5, 3, 1, 4, 25, 32, 8] -> [3] [80, 9, 38, 1, 4, 5, 6, 72, 98] -> [6] [18, 7, 53, 11, 6, 64, 8, 2, 68, 4] -> [7] [3, 6, 4, 63, 89, 41, 9] -> [2] Questions: [49, 45, 95, 10, 4, 3, 0] -> ? Answer:
[49, 45, 95, 10, 4, 3, 0] -> [3]
[49, 45, 95, 10, 4, 3, 0]
[3]
c043
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [8, 2, 7, 0, 3]".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 6, 6, 6, 6, 3] -> [8, 2, 7, 0, 3] [6] -> [8, 2, 7, 0, 3] [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3] [5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3] [1, 1, 1, 1, 1, 1] -> [8, 2, 7, 0, 3] [5, 1, 5, 9, 6, 5, 1] -> [8, 2, 7, 0, 3] [6, 1, 9, 5, 0, 4] -> [8, 2, 7, 0, 3] [1, 1, 1, 6, 5, 6, 1, 5] -> [8, 2, 7, 0, 3] Questions: [1, 1] -> ? Answer:
[1, 1] -> [8, 2, 7, 0, 3]
[1, 1]
[8, 2, 7, 0, 3]
c244
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of 3s".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [95, 5, 0, 7, 9, 99, 6, 8] -> [0] [37, 81, 73, 4, 87, 9, 1, 93, 7] -> [0] [8, 27, 4, 44, 65, 9, 3, 5, 7] -> [1] [0, 3, 2, 7, 9, 4, 15, 64, 1, 6] -> [1] [68, 1, 69, 32, 43, 8, 25, 6, 9] -> [0] [1, 24, 83, 71, 50, 3, 2, 8, 12, 63] -> [1] [3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> [10] [3, 3, 3, 10, 46, 3, 3] -> [5] Questions: [86, 35, 91, 28, 93, 88, 0, 8, 36, 28] -> ? Answer:
[86, 35, 91, 28, 93, 88, 0, 8, 36, 28] -> [0]
[86, 35, 91, 28, 93, 88, 0, 8, 36, 28]
[0]
c115
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 unique elements, prepended and appended by their sum".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [25, 4, 25, 4, 4] -> [29, 25, 4, 29] [0, 7, 7, 4, 4, 40] -> [51, 0, 7, 4, 40, 51] [35, 22, 35, 35, 22, 35, 35, 35, 22, 22] -> [57, 35, 22, 57] [5, 5, 70] -> [75, 5, 70, 75] [12, 9, 12, 10, 8, 9, 10, 5, 10, 9] -> [44, 12, 9, 10, 8, 5, 44] [58, 14, 14, 58, 14, 14, 58, 58, 14] -> [72, 58, 14, 72] [36, 36, 3, 36, 3, 3, 36] -> [39, 36, 3, 39] [32, 4, 7, 7, 32, 7, 7, 7, 32] -> [43, 32, 4, 7, 43] Questions: [8, 16, 8, 3, 3, 16, 8, 8, 8, 8] -> ? Answer:
[8, 16, 8, 3, 3, 16, 8, 8, 8, 8] -> [27, 8, 16, 3, 27]
[8, 16, 8, 3, 3, 16, 8, 8, 8, 8]
[27, 8, 16, 3, 27]
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: [26, 2, 3, 60, 33] -> ? Answer:
[26, 2, 3, 60, 33] -> [0, 0, 1, 1, 1]
[26, 2, 3, 60, 33]
[0, 0, 1, 1, 1]
c137
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 3".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [3, 3, 3] -> [] [4, 24, 84, 7, 4, 24, 1, 3, 3, 3] -> [4, 24, 84, 7, 4, 24, 1] [2, 10, 1, 3, 7, 6, 3] -> [2, 10, 1, 7, 6] [26, 3, 55, 87, 73] -> [26, 55, 87, 73] [5, 0, 7, 39, 50, 76, 6, 1, 77, 3] -> [5, 0, 7, 39, 50, 76, 6, 1, 77] [3, 4, 7] -> [4, 7] [3, 3, 7, 0, 3, 0] -> [7, 0, 0] [17, 3, 3, 4, 39, 3] -> [17, 4, 39] Questions: [2, 66, 3, 23, 87, 0, 3] -> ? Answer:
[2, 66, 3, 23, 87, 0, 3] -> [2, 66, 23, 87, 0]
[2, 66, 3, 23, 87, 0, 3]
[2, 66, 23, 87, 0]
c073
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add the index to every element".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [0, 5, 6] -> [1, 7, 9] [1, 3] -> [2, 5] [0, 1] -> [1, 3] [8, 0, 6, 1] -> [9, 2, 9, 5] [7] -> [8] [5, 2, 6, 4] -> [6, 4, 9, 8] [6, 0, 3, 1] -> [7, 2, 6, 5] [5, 7, 6, 0, 2, 3] -> [6, 9, 9, 4, 7, 9] Questions: [7, 3, 4, 2] -> ? Answer:
[7, 3, 4, 2] -> [8, 5, 7, 6]
[7, 3, 4, 2]
[8, 5, 7, 6]
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: [38, 84, 6, 3, 7, 98] -> ? Answer:
[38, 84, 6, 3, 7, 98] -> [38, 0, 84, 0, 6, 0, 3, 1, 7, 1, 98, 0]
[38, 84, 6, 3, 7, 98]
[38, 0, 84, 0, 6, 0, 3, 1, 7, 1, 98, 0]
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: [] -> ? Answer:
[] -> []
[]
[]
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: [6] -> ? Answer:
[6] -> [6]
[6]
[6]
c048
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".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [4, 3, 8, 7, 9, 2, 5, 1, 0, 6] -> [4] [7, 6, 5, 9, 0, 4, 2, 3] -> [7] [9, 7, 1] -> [9] [7, 8, 1, 9, 6, 2, 4, 5, 3] -> [7] [9, 4, 0, 8, 6, 7, 5, 2, 3] -> [9] [7, 2, 4, 5] -> [7] [0, 5, 2, 8, 7, 6, 4, 1] -> [0] [1, 8, 7, 9, 0, 3] -> [1] Questions: [6, 7, 2, 3, 4, 0, 5, 9, 1, 8] -> ? Answer:
[6, 7, 2, 3, 4, 0, 5, 9, 1, 8] -> [6]
[6, 7, 2, 3, 4, 0, 5, 9, 1, 8]
[6]
c060
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 3, 2, 1, the number 4, then elements 5 and 7, in that order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 2, 8, 4, 6, 1, 3, 5, 9, 0] -> [8, 2, 7, 4, 6, 3] [8, 4, 9, 1, 3, 2, 7] -> [9, 4, 8, 4, 3, 7] [0, 1, 2, 3, 6, 9, 8, 4] -> [2, 1, 0, 4, 6, 8] [1, 4, 5, 2, 3, 7, 9, 6, 0] -> [5, 4, 1, 4, 3, 9] [9, 7, 5, 4, 8, 3, 0, 2] -> [5, 7, 9, 4, 8, 0] [4, 2, 1, 7, 6, 4, 0, 8, 5] -> [1, 2, 4, 4, 6, 0] [3, 1, 0, 4, 5, 8, 9, 2] -> [0, 1, 3, 4, 5, 9] [6, 2, 1, 0, 9, 8, 5] -> [1, 2, 6, 4, 9, 5] Questions: [2, 5, 9, 7, 8, 1, 0, 6, 4, 3] -> ? Answer:
[2, 5, 9, 7, 8, 1, 0, 6, 4, 3] -> [9, 5, 2, 4, 8, 0]
[2, 5, 9, 7, 8, 1, 0, 6, 4, 3]
[9, 5, 2, 4, 8, 0]
c178
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 an even number".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [7, 65, 97, 2, 5, 44] -> [97, 5] [31, 0, 72, 85, 5, 74, 8] -> [31, 0, 5, 74] [2, 81, 0, 20, 44, 67, 6, 56] -> [81, 0, 20, 67, 6] [25, 19, 93, 73, 0, 32] -> [73, 0] [5, 48, 89, 68, 30, 14, 42, 8, 90] -> [5, 89, 68, 30, 14, 42, 8] [28, 62, 76, 48, 56, 12, 6, 72, 8, 76] -> [28, 62, 76, 48, 56, 12, 6, 72, 8] [5, 4, 57, 95, 38, 6, 47, 96, 10] -> [5, 95, 38, 47, 96] [3, 6, 86, 98, 67, 34, 1, 0] -> [3, 6, 86, 67, 1] Questions: [0, 3, 1, 37, 85, 76, 5] -> ? Answer:
[0, 3, 1, 37, 85, 76, 5] -> [85]
[0, 3, 1, 37, 85, 76, 5]
[85]
c102
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: [39, 8, 4] -> [39, 8, 4] [3, 89] -> [3, 89] [52, 67] -> [52, 67] [96, 68] -> [96, 68] [58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70] [93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71] [60, 92] -> [60, 92] [83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8] Questions: [86, 74, 5, 9, 0, 25] -> ? Answer:
[86, 74, 5, 9, 0, 25] -> [86, 74, 5, 9, 0, 25]
[86, 74, 5, 9, 0, 25]
[86, 74, 5, 9, 0, 25]
c177
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [13, 94] -> [13, 94, 94, 13] [77, 7, 11] -> [77, 11, 7, 7, 11, 77] [8, 0, 65, 60] -> [8, 60, 0, 65, 65, 0, 60, 8] [26, 1, 9, 12, 98] -> [26, 98, 1, 12, 9, 9, 12, 1, 98, 26] [49, 40, 73, 4, 0, 7] -> [49, 7, 40, 0, 73, 4, 4, 73, 0, 40, 7, 49] [46, 59, 1, 76, 17, 8] -> [46, 8, 59, 17, 1, 76, 76, 1, 17, 59, 8, 46] [94, 86, 36, 43, 8, 74] -> [94, 74, 86, 8, 36, 43, 43, 36, 8, 86, 74, 94] [13, 76, 25, 8] -> [13, 8, 76, 25, 25, 76, 8, 13] Questions: [64, 33, 55, 46, 5] -> ? Answer:
[64, 33, 55, 46, 5] -> [64, 5, 33, 46, 55, 55, 46, 33, 5, 64]
[64, 33, 55, 46, 5]
[64, 5, 33, 46, 55, 55, 46, 33, 5, 64]
c056
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 5".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 5, 4, 8, 9] -> [6, 5, 4, 8] [4, 2, 9, 1, 0, 7, 6, 3] -> [4, 2, 9, 1, 7, 6, 3] [1, 0, 4, 3, 8, 5] -> [1, 0, 4, 3, 5] [5, 7, 1, 8, 3, 6, 4] -> [5, 7, 1, 8, 6, 4] [0, 9, 7, 5] -> [0, 9, 7, 5] [7] -> [7] [0, 1, 7, 9, 3, 8, 4, 6, 2] -> [0, 1, 7, 9, 8, 4, 6, 2] [8, 7, 3, 6, 0, 4, 5, 2, 9] -> [8, 7, 3, 6, 4, 5, 2, 9] Questions: [4, 3, 1, 2, 9, 5, 8, 7, 0, 6] -> ? Answer:
[4, 3, 1, 2, 9, 5, 8, 7, 0, 6] -> [4, 3, 1, 2, 5, 8, 7, 0, 6]
[4, 3, 1, 2, 9, 5, 8, 7, 0, 6]
[4, 3, 1, 2, 5, 8, 7, 0, 6]
c072
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat every element 2 times in order of appearance".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7] [8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2] [9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6] [3, 8, 9, 5, 1, 6, 0] -> [3, 3, 8, 8, 9, 9, 5, 5, 1, 1, 6, 6, 0, 0] [8, 1, 3, 9] -> [8, 8, 1, 1, 3, 3, 9, 9] [9, 6, 8, 1, 2, 5] -> [9, 9, 6, 6, 8, 8, 1, 1, 2, 2, 5, 5] [3, 1] -> [3, 3, 1, 1] [3] -> [3, 3] Questions: [2, 3, 6, 5, 0] -> ? Answer:
[2, 3, 6, 5, 0] -> [2, 2, 3, 3, 6, 6, 5, 5, 0, 0]
[2, 3, 6, 5, 0]
[2, 2, 3, 3, 6, 6, 5, 5, 0, 0]
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: [7, 7, 7, 8, 8, 9] -> ? Answer:
[7, 7, 7, 8, 8, 9] -> [7, 14, 21, 32, 40, 54]
[7, 7, 7, 8, 8, 9]
[7, 14, 21, 32, 40, 54]
c036
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1] [9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0] [7, 2, 0, 7] -> [7, 0, 2, 7] [4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1] [0, 7, 5, 2, 1, 8, 6, 9] -> [0, 5, 7, 2, 1, 8, 6, 9] [6, 7, 8, 1, 0, 2, 4] -> [1, 7, 8, 6, 0, 2, 4] [1, 7, 4, 5, 8, 9] -> [1, 4, 7, 5, 8, 9] [1, 1, 0, 7, 6] -> [1, 0, 1, 7, 6] Questions: [8, 3, 7, 6, 5, 4, 1, 9, 3, 4] -> ? Answer:
[8, 3, 7, 6, 5, 4, 1, 9, 3, 4] -> [6, 3, 7, 8, 5, 4, 1, 9, 3, 4]
[8, 3, 7, 6, 5, 4, 1, 9, 3, 4]
[6, 3, 7, 8, 5, 4, 1, 9, 3, 4]
c173
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element N with the largest element in elements 1 through N".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [6, 1, 2, 5, 8, 94] -> [6, 6, 6, 6, 8, 94] [8, 9, 4, 0, 38, 5, 27, 92] -> [8, 9, 9, 9, 38, 38, 38, 92] [53, 58, 77, 96, 8, 52, 31, 93] -> [53, 58, 77, 96, 96, 96, 96, 96] [23, 74, 3, 98, 0, 50] -> [23, 74, 74, 98, 98, 98] [3, 7, 45, 58, 22, 7] -> [3, 7, 45, 58, 58, 58] [0, 6, 38, 72, 99, 7, 1, 28, 4] -> [0, 6, 38, 72, 99, 99, 99, 99, 99] [1, 50, 81, 27, 67, 9, 72, 3] -> [1, 50, 81, 81, 81, 81, 81, 81] [4, 65, 41, 59, 2, 9] -> [4, 65, 65, 65, 65, 65] Questions: [2, 4, 12, 29, 0, 51, 58] -> ? Answer:
[2, 4, 12, 29, 0, 51, 58] -> [2, 4, 12, 29, 29, 51, 58]
[2, 4, 12, 29, 0, 51, 58]
[2, 4, 12, 29, 29, 51, 58]
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, 1, 5, 1, 5, 1] -> ? Answer:
[1, 1, 5, 1, 5, 1] -> [1, 0, 0, 0, 1, 0]
[1, 1, 5, 1, 5, 1]
[1, 0, 0, 0, 1, 0]
c213
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "three smallest elements in ascending order".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [8, 51, 55, 73, 3, 56, 87, 10, 5] -> [3, 5, 8] [70, 76, 71, 10, 60, 42, 7, 40] -> [7, 10, 40] [6, 59, 22, 7, 30, 68] -> [6, 7, 22] [40, 1, 72, 18, 61, 27, 48] -> [1, 18, 27] [75, 7, 16, 2, 8, 26] -> [2, 7, 8] [77, 5, 2, 1] -> [1, 2, 5] [25, 2, 70, 85, 35] -> [2, 25, 35] [4, 46, 20, 7, 41, 96, 42, 84] -> [4, 7, 20] Questions: [48, 95, 8, 2, 6, 4, 23, 0] -> ? Answer:
[48, 95, 8, 2, 6, 4, 23, 0] -> [0, 2, 4]
[48, 95, 8, 2, 6, 4, 23, 0]
[0, 2, 4]
c177
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave the input and the reversed input".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [13, 94] -> [13, 94, 94, 13] [77, 7, 11] -> [77, 11, 7, 7, 11, 77] [8, 0, 65, 60] -> [8, 60, 0, 65, 65, 0, 60, 8] [26, 1, 9, 12, 98] -> [26, 98, 1, 12, 9, 9, 12, 1, 98, 26] [49, 40, 73, 4, 0, 7] -> [49, 7, 40, 0, 73, 4, 4, 73, 0, 40, 7, 49] [46, 59, 1, 76, 17, 8] -> [46, 8, 59, 17, 1, 76, 76, 1, 17, 59, 8, 46] [94, 86, 36, 43, 8, 74] -> [94, 74, 86, 8, 36, 43, 43, 36, 8, 86, 74, 94] [13, 76, 25, 8] -> [13, 8, 76, 25, 25, 76, 8, 13] Questions: [64, 51, 1, 5, 58, 77] -> ? Answer:
[64, 51, 1, 5, 58, 77] -> [64, 77, 51, 58, 1, 5, 5, 1, 58, 51, 77, 64]
[64, 51, 1, 5, 58, 77]
[64, 77, 51, 58, 1, 5, 5, 1, 58, 51, 77, 64]
c126
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 1".
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output] Examples: [65, 33, 55, 54, 8, 50, 4, 90] -> [33, 55, 54, 8, 50, 4, 90] [57, 10, 6, 1, 31, 72, 0, 18, 7, 81] -> [10, 6, 1, 31, 72, 0, 18, 7, 81] [3, 33, 7, 19, 66, 82] -> [33, 7, 19, 66, 82] [3, 33, 87, 26] -> [33, 87, 26] [3, 7, 9, 20, 67, 1, 19, 6, 18] -> [7, 9, 20, 67, 1, 19, 6, 18] [67, 9, 5, 6, 58] -> [9, 5, 6, 58] [35, 15, 63, 99, 67, 83, 98, 95] -> [15, 63, 99, 67, 83, 98, 95] [77, 28] -> [28] Questions: [97] -> ? Answer:
[97] -> []
[97]
[]