If you really want to view the solution, just read below.
This solution has been written the 14th of June 2002.
Well the clue was quite clear.You had to think LCD!
How do we commonly write "8" ?
|---2---|
| |
4 1
| |
|---8---|
| |
64 16
| |
|---32--|
Do you understand now?
We can assume that each tile is a bit.
The first term of the sequence represents 0 because 1 + 2 + 4 + 16 + 32 + 64 = 119.
The second represents 1 because 1 + 16 = 17.
And so on...
Naturally for bigger numbers [1,2,4,...,64] is replaced by [128,...,16384] etc.
Actually it's possible to program the sequence(lcd function) with scilab.
nb : final result
ndc : number of digits
u : currently interesting digit in n
M(i,j) : (j-1)th bit of (i-1)
The code is:
function [nb]=lcd(n);nb=0;M=[1 1 1 0 1 1 1;1 0 0 0 1 0 0;1 1 0 1 0 1 1;1 1 0 1 1 1 0;1 0 1 1 1 0 0;0 1 1 1 1 1 0;0 1 1 1 1 1 1;1 1 0 0 1 0 0;1 1 1 1 1 1 1;1 1 1 1 1 1 0];if n <> 0 then ndc=int(log10(n))+1,else ndc = 1,end;for cx = ndc:-1:1;u=int(n/(10^(cx-1)));n=n-u*(10^(cx-1));for j=0:6;nb=nb+M(u+1,j+1)*2^(j+7*(ndc-cx)),end,end;endfunction
...and lcd(n) computes the lcd number corresponding to n.
Back to the enigma
Back to the enigmas
Home