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 A256794 #8 Sep 26 2016 21:44:07 %S A256794 3,2,1,2,2,2,1,2,1,3,2,1,2,1,2,3,2,1,2,1,2,2,3,2,1,2,3,2,2,3,2,1,2,2, %T A256794 3,2,2,3,2,1,2,1,3,3,2,2,3,2,1,2,2,1,3,3,2,2,3,2,1,2,2,2,1,3,3,2,2,3, %U A256794 2,1,2,1,3,2,1,3,3,2,2,3,2,1,2,3,3,2 %N A256794 First differences of A256792. %e A256794 R(0) = 0; %e A256794 R(1) = 1; %e A256794 R(2) = 4 - 2; %e A256794 R(3) = 4 - 1; %e A256794 R(4) = 4; %e A256794 R(5) = 9 - 4. %t A256794 b[n_] := n^2; bb = Table[b[n], {n, 0, 1000}]; (* Squares as base *) %t A256794 s[n_] := Table[b[n], {k, 1, 2 n - 1}]; %t A256794 h[1] = {1}; h[n_] := Join[h[n - 1], s[n]]; %t A256794 g = h[100]; r[0] = {0}; r[1] = {1}; r[2] = {4, -2}; %t A256794 r[n_] := If[MemberQ[bb, n], {n}, Join[{g[[n]]}, -r[g[[n]] - n]]]; %t A256794 Table[r[n], {n, 0, 120}]; (* A256789 *) %t A256794 u = Flatten[Table[Last[r[n]], {n, 1, 1000}]]; (* A256791 *) %t A256794 u1 = Select[Range[800], u[[#]] > 0 &]; (* A256792 *) %t A256794 u2 = Select[Range[800], u[[#]] < 0 &]; (* A256793 *) %t A256794 Differences[u1] (* A256794 *) %t A256794 Differences[u2] (* A256795 *) %Y A256794 Cf. A256792, A256795. %K A256794 nonn,easy %O A256794 1,1 %A A256794 _Clark Kimberling_, Apr 13 2015