This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A050068 #17 Nov 15 2019 23:23:00 %S A050068 1,3,4,5,9,10,14,23,37,38,42,51,65,102,144,209,353,354,358,367,381, %T A050068 418,460,525,669,1022,1380,1761,2221,2890,4270,6491,10761,10762,10766, %U A050068 10775,10789,10826,10868,10933,11077,11430,11788 %N A050068 a(n) = a(n-1) + a(m) for n >= 3, where m = 2*n - 3 - 2^(p+1) and p is the unique integer such that 2^p < n - 1 <= 2^(p+1), starting with a(1) = 1 and a(2) = 3. %C A050068 The author of the Mathematica program below uses the initial conditions a(1) = 1, a(2) = 3, and a(3) = 4. This is not necessary. We get the same sequence by using the initial conditions a(1) = 1 and a(2) = 3. - _Petros Hadjicostas_, Nov 15 2019 %H A050068 Ivan Neretin, <a href="/A050068/b050068.txt">Table of n, a(n) for n = 1..8193</a> %p A050068 a := proc(n) option remember; `if`(n < 3, [1,3][n], %p A050068 a(n - 1) + a(-2^ceil(log[2](n - 1)) + 2*n - 3)) %p A050068 end proc: %p A050068 seq(a(n), n = 1..40); # _Petros Hadjicostas_, Nov 15 2019 %t A050068 Fold[Append[#1, #1[[-1]] + #1[[#2]]] &, {1, 3, 4}, Flatten@Table[2 k - 1, {n, 5}, {k, 2^n}]] (* _Ivan Neretin_, Sep 07 2015 *) %Y A050068 Same as A050036 and A050052 except for the second term. %Y A050068 Cf. similar sequences with different initial conditions: A050024 (1,1,1), A050028 (1,1,2), A050032 (1,1,3), A050036 (1,1,4), A050040 (1,2,1), A050044 (1,2,2), A050048 (1,2,3), A050052 (1,2,4), A050056 (1,3,1), A050060 (1,3,2), A050064 (1,3,3). %K A050068 nonn %O A050068 1,2 %A A050068 _Clark Kimberling_ %E A050068 Name edited by _Petros Hadjicostas_, Nov 15 2019