OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
Conjecture: a(n) is asymptotic to 4n/7; (a(n)-4n/7)/log(n) is bounded.
From Robert Israel, Apr 13 2017: (Start)
Conjecture is true: in fact if D(n) = a(n) - 4*n/7, D(n) = (3*n-4*m)/7-D(m) where m = floor(3*n/4), so |D(n)| <= 4/7 + |D(m)|. Thus D(n) <= 3/7 + 4/7 log_(4/3)(n).
G.f. g(x) satisfies g(x) = x/(1-x)^2-((1+x^(1/3)+x^(2/3)+x)*g(x^(4/3))+(1+w*x^(1/3)+w^2*x^(2/3)+x)*g(w*x^(4/3))+(1+w^2*x^(1/3)+w*x^(2/3)+x)*g(w^2*x^(4/3)))/3, where w is a cube root of unity. (End)
MAPLE
A[1]:= 1: for n from 2 to 1000 do A[n]:= n - A[floor(3*n/4)] od:
seq(A[i], i=1..1000); # Robert Israel, Apr 13 2017
PROG
(PARI) a(n) = if(n<2, n, n - a(3*n\4)); \\ Indranil Ghosh, Apr 14 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 26 2002
STATUS
approved