Motto: Există bătălii pe care e bine să le ocoleşti, dar nu din teama că le-ai putea pierde, ci pentru că ai deveni ridicol câştigandu-le.
C. Cifre binare
Se dă secvenţa de cifre
21218453415461109221
Inseraţi cinci virgule şi obţineţi şase numere cu proprietatea că în reprezentărea binară a fiecărui număr nu vor fi două cifre alăturate identice.
Care este suma acestor şase numre /
Dacă problema ar fi pentru cifrele 542 şi o singură virgulă, răspunsul ar fi 47 (5+42=47).
Susă: Puzzleup 2014
Insert 5 commas between the digits of 21218453415461109221 and obtain 6 numbers, so that no two consecutive digits will be the same in the binary representation of these numbers.
What is the sum of these 6 numbers?
If the problem was asked for 542 with one comma, then the answer would be 47 (5+42=47).
The binary representation of 5 is 101, the binary representation of 42 is 101010, and no two consecutive digits are the same in these numbers.