OFFSET
1,3
COMMENTS
Unlike the Hofstadter Q-sequence, this one seems to be an increasing sequence.
Sequence increases slowly and each term repeats at least three times except at the start. - Altug Alkan, Jun 07 2018
LINKS
Muniru A Asiru, Table of n, a(n) for n = 1..10000
Altug Alkan, Proof of Slowness
FORMULA
Conjectures: a(n)/n -> C=1/4; a(n+1)-a(n)=1 or 0, first differences are 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, ....
a(n+1)-a(n)=1 or 0, see Links section for proof. - Altug Alkan, Jun 07 2018
MAPLE
a:=proc(n) option remember: if n<3 then 1 else procname(n+1-2*procname(n-1))+procname(n-2*procname(n-2)) fi; end; seq(a(n), n=1..80); # Muniru A Asiru, Jun 06 2018
MATHEMATICA
a[1] = a[2] = 1; a[n_] := a[n] = a[n + 1 - 2 a[n - 1]] + a[n - 2 a[n - 2]]; Array[a, 80] (* Robert G. Wilson v, Jun 13 2018 *)
PROG
(GAP) a:=[1, 1];; for n in [3..80] do a[n]:=a[n+1-2*a[n-1]]+a[n-2*a[n-2]]; od; a; # Muniru A Asiru, Jun 06 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Apr 10 2003
STATUS
approved