inputs stringlengths 305 681 | targets stringlengths 6 53 | _template_idx int64 0 9 | _task_source stringclasses 1
value | _task_name stringclasses 1
value | _template_type stringclasses 2
values |
|---|---|---|---|---|---|
TASK DEFINITION: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
PROBLEM: [24, 39, 173, 24, 50, 58, 73]
SOLUTION: [12, 118, 520, 12, 25, 29, 220]
PROBLEM: [51, 94]
SOLUTION: [154, 47]
PROBLEM: [123, 173, 55, 71, 136, 13, 125, 113]
SOLUTION: | [370, 520, 166, 214, 68, 40, 376, 340]
| 8 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example is below.
Q: [7, 9, 2, 8]
A: [22, 28, 1, 4]
Rationale: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [91, 131, 158, 192, 40, 148]
A: | [274, 394, 79, 96, 20, 74] | 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example input: [7, 9, 2, 8]
Example output: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [148, 185, 35, 77]
A: | [74, 556, 106, 232] | 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [178, 118, 116, 84, 82, 175, 23, 14]
Example Output: [89, 59, 58, 42, 41, 526, 70, 7]
Example Input: [113, 59, 134]
Example Output: [340, 178, 67]
Example Input: [148, 185, 35, 77]
Example Output: | [74, 556, 106, 232]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example: [7, 9, 2, 8]
Solution is here: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this: [167, 126, 49, 157]
Solution: | [502, 63, 148, 472] | 6 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Q: [95, 96, 183, 18, 81, 119, 58, 154, 27]
A: [286, 48, 550, 9, 244, 358, 29, 77, 82]
****
Q: [163, 150, 117, 121, 140]
A: [490, 75, 352, 364, 70]
****
Q: [106, 20, 82, 4, 80]
A: | [53, 10, 41, 2, 40]
****
| 4 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example input: [7, 9, 2, 8]
Example output: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [106, 20, 82, 4, 80]
A: | [53, 10, 41, 2, 40] | 3 | NIv2 | task206_collatz_conjecture | fs_opt |
instruction:
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
question:
[116, 17, 9, 21, 136, 103]
answer:
[58, 52, 28, 64, 68, 310]
question:
[171, 31, 1, 119]
answer:
[514, 94, 4, 358]
question:
[68, 8, 74, 117, 72, 97, 98, 148, 38]
answer:
| [34, 4, 37, 352, 36, 292, 49, 74, 19]
| 9 | NIv2 | task206_collatz_conjecture | fs_opt |
Teacher: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Reason: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this instance: [149, 189, 94, 46, 56, 105, 174]
Student: | [448, 568, 47, 23, 28, 316, 87] | 2 | NIv2 | task206_collatz_conjecture | fs_opt |
instruction:
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
question:
[25, 78, 12, 137, 84, 151, 15]
answer:
[76, 39, 6, 412, 42, 454, 46]
question:
[141, 125, 45, 170, 110]
answer:
[424, 376, 136, 85, 55]
question:
[188, 26, 67, 93]
answer:
| [94, 13, 202, 280]
| 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example is below.
Q: [7, 9, 2, 8]
A: [22, 28, 1, 4]
Rationale: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [63, 77, 186]
A: | [190, 232, 93] | 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example input: [7, 9, 2, 8]
Example output: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [123, 173, 55, 71, 136, 13, 125, 113]
A: | [370, 520, 166, 214, 68, 40, 376, 340] | 3 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[162, 5, 60, 186, 180, 184]
Answer: | [81, 16, 30, 93, 90, 92] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
instruction:
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
question:
[69, 196, 24, 150, 193, 1, 199]
answer:
[208, 98, 12, 75, 580, 4, 598]
question:
[9, 111, 3, 74, 165, 12, 125]
answer:
[28, 334, 10, 37, 496, 6, 376]
question:
[104, 166, 65, 78, 95, 24]
answer:
| [52, 83, 196, 39, 286, 12]
| 9 | NIv2 | task206_collatz_conjecture | fs_opt |
TASK DEFINITION: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
PROBLEM: [198, 104, 115, 181, 151]
SOLUTION: [99, 52, 346, 544, 454]
PROBLEM: [37, 197, 86, 106, 101]
SOLUTION: [112, 592, 43, 53, 304]
PROBLEM: [158, 65, 196]
SOLUTION: | [79, 196, 98]
| 8 | NIv2 | task206_collatz_conjecture | fs_opt |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Why? The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input: [123, 190, 117, 2]
Solution: | [370, 95, 352, 1] | 0 | NIv2 | task206_collatz_conjecture | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Output: [22, 28, 1, 4]
The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input case for you: [137, 1, 38, 134, 175, 172, 8]
Output: | [412, 4, 19, 67, 526, 86, 4] | 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example: [7, 9, 2, 8]
Solution is here: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this: [190, 189]
Solution: | [95, 568] | 6 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Ex Input:
[145, 148, 29, 173, 19, 19, 138, 15]
Ex Output:
[436, 74, 88, 520, 58, 58, 69, 46]
Ex Input:
[56, 44, 70, 197, 12]
Ex Output:
[28, 22, 35, 592, 6]
Ex Input:
[119, 91, 58]
Ex Output:
| [358, 274, 29]
| 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Q: [42, 51, 114]
A: [21, 154, 57]
****
Q: [75, 109, 17, 126, 113]
A: [226, 328, 52, 63, 340]
****
Q: [63, 171, 135, 200, 50, 21, 30, 132]
A: | [190, 514, 406, 100, 25, 64, 15, 66]
****
| 4 | NIv2 | task206_collatz_conjecture | fs_opt |
Teacher: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Reason: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this instance: [28, 153]
Student: | [14, 460] | 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Q: [160, 198, 81]
A: [80, 99, 244]
****
Q: [168, 159, 152, 37, 35]
A: [84, 478, 76, 112, 106]
****
Q: [150, 89, 104, 55, 116, 194]
A: | [75, 268, 52, 166, 58, 97]
****
| 4 | NIv2 | task206_collatz_conjecture | fs_opt |
instruction:
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
question:
[38, 28, 10, 163]
answer:
[19, 14, 5, 490]
question:
[32, 126, 42, 128, 42, 11, 137, 172]
answer:
[16, 63, 21, 64, 21, 34, 412, 86]
question:
[171, 40, 106, 87, 58, 57, 90, 124, 112]
answer:
| [514, 20, 53, 262, 29, 172, 45, 62, 56]
| 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Ex Input:
[44, 106, 150, 151, 103, 134, 113, 130, 170]
Ex Output:
[22, 53, 75, 454, 310, 67, 340, 65, 85]
Ex Input:
[95, 55, 92, 130, 154, 56, 91, 17, 102]
Ex Output:
[286, 166, 46, 65, 77, 28, 274, 52, 51]
Ex Input:
[141, 163, 187, 43, 119, 186, 5, 150]
Ex Output:
| [424, 490, 562, 130, 358, 93, 16, 75]
| 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[Q]: [120, 25]
[A]: [60, 76]
[Q]: [143, 156, 19]
[A]: [430, 78, 58]
[Q]: [148, 31]
[A]: | [74, 94]
| 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example input: [7, 9, 2, 8]
Example output: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [59, 197, 40, 191, 60]
A: | [178, 592, 20, 574, 30] | 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Q: [25, 78, 12, 137, 84, 151, 15]
A: [76, 39, 6, 412, 42, 454, 46]
****
Q: [172, 114, 14, 200, 48, 193, 60, 79, 63]
A: [86, 57, 7, 100, 24, 580, 30, 238, 190]
****
Q: [41, 195, 78, 141, 193]
A: | [124, 586, 39, 424, 580]
****
| 4 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [1, 69, 95]
| Solution: [4, 208, 286] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example is below.
Q: [7, 9, 2, 8]
A: [22, 28, 1, 4]
Rationale: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [100, 192, 21, 41, 175, 199, 155, 180]
A: | [50, 96, 64, 124, 526, 598, 466, 90] | 9 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[26, 72, 28, 73, 141]
Answer: | [13, 36, 14, 220, 424] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Output: [22, 28, 1, 4]
The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input case for you: [167, 193, 43, 25, 12, 82, 186, 107]
Output: | [502, 580, 130, 76, 6, 41, 93, 322] | 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example is below.
Q: [7, 9, 2, 8]
A: [22, 28, 1, 4]
Rationale: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [197, 97, 131, 23]
A: | [592, 292, 394, 70] | 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example: [7, 9, 2, 8]
Solution is here: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this: [91, 36, 9, 149, 61, 162, 138, 72, 169]
Solution: | [274, 18, 28, 448, 184, 81, 69, 36, 508] | 6 | NIv2 | task206_collatz_conjecture | fs_opt |
instruction:
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
question:
[78, 111, 58]
answer:
[39, 334, 29]
question:
[186, 83, 66, 104, 56]
answer:
[93, 250, 33, 52, 28]
question:
[91, 36, 9, 149, 61, 162, 138, 72, 169]
answer:
| [274, 18, 28, 448, 184, 81, 69, 36, 508]
| 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Input: Consider Input: [84, 194, 74, 42, 121, 127, 13, 76]
Output: [42, 97, 37, 21, 364, 382, 40, 38]
Input: Consider Input: [90, 86, 151, 119, 82, 145, 73, 32]
Output: [45, 43, 454, 358, 41, 436, 220, 16]
Input: Consider Input: [148, 43, 86, 146, 173, 44, 95, 99]
| Output: [74, 130, 43, 73, 520, 22, 286, 298]
| 2 | NIv2 | task206_collatz_conjecture | fs_opt |
TASK DEFINITION: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
PROBLEM: [77, 151, 11, 169, 64, 114]
SOLUTION: [232, 454, 34, 508, 32, 57]
PROBLEM: [28, 71]
SOLUTION: [14, 214]
PROBLEM: [53, 176, 77, 146, 98, 134, 131, 22, 52]
SOLUTION: | [160, 88, 232, 73, 49, 67, 394, 11, 26]
| 8 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[52, 135, 5, 122]
Answer: | [26, 406, 16, 61] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Let me give you an example: [7, 9, 2, 8]
The answer to this example can be: [22, 28, 1, 4]
Here is why: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
OK. solve this:
[179, 120, 75, 171, 108]
Answer: | [538, 60, 226, 514, 54] | 8 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[EX Q]: [44, 16, 161, 125, 147]
[EX A]: [22, 8, 484, 376, 442]
[EX Q]: [53, 176, 55]
[EX A]: [160, 88, 166]
[EX Q]: [176, 91, 126, 51, 55]
[EX A]: | [88, 274, 63, 154, 166]
| 6 | NIv2 | task206_collatz_conjecture | fs_opt |
Teacher: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Reason: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this instance: [84, 46, 95, 3, 113, 76, 47, 37, 118]
Student: | [42, 23, 286, 10, 340, 38, 142, 112, 59] | 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[29, 125, 39, 26, 45, 49, 150, 189]
[88, 376, 118, 13, 136, 148, 75, 568]
[146, 139, 29, 19]
[73, 418, 88, 58]
[102, 159, 128]
| [51, 478, 64]
| 0 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Ex Input:
[120, 25]
Ex Output:
[60, 76]
Ex Input:
[110, 32, 194, 44, 187, 25, 40]
Ex Output:
[55, 16, 97, 22, 562, 76, 20]
Ex Input:
[159, 36, 14, 163, 26]
Ex Output:
| [478, 18, 7, 490, 13]
| 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example is below.
Q: [7, 9, 2, 8]
A: [22, 28, 1, 4]
Rationale: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [49, 10, 13, 124]
A: | [148, 5, 40, 62] | 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[183, 6, 150, 7, 185, 140]
[550, 3, 75, 22, 556, 70]
[78, 196, 73, 94]
[39, 98, 220, 47]
[149, 105, 62, 47, 98, 133, 27, 118]
| [448, 316, 31, 142, 49, 400, 82, 59]
| 0 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[Q]: [163, 12, 116, 70, 26, 11, 148]
[A]: [490, 6, 58, 35, 13, 34, 74]
[Q]: [195, 144, 88, 45, 19, 169, 182, 114]
[A]: [586, 72, 44, 136, 58, 508, 91, 57]
[Q]: [116, 119, 141, 123, 53, 2, 88, 190, 20]
[A]: | [58, 358, 424, 370, 160, 1, 44, 95, 10]
| 5 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[199, 95, 103, 176, 134, 3, 29, 172]
Answer: | [598, 286, 310, 88, 67, 10, 88, 86] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Output: [22, 28, 1, 4]
The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input case for you: [117, 41, 116, 35]
Output: | [352, 124, 58, 106] | 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Let me give you an example: [7, 9, 2, 8]
The answer to this example can be: [22, 28, 1, 4]
Here is why: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
OK. solve this:
[180, 176, 116, 72]
Answer: | [90, 88, 58, 36] | 8 | NIv2 | task206_collatz_conjecture | fs_opt |
TASK DEFINITION: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
PROBLEM: [199, 143, 180, 159, 142, 132, 119, 150, 68]
SOLUTION: [598, 430, 90, 478, 71, 66, 358, 75, 34]
PROBLEM: [131, 4, 9, 33, 159, 89, 90, 76, 108]
SOLUTION: [394, 2, 28, 100, 478, 268, 45, 38, 54]
PROBLEM: [64, 167]
SOLUTION: | [32, 502]
| 8 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [18, 160, 61, 21, 91, 187, 57]
Example Output: [9, 80, 184, 64, 274, 562, 172]
Example Input: [49, 102, 1, 10, 113, 169, 123]
Example Output: [148, 51, 4, 5, 340, 508, 370]
Example Input: [100, 38, 149, 75, 54, 182]
Example Output: | [50, 19, 448, 226, 27, 91]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[Q]: [197, 15, 178, 81, 147]
[A]: [592, 46, 89, 244, 442]
[Q]: [48, 6, 67, 186, 32, 55, 18, 123, 146]
[A]: [24, 3, 202, 93, 16, 166, 9, 370, 73]
[Q]: [63, 171, 69, 40, 152, 129, 151, 157, 143]
[A]: | [190, 514, 208, 20, 76, 388, 454, 472, 430]
| 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example is below.
Q: [7, 9, 2, 8]
A: [22, 28, 1, 4]
Rationale: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [11, 22, 69, 124, 38, 49, 131, 9, 33]
A: | [34, 11, 208, 62, 19, 148, 394, 28, 100] | 9 | NIv2 | task206_collatz_conjecture | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Output: [22, 28, 1, 4]
The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input case for you: [63, 171, 69, 40, 152, 129, 151, 157, 143]
Output: | [190, 514, 208, 20, 76, 388, 454, 472, 430] | 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [27, 174, 157, 83, 54, 84, 65]
| Solution: [82, 87, 472, 250, 27, 42, 196] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example: [7, 9, 2, 8]
Solution is here: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this: [138, 121, 170, 189, 31]
Solution: | [69, 364, 85, 568, 94] | 6 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example input: [7, 9, 2, 8]
Example output: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Q: [70, 72, 102, 6, 8, 2, 10, 17]
A: | [35, 36, 51, 3, 4, 1, 5, 52] | 3 | NIv2 | task206_collatz_conjecture | fs_opt |
Teacher: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Reason: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this instance: [93, 60, 14, 123, 119, 51, 4, 51, 28]
Student: | [280, 30, 7, 370, 358, 154, 2, 154, 14] | 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[Q]: [135, 114, 162, 5]
[A]: [406, 57, 81, 16]
[Q]: [152, 77]
[A]: [76, 232]
[Q]: [85, 101, 61, 73, 159, 164, 37]
[A]: | [256, 304, 184, 220, 478, 82, 112]
| 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [18, 66, 35, 93, 83]
| Solution: [9, 33, 106, 280, 250] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[112, 118, 167, 97, 175, 46, 178, 83]
[56, 59, 502, 292, 526, 23, 89, 250]
[85, 53]
[256, 160]
[18, 66, 35, 93, 83]
| [9, 33, 106, 280, 250]
| 0 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Q: [152, 20, 15, 87, 50, 163, 122]
A: [76, 10, 46, 262, 25, 490, 61]
****
Q: [141, 38, 200, 197, 58, 164, 108, 167, 121]
A: [424, 19, 100, 592, 29, 82, 54, 502, 364]
****
Q: [177, 3, 55, 53, 46]
A: | [532, 10, 166, 160, 23]
****
| 4 | NIv2 | task206_collatz_conjecture | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Output: [22, 28, 1, 4]
The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input case for you: [177, 3, 55, 53, 46]
Output: | [532, 10, 166, 160, 23] | 1 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [110, 32, 194, 44, 187, 25, 40]
Example Output: [55, 16, 97, 22, 562, 76, 20]
Example Input: [148, 43, 86, 146, 173, 44, 95, 99]
Example Output: [74, 130, 43, 73, 520, 22, 286, 298]
Example Input: [45, 155]
Example Output: | [136, 466]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
One example: [7, 9, 2, 8]
Solution is here: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this: [112, 10, 92, 182, 93]
Solution: | [56, 5, 46, 91, 280] | 6 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Ex Input:
[65, 79, 171, 96]
Ex Output:
[196, 238, 514, 48]
Ex Input:
[119, 72, 30, 160, 170]
Ex Output:
[358, 36, 15, 80, 85]
Ex Input:
[7, 169, 66]
Ex Output:
| [22, 508, 33]
| 1 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[132, 54]
Answer: | [66, 27] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[171, 115, 180, 11]
Answer: | [514, 346, 90, 34] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[148, 43, 86, 146, 173, 44, 95, 99]
[74, 130, 43, 73, 520, 22, 286, 298]
[29, 125, 39, 26, 45, 49, 150, 189]
[88, 376, 118, 13, 136, 148, 75, 568]
[67, 77, 183, 175, 175, 177, 126]
| [202, 232, 550, 526, 526, 532, 63]
| 0 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [129, 182, 197]
Example Output: [388, 91, 592]
Example Input: [32, 46, 73, 12, 4, 143, 24, 123]
Example Output: [16, 23, 220, 6, 2, 430, 12, 370]
Example Input: [74, 47, 37, 47, 105, 69]
Example Output: | [37, 142, 112, 142, 316, 208]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Input: Consider Input: [46, 96, 4, 132, 75, 9, 137, 113]
Output: [23, 48, 2, 66, 226, 28, 412, 340]
Input: Consider Input: [97, 194, 168, 118, 30, 112, 87, 137, 56]
Output: [292, 97, 84, 59, 15, 56, 262, 412, 28]
Input: Consider Input: [81, 17, 127, 82, 19, 11, 90, 24, 186]
| Output: [244, 52, 382, 41, 58, 34, 45, 12, 93]
| 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [98, 146, 192, 74, 135]
| Solution: [49, 73, 96, 37, 406] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[167, 27, 68, 17, 93, 66, 38]
Answer: | [502, 82, 34, 52, 280, 33, 19] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [183, 119, 143, 178, 165, 70, 136]
Example Output: [550, 358, 430, 89, 496, 35, 68]
Example Input: [49, 102, 1, 10, 113, 169, 123]
Example Output: [148, 51, 4, 5, 340, 508, 370]
Example Input: [69, 112, 126, 167]
Example Output: | [208, 56, 63, 502]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[Q]: [198, 29, 157, 193, 51, 91]
[A]: [99, 88, 472, 580, 154, 274]
[Q]: [157, 138, 110, 171, 90, 98, 165, 26]
[A]: [472, 69, 55, 514, 45, 49, 496, 13]
[Q]: [107, 52, 175, 128, 110, 119]
[A]: | [322, 26, 526, 64, 55, 358]
| 5 | NIv2 | task206_collatz_conjecture | fs_opt |
Part 1. Definition
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Part 2. Example
[7, 9, 2, 8]
Answer: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Part 3. Exercise
[114, 13, 130, 188, 173, 126, 91, 13, 3]
Answer: | [57, 40, 65, 94, 520, 63, 274, 40, 10] | 7 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Ex Input:
[169, 184, 83, 164, 153, 86, 13, 124]
Ex Output:
[508, 92, 250, 82, 460, 43, 40, 62]
Ex Input:
[172, 51, 83, 176, 8, 160, 193, 166, 3]
Ex Output:
[86, 154, 250, 88, 4, 80, 580, 83, 10]
Ex Input:
[98, 146, 192, 74, 135]
Ex Output:
| [49, 73, 96, 37, 406]
| 1 | NIv2 | task206_collatz_conjecture | fs_opt |
TASK DEFINITION: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
PROBLEM: [29, 146, 92, 173, 111, 196, 93]
SOLUTION: [88, 73, 46, 520, 334, 98, 280]
PROBLEM: [57, 199, 62, 20, 167, 98]
SOLUTION: [172, 598, 31, 10, 502, 49]
PROBLEM: [114, 13, 130, 188, 173, 126, 91, 13, 3]
SOLUTION: | [57, 40, 65, 94, 520, 63, 274, 40, 10]
| 8 | NIv2 | task206_collatz_conjecture | fs_opt |
Teacher: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Reason: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Now, solve this instance: [185, 11, 112, 19]
Student: | [556, 34, 56, 58] | 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Input: Consider Input: [144, 171, 26, 23]
Output: [72, 514, 13, 70]
Input: Consider Input: [154, 174]
Output: [77, 87]
Input: Consider Input: [162, 180, 95, 96, 56, 98, 132]
| Output: [81, 90, 286, 48, 28, 49, 66]
| 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [134, 19, 16, 181]
| Solution: [67, 58, 8, 544] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
Detailed Instructions: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
See one example below:
Problem: [7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [19, 48, 41, 135, 50, 196, 116]
Solution: | [58, 24, 124, 406, 25, 98, 58] | 4 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[EX Q]: [80, 179, 71, 40, 42, 114]
[EX A]: [40, 538, 214, 20, 21, 57]
[EX Q]: [32, 104, 76, 190]
[EX A]: [16, 52, 38, 95]
[EX Q]: [134, 19, 16, 181]
[EX A]: | [67, 58, 8, 544]
| 6 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [141, 151, 149, 186, 126, 110]
| Solution: [424, 454, 448, 93, 63, 55] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Let me give you an example: [7, 9, 2, 8]
The answer to this example can be: [22, 28, 1, 4]
Here is why: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
OK. solve this:
[11, 1, 175, 22, 38, 159, 198, 54, 177]
Answer: | [34, 4, 526, 11, 19, 478, 99, 27, 532] | 8 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Let me give you an example: [7, 9, 2, 8]
The answer to this example can be: [22, 28, 1, 4]
Here is why: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
OK. solve this:
[144, 100, 152, 150, 171]
Answer: | [72, 50, 76, 75, 514] | 8 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Input: Consider Input: [124, 110, 44, 20, 77, 56, 68]
Output: [62, 55, 22, 10, 232, 28, 34]
Input: Consider Input: [87, 189, 148, 109, 44, 122, 77, 70]
Output: [262, 568, 74, 328, 22, 61, 232, 35]
Input: Consider Input: [19, 48, 41, 135, 50, 196, 116]
| Output: [58, 24, 124, 406, 25, 98, 58]
| 2 | NIv2 | task206_collatz_conjecture | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Output: [22, 28, 1, 4]
The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input case for you: [137, 52, 193, 124, 149, 118, 62]
Output: | [412, 26, 580, 62, 448, 59, 31] | 1 | NIv2 | task206_collatz_conjecture | fs_opt |
Detailed Instructions: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
See one example below:
Problem: [7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [186, 31, 101, 103, 47, 68]
Solution: | [93, 94, 304, 310, 142, 34] | 4 | NIv2 | task206_collatz_conjecture | fs_opt |
Detailed Instructions: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
See one example below:
Problem: [7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [119, 77, 124, 27]
Solution: | [358, 232, 62, 82] | 4 | NIv2 | task206_collatz_conjecture | fs_opt |
instruction:
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
question:
[96, 125, 5, 145, 142]
answer:
[48, 376, 16, 436, 71]
question:
[42, 69, 119, 28, 42, 91, 120, 159, 153]
answer:
[21, 208, 358, 14, 21, 274, 60, 478, 460]
question:
[186, 31, 101, 103, 47, 68]
answer:
| [93, 94, 304, 310, 142, 34]
| 9 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [133, 83, 160, 173, 16, 46, 113, 127, 61]
| Solution: [400, 250, 80, 520, 8, 23, 340, 382, 184] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [19, 33, 142, 14]
Example Output: [58, 100, 71, 7]
Example Input: [62, 191, 116]
Example Output: [31, 574, 58]
Example Input: [133, 83, 160, 173, 16, 46, 113, 127, 61]
Example Output: | [400, 250, 80, 520, 8, 23, 340, 382, 184]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[7, 9, 2, 8]
Solution: [22, 28, 1, 4]
Why? The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
New input: [169, 164, 34, 64, 108, 175]
Solution: | [508, 82, 17, 32, 54, 526] | 0 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[Q]: [55, 157]
[A]: [166, 472]
[Q]: [134, 141, 172]
[A]: [67, 424, 86]
[Q]: [79, 151, 44, 17, 170, 199, 24, 134, 180]
[A]: | [238, 454, 22, 52, 85, 598, 12, 67, 90]
| 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [77, 148, 174]
Example Output: [232, 74, 87]
Example Input: [174, 141, 95, 124, 171, 34]
Example Output: [87, 424, 286, 62, 514, 17]
Example Input: [60, 192, 165, 133, 66]
Example Output: | [30, 96, 496, 400, 33]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example: [7, 9, 2, 8]
Example solution: [22, 28, 1, 4]
Example explanation: The odd numbers, seven and nine, were multiplied by three and added one. The even numbers, two and eight, were divided by two. So this is a good example.
Problem: [75, 47]
| Solution: [226, 142] | 5 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Input: Consider Input: [10, 44, 174, 38, 148, 159, 200, 46, 169]
Output: [5, 22, 87, 19, 74, 478, 100, 23, 508]
Input: Consider Input: [8, 138, 26, 10, 147, 78, 97, 23, 115]
Output: [4, 69, 13, 5, 442, 39, 292, 70, 346]
Input: Consider Input: [149, 99, 44, 158, 59, 164]
| Output: [448, 298, 22, 79, 178, 82]
| 2 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Q: [134, 197, 44]
A: [67, 592, 22]
****
Q: [10, 44, 174, 38, 148, 159, 200, 46, 169]
A: [5, 22, 87, 19, 74, 478, 100, 23, 508]
****
Q: [75, 47]
A: | [226, 142]
****
| 4 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
[EX Q]: [9, 30, 20, 159, 37, 129, 95]
[EX A]: [28, 15, 10, 478, 112, 388, 286]
[EX Q]: [75, 109, 17, 126, 113]
[EX A]: [226, 328, 52, 63, 340]
[EX Q]: [152, 104, 158, 64]
[EX A]: | [76, 52, 79, 32]
| 6 | NIv2 | task206_collatz_conjecture | fs_opt |
In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
Example Input: [87, 115]
Example Output: [262, 346]
Example Input: [78, 196, 73, 94]
Example Output: [39, 98, 220, 47]
Example Input: [188, 73, 28]
Example Output: | [94, 220, 14]
| 3 | NIv2 | task206_collatz_conjecture | fs_opt |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6