I like this type of IR question because is not hard
- that is, if a person keeps track of their work. This is my way of doing the problem:
as I mentally follow the chart, each time there is a change I add a number to P in order not to forget the value. So,
And since this is IR, there are parts of the algorithm that are "useless" meaning that they are just there to confuse you.
So the correct answer is P=59
Thanks for the practice problem Mike