OFFSET
1,2
FORMULA
Sum_{k=1..n} a(k) = (3/2)*n + o(n).
EXAMPLE
Partial sums s(n) = Sum_{k=1..n} a(k) are 1,3,5,7,... hence sequence begins 1,2,2,2,1,1,1,1,1,2,2,2,2,2,2,2,1. (E.g., third run has length 5 since s(3)=5.)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 10 2003
STATUS
approved