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 A088431 #47 Mar 11 2025 15:37:17 %S A088431 2,1,2,2,3,2,1,2,3,1,2,3,2,2,1,2,3,1,2,2,3,2,1,3,2,1,2,3,2,2,1,2,3,1, %T A088431 2,2,3,2,1,2,3,1,2,3,2,2,1,3,2,1,2,2,3,2,1,3,2,1,2,3,2,2,1,2,3,1,2,2, %U A088431 3,2,1,2,3,1,2,3,2,2,1,2,3,1,2,2,3,2,1,3,2,1,2,3,2,2,1,3,2,1,2,2,3,2,1,2,3 %N A088431 Half of the (n+1)-st component of the continued fraction expansion of Sum_{k>=0} 1/2^(2^k). %C A088431 To construct the sequence use the rule: a(1)=2, then a(a(1) + a(2) + ... + a(n) + 1) = 2 and fill in any undefined places with the sequence 1,3,1,3,1,3,1,3,1,3,1,3,.... %C A088431 This sequence appears to be the sequence of run lengths of the regular paperfolding sequence A014577, i.e., the latter starts as follows: 2 zeros, 1 one, 2 zeros, 2 ones, etc. - _Dimitri Hendriks_, May 06 2010 %C A088431 Hendriks' conjecture is proved in Bunder, Bates, and Arnold (2024). Also see Shallit (2024). - _Jeffrey Shallit_, Mar 10 2025 %H A088431 Antti Karttunen, <a href="/A088431/b088431.txt">Table of n, a(n) for n = 1..8192</a> %H A088431 Martin Bunder, Bruce Bates, and Stephen Arnold, <a href="https://doi.org/10.1017/S0004972724000169">The summed paperfolding sequence</a>, Bull. Austral. Math. Soc. 110 (2024), 189-198. %H A088431 Kevin Ryde, <a href="http://user42.tuxfamily.org/dragon/index.html">Iterations of the Dragon Curve</a>, see index "TurnRun", with a(n) = TurnRun(n-1). %H A088431 Jeffrey Shallit, <a href="https://arxiv.org/abs/2412.17930">Runs in Paperfolding Sequences</a>, arXiv:2412.17930 [math.CO], 2024. See p. 10. %F A088431 a(n) = (1/2)*A007400(n+1); a(a(1) + a(2) + ... + a(n) + 1) = 2. %e A088431 Example to illustrate the comment: a(a(1)+1)=a(3)=2 and a(2) is undefined. The rule requires a(2)=1. Next, a(a(1)+a(2)+1)=a(4)=2, a(a(1)+a(2)+a(3)+1)=a(6)=2 and a(5) is undefined. The rule now requires a(5)=3. %t A088431 a[n_] := a[n] = Which[n < 3, {0, 1, 4}[[n + 1]], Mod[n, 8] == 1, a[(n + 1)/2], Mod[n, 8] == 2, a[(n + 2)/2], True, {2, 0, 0, 2, 4, 4, 6, 4, 2, 0, 0, 2, 4, 6, 4, 4}[[Mod[n, 16] + 1]]]; Array[a[# + 1]/2 &, 98] (* after _Jean-François Alcover_ at A007400 *) %o A088431 (Scheme) (define (A088431 n) (* 1/2 (A007400 (+ 1 n)))) ;; Code for A007400 given under that entry. - _Antti Karttunen_, Aug 12 2017 %Y A088431 Cf. A007400, A014577, A088435, A092910. %K A088431 nonn %O A088431 1,1 %A A088431 _Benoit Cloitre_, Nov 08 2003