OFFSET
1,6
COMMENTS
a(n) is the least k such that K(k) + K(k+1) + ... + K(k + 2*n - 1) = 3*n, where K(m) = A000002(m).
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
nmax = 90; a2 = {1, 2, 2}; For[n = 3, n <= 2*nmax, n++, For[i = 1, i <= a2[[n]], i++, AppendTo[a2, 1 + Mod[n - 1, 2]]]]; a[n_] := For[k = 1, True, k++, If[Plus @@ a2[[k ;; k + 2*n - 1]] == 3*n, Return[k]]]; Table[a[n], {n, 1, nmax}] (* Jean-François Alcover, Sep 25 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Sep 21 2002
EXTENSIONS
Offset corrected by Nathaniel Johnston, May 02 2011
STATUS
approved