OFFSET
1,3
COMMENTS
The longest run in the sequence has length 3.
The powers of 2 (A000079) are the indices of 1s in this sequence.
LINKS
Neal Gersh Tolunsky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) cannot be 1 since i = 1,2 would have the same sum as i = 3. So a(3) = 2.
a(12) cannot be 1 since i = 4,8 would have the same sum as i = 12. a(12) = 2 would give i = 12 the same sum as i = 5,7. a(12) = 3 would give i = 10,11 the same sum as i = 9,12. So a(12) = 4.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Jan 31 2025
STATUS
approved