In a certain code language, ‘FATHER’ is written as ‘ETRHFA’ and ‘GALAXY’ is written as ‘XLYAGA’. How will ‘HABITS’ be written in that language?
- ATBSIHA
- BBAHSTI
- CSTIBAH
- DSITBAH
Solution & Step-by-step Explanation
Let's trace how letters move positions in FATHER (1 2 3 4 5 6) → ETRHFA:
Letters at odd positions (1, 3, 5): F, T, E
Letters at even positions (2, 4, 6): A, H, R
Notice the arrangement ETRHFA:
It takes the last odd character 'E' (5), then 'T' (3), then 'R' (6), then 'H' (4), then 'F' (1), then 'A' (2).
Alternatively, looking at the pattern via reverse-alternating structural block logic:
The string is rearranged by putting letters at indices 5, 3, 6, 4, 1, 2.
Let's test this with GALAXY (1:G, 2:A, 3:L, 4:A, 5:X, 6:Y):
Pos 5 = X
Pos 3 = L
Pos 6 = Y
Pos 4 = A
Pos 1 = G
Pos 2 = A
Result = XLYAGA. This matches perfectly!
Applying this positions format (5, 3, 6, 4, 1, 2) to HABITS (1:H, 2:A, 3:B, 4:I, 5:T, 6:S):
Pos 5 → T
Pos 3 → B
Pos 6 → S
Pos 4 → I
Pos 1 → H
Pos 2 → A
The final code is TBSIHA.
Letters at odd positions (1, 3, 5): F, T, E
Letters at even positions (2, 4, 6): A, H, R
Notice the arrangement ETRHFA:
It takes the last odd character 'E' (5), then 'T' (3), then 'R' (6), then 'H' (4), then 'F' (1), then 'A' (2).
Alternatively, looking at the pattern via reverse-alternating structural block logic:
The string is rearranged by putting letters at indices 5, 3, 6, 4, 1, 2.
Let's test this with GALAXY (1:G, 2:A, 3:L, 4:A, 5:X, 6:Y):
Pos 5 = X
Pos 3 = L
Pos 6 = Y
Pos 4 = A
Pos 1 = G
Pos 2 = A
Result = XLYAGA. This matches perfectly!
Applying this positions format (5, 3, 6, 4, 1, 2) to HABITS (1:H, 2:A, 3:B, 4:I, 5:T, 6:S):
Pos 5 → T
Pos 3 → B
Pos 6 → S
Pos 4 → I
Pos 1 → H
Pos 2 → A
The final code is TBSIHA.