OFFSET
1,3
COMMENTS
a(n)=1 plus the number of symbol changes in the first n terms of A078880. - Jean-Marc Fedou and Gabriele Fici, Mar 18 2010
LINKS
Jon Maiga, Table of n, a(n) for n = 1..10000
J.M. Fedou and G. Fici, Some remarks on differentiable sequences and recursivity, Journal of Integer Sequences 13(3): Article 10.3.2 (2010). [From Jean-Marc Fedou and Gabriele Fici, Mar 18 2010]
FORMULA
MATHEMATICA
a2 = {1, 2, 2}; Do[ a2 = Join[a2, {1 + Mod[n - 1, 2]}], {n, 3, 80}, {i, 1, a2[[n]]}]; a[n_] := Sum[(-1)^a2[[k + 1]]*(a2[[k + 1]] - a2[[k]]), {k, 1, n}]; Table[a[n], {n, 1, 80}] (* Jean-François Alcover, Jun 18 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 08 2009
STATUS
approved