Algorithm to Compute the Concatenation of Consecutive Binary Numbers December 6, 2020 algorithms, c / c++, math No Comments Given an integer n, return the decimal value of the binary string formed by concatenating the binary representations of 1 to n in order, modulo 10^9 + 7. Example … [Continue Reading...]