nick1816
A railway passes through four towns A, B, C, and D. The railway forms a complete loop, as shown below, and trains go in both directions. Suppose that a trip between two adjacent towns costs one ticket. Using exactly eight tickets, how many distinct ways are there of traveling from town A and ending at town A? (Note that passing through AA somewhere in the middle of the trip is allowed.)
Attachment:
Untitled.png
A. 48
B. 64
C. 96
D. 128
E. 150
Given: A railway passes through four towns A, B, C, and D. The railway forms a complete loop, as shown below, and trains go in both directions. Suppose that a trip between two adjacent towns costs one ticket.
Asked: Using exactly eight tickets, how many distinct ways are there of traveling from town A and ending at town A?
Possible trips = A(D/B)(A/C)(D/B)(A/C)(D/B)(A/C)(D/B)A
A trip ADADABABA represents how 8 tickets are spent travelling.
The number of distinct ways of traveling from town A and ending at town A \(= 2^7 = 128\)
IMO D