login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A107320
a(1)=1 then a(n)=f(n)-a(f(n))+a(f(n)-a(f(n))) where f(n)=floor(n/2).
0
1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 6, 6, 7, 7, 9, 9, 9, 9, 10, 10, 11, 11, 12, 12, 11, 11, 12, 12, 12, 12, 14, 14, 12, 12, 14, 14, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 20, 20, 20, 20, 21, 21, 24, 24, 27, 27, 27, 27, 28, 28, 29, 29, 30, 30, 29, 29, 30, 30, 35, 35, 36, 36, 35
OFFSET
1,4
FORMULA
a(n)=(sqrt(2)-1)*n+o(n) (?)
PROG
(PARI) a(n)=if(n<2, 1, floor(n/2)-a(floor(n/2))+a(floor(n/2)-a(floor(n/2))))
CROSSREFS
Sequence in context: A156080 A334233 A271058 * A095186 A265340 A373503
KEYWORD
nonn
AUTHOR
Benoit Cloitre, May 21 2005
STATUS
approved