in problem B. Well-known Numbers Codeforces Round 139 Div 2 The K-bonacci numbers are only 0 and powers of two. how is the output of the first sample 3 0 2 3 although the sum is equal to s 3 isn't belong to any term of bonacci sequence. how is this possible ?
F(2,5) = F(2,4) + F(2,3) = 2 + 1 = 3
aha . then why in the tutorial says its only powers of two ?
That is for k bigger than 32.
thanks.