2017 T5: A Computer Science Problem?
Source:
January 29, 2017
2017team
Problem Statement
We have four registers, , such that initially contains the number for . We are allowed two operations:
[*] Simultaneously swap the contents of and as well as and .[*] Simultaneously transfer the contents of to , the contents of to , and the contents of to . (For example if we do this once then .)
Using these two operations as many times as desired and in whatever order, what is the total number of possible outcomes?