The Fibonacci sequence is obtained starting from 0 and 1, and then adding the last two numbers to get the next one.

All positive integers can be represented as the sum of a set of Fibonacci numbers without repetition. For example: 13 may be the sum of the sets {13}, {5.8} or {2,3,8}. But, as we have seen, some numbers have more than one set, the sum of which is equal to the number. If we add the restriction that sets cannot have two consecutive Fibonacci numbers, then we have a unique representation for each number.
We will use a binary sequence (only zeros and ones) for this. For example, 17 = 1 + 3 + 13. Then 17 = 100101. For a detailed explanation, see Figure 2.

I want to turn some integers into this representation, but integers can be very large. How to do it effectively.
source share