The Ternary Calculating Machine of Thomas Fowler(mortati.com) |
The Ternary Calculating Machine of Thomas Fowler(mortati.com) |
The solution for a nice brainteaser can be found quickly once one thinks about balanced trinary, here it is: "Using a balance scale, what is the minimum number of wheights needed to weigh any whole number of grams up to 40g?"
[1] http://www.amazon.com/Art-Computer-Programming-Volume-Seminu...
http://en.wikipedia.org/wiki/Theory_of_computation
If you are interested in "functions/mappings" then you can look at Lambda Calculus and work your way right up to modern functional programming languages: