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 A256249 #60 Nov 03 2022 08:43:06 %S A256249 0,1,2,5,6,9,14,21,22,25,30,37,46,57,70,85,86,89,94,101,110,121,134, %T A256249 149,166,185,206,229,254,281,310,341,342,345,350,357,366,377,390,405, %U A256249 422,441,462,485,510,537,566,597,630,665,702,741,782,825,870,917,966,1017,1070,1125,1182,1241,1302,1365,1366,1369,1374 %N A256249 Partial sums of A006257 (Josephus problem). %C A256249 Also total number of ON states after n generations in one of the four wedges of the one-step rook version (or in one of the four quadrants of the one-step bishop version) of the cellular automaton of A256250. %C A256249 A006257 gives the number of cells turned ON at n-th stage. %C A256249 First differs from A255747 at a(11). %C A256249 First differs from A169779 at a(10). %C A256249 It appears that the odd terms (a bisection) give A256250. %H A256249 David A. Corneth, <a href="/A256249/b256249.txt">Table of n, a(n) for n = 0..9999</a> %H A256249 Hsien-Kuei Hwang, Svante Janson, and Tsung-Hsi Tsai, <a href="https://arxiv.org/abs/2210.10968">Identities and periodic oscillations of divide-and-conquer recurrences splitting at half</a>, arXiv:2210.10968 [cs.DS], 2022, pp. 37, 41. %H A256249 Yuri Nikolayevsky and Ioannis Tsartsaflis, <a href="http://arxiv.org/abs/1512.07676">Cohomology of N-graded Lie algebras of maximal class over Z_2</a>, arXiv:1512.87676 [math.RA], (2016), page 6. %H A256249 N. J. A. Sloane, <a href="/wiki/Catalog_of_Toothpick_and_CA_Sequences_in_OEIS">Catalog of Toothpick and Cellular Automata Sequences in the OEIS</a> %H A256249 <a href="/index/Ce#cell">Index entries for sequences related to cellular automata</a> %H A256249 <a href="/index/J#Josephus">Index entries for sequences related to the Josephus Problem</a> %F A256249 a(n) = (A256250(n+1) - 1)/4. %e A256249 Written as an irregular triangle T(n,k), k >= 1, in which the row lengths are the terms of A011782 the sequence begins: %e A256249 0; %e A256249 1; %e A256249 2, 5; %e A256249 6, 9, 14, 21; %e A256249 22, 25, 30, 37, 46, 57, 70, 85; %e A256249 86, 89, 94,101,110,121,134,149,166,185,206,229,254,281,310,341; %e A256249 ... %e A256249 Right border, a(2^m-1), gives A002450(m) for m >= 0. %e A256249 a(2^m-2) = A203241(m) for m >= 2. %e A256249 It appears that this triangle at least shares with the triangles from the following sequences; A151920, A255737, A255747, the positive elements of the columns k, if k is a power of 2. %e A256249 From _Omar E. Pol_, Jan 03 2016: (Start) %e A256249 Illustration of initial terms in the fourth quadrant of the square grid: %e A256249 --------------------------------------------------------------------------- %e A256249 n a(n) Compact diagram %e A256249 --------------------------------------------------------------------------- %e A256249 0 0 _ %e A256249 1 1 |_|_ _ %e A256249 2 2 |_| | %e A256249 3 5 |_ _|_ _ _ _ %e A256249 4 6 |_| | | | %e A256249 5 9 |_ _| | | %e A256249 6 14 |_ _ _| | %e A256249 7 21 |_ _ _ _|_ _ _ _ _ _ _ _ %e A256249 8 22 |_| | | | | | | | %e A256249 9 25 |_ _| | | | | | | %e A256249 10 30 |_ _ _| | | | | | %e A256249 11 37 |_ _ _ _| | | | | %e A256249 12 46 |_ _ _ _ _| | | | %e A256249 13 57 |_ _ _ _ _ _| | | %e A256249 14 70 |_ _ _ _ _ _ _| | %e A256249 15 85 |_ _ _ _ _ _ _ _| %e A256249 . %e A256249 a(n) is also the total number of cells in the first n regions of the diagram. A006257(n) gives the number of cells in the n-th region of the diagram. %e A256249 (End) %t A256249 (* Based on _Birkas Gyorgy_'s code in A006257 *) %t A256249 Accumulate[Prepend[Flatten[Table[Range[1,2^n-1,2],{n,0,7}]],0]] (* _Ivan N. Ianakiev_, Mar 30 2015 *) %o A256249 (PARI) a(n)=n++;b=#binary(n>>1);(4^b-1)/3+(n-2^b)^2 \\ _David A. Corneth_, Mar 21 2015 %Y A256249 Cf. A002450, A006257, A011782, A139250, A151920, A169779, A255737, A255747, A256250, A256251, A266540. %K A256249 nonn,look %O A256249 0,3 %A A256249 _Omar E. Pol_, Mar 20 2015