Where are the Odds?
Let be the -th positive integer that does not contain three consecutive ones in its binary representation.
For example, and .
Define to be the sum of for all where is odd. You are given .
Find giving your answer modulo .
奇数在哪里?
令为第个二进制表示不包含三个连续的的正整数。
例如,,。
定义为所有满足且为奇数的之和。已知。
求,并对取余作为你的答案。
Gitalking ...