Correct option is B
The code alternates between adding and subtracting 1 to each digit in sequence: +1, –1, +1, –1, We are given:
In a certain code, 35796 is written as 44887.
We need to find the logic behind this transformation to code 46823.
Step 1: Compare digits in same positions:
Original | 3 | 5 | 7 | 9 | 6 |
Code | 4 | 4 | 8 | 8 | 7 |
Let’s try to figure out what is being done to each digit.
Position 1:
3 → 4 → +1
Position 2:
5 → 4 → –1
Position 3:
7 → 8 → +1
Position 4:
9 → 8 → –1
Position 5:
6 → 7 → +1
So, the pattern is:
+1, –1, +1, –1, +1
Step 2: Apply same pattern to 46823
Position | Digit | Operation | Result |
1 | 4 | +1 | 5 |
2 | 6 | –1 | 5 |
3 | 8 | +1 | 9 |
4 | 2 | –1 | 1 |
5 | 3 | +1 | 4 |
So, 46823 → 55914