OFFSET
1,3
COMMENTS
The sequence of first differences consists of zeros and ones, with no two consecutive zeros and no more than three consecutive ones.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = n log 2 + O(1). Conjecture: a(n) = floor((n + 1/2) log 2). - Charles R Greathouse IV, Apr 03 2012
MAPLE
f:= n -> floor(ln(2)/ln(1+1/n)):
map(f, [$1..100]); # Robert Israel, Mar 09 2026
MATHEMATICA
Table[Floor[Log[(1+1/n), 2]], {n, 200}]
PROG
(PARI) a(n)=log(2)\log(1+1/n) \\ Charles R Greathouse IV, Apr 03 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 01 2010
EXTENSIONS
Name corrected (to match terms) by Jon E. Schoenfield, Apr 23 2014
STATUS
approved
