3 ms·
square(333) is the addition of 999 + 9990 + 99900 = (1000 - 1) + (10000 - 10) + (100000 - 100) = 111000 - 111 The more '3' you add, the more '1' and '0' you ge
by gabaix 15y ago
square(333) is the addition of 999 + 9990 + 99900 = (1000 - 1) + (10000 - 10) + (100000 - 100) = 111000 - 111
The more '3' you add, the more '1' and '0' you get.
square(333) = 11110000 - 1111
It is actually a very binary computing.