It is quite enlightening seeing just how many operations it takes to do something simple. For those of a coding bent a hint is
The multiply has been met before but the divide/modulo operation is new
>> is what it is all about
but the number you put in is not the signal, it completes the signal.
I quite enjoyed working out what the code was doing and then determining the input needed by hand rather than brute forcing it to calculate the answer. I will admit that implementing a compiler to simplify the task is beyond my current resources (time and ability).