cp's OEIS Frontend

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.

Showing 1-3 of 3 results.

A232866 Positions of the nonnegative integers in the sequence (or tree) of complex numbers generated by these rules: 0 is in S, and if x is in S, then x + 1 and i*x are in S, where duplicates are deleted as they occur.

Original entry on oeis.org

1, 2, 3, 5, 9, 16, 27, 42, 61, 84, 111, 142, 177, 216, 259, 306, 357, 412, 471, 534, 601, 672, 747, 826, 909, 996, 1087, 1182, 1281, 1384, 1491, 1602, 1717, 1836, 1959, 2086, 2217, 2352, 2491, 2634, 2781, 2932, 3087, 3246, 3409, 3576, 3747, 3922, 4101, 4284
Offset: 1

Views

Author

Clark Kimberling, Dec 01 2013

Keywords

Comments

Let S be the sequence (or tree) of complex numbers defined by these rules: 0 is in S, and if x is in S, then x + 1, and i*x are in S. Deleting duplicates as they occur, the generations of S are given by g(1) = (0), g(2) = (1), g(3) = (2,i), g(4) = (3, 2i, 1+i, -1), ... Concatenating these gives 0, 1, 2, i, 3, 2*i, 1 + i, -1, 4, 3*i, 1 + 2*i, -2, 2 + i, -1 + i, -i, 5, ... It appears that if c and d are integers, than the positions of c*n+d*i, for n>=0, comprise a linear recurrence sequence with signature beginning with 3, -3, 1, following for zero or more 0's.

Examples

			Each x begets x + 1, and i*x, but if either these has already occurred it is deleted.  Thus, 0 begets (1); then 1 begets (2,i,); then 2 begets 3 and 2*i, and i begets 1 + i and -1, so that g(4) = (3, 2*i, 1 + i, -1), etc.
		

Crossrefs

Programs

  • Mathematica
    x = {0}; Do[x = DeleteDuplicates[Flatten[Transpose[{x, x + 1, I*x}]]], {40}]; x;
    t1 = Flatten[Table[Position[x, n], {n, 0, 30}]]   (* A232866 *)
    t2 = Flatten[Table[Position[x, -n], {n, 1, 30}]]  (* A232867 *)
    Union[t1, t2]  (* A232868 *)

Formula

a(n+4) = 2*n^2 + n + 6 for n >= 1 (conjectured).
G.f.: (-1 + x - x^3 - x^4 - x^5 - x^6)/(x -1)^3 (conjectured).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n >= 8 (conjectured).

A232867 Positions of the negative integers in the sequence (or tree) of complex numbers generated by these rules: 0 is in S, and if x is in S, then x + 1 and i*x are in S, where duplicates are deleted as they occur.

Original entry on oeis.org

8, 12, 19, 30, 45, 64, 87, 114, 145, 180, 219, 262, 309, 360, 415, 474, 537, 604, 675, 750, 829, 912, 999, 1090, 1185, 1284, 1387, 1494, 1605, 1720, 1839, 1962, 2089, 2220, 2355, 2494, 2637, 2784, 2935, 3090, 3249, 3412, 3579, 3750, 3925, 4104, 4287, 4474
Offset: 1

Views

Author

Clark Kimberling, Dec 01 2013

Keywords

Comments

Let S be the sequence (or tree) of complex numbers defined by these rules: 0 is in S, and if x is in S, then x + 1, and i*x are in S. Deleting duplicates as they occur, the generations of S are given by g(1) = (0), g(2) = (1), g(3) = (2,i), g(4) = (3, 2i, 1+i, -1), ... Concatenating these gives 0, 1, 2, i, 3, 2*i, 1 + i, -1, 4, 3*i, 1 + 2*i, -2, 2 + i, -1 + i, -i, 5, ... It appears that if c and d are integers, than the positions of c*n+d*i, for n>=0, comprise a linear recurrence sequence with signature beginning with 3, -3, 1, following for zero or more 0's.

Examples

			Each x begets x + 1, and i*x, but if either these has already occurred it is deleted.  Thus, 0 begets (1); then 1 begets (2,i,); then 2 begets 3 and 2*i, and i begets 1 + i and -1, so that g(4) = (3, 2*i, 1 + i, -1), etc.; a(1) = 8 because -1 occurs in the 8th position of S.
		

Crossrefs

Programs

  • Mathematica
    x = {0}; Do[x = DeleteDuplicates[Flatten[Transpose[{x, x + 1, I*x}]]], {40}]; x;
    t1 = Flatten[Table[Position[x, n], {n, 0, 30}]]    (* A232866 *)
    t2 = Flatten[Table[Position[x, -n], {n, 1, 30}]]  (* A232867 *)
    Union[t1, t2]  (* A232868 *)

Formula

a(n+1) = 2*n^2 + n + 9 for n >= 1 (conjectured).
G.f.: (-8 + 12 x - 7 x^2 - x^3)/(x -1)^3 (conjectured).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n >= 5 (conjectured).

A232890 Denominator of n-th term of sequence (or tree) S of all rational numbers generated by these rules: 0 is in S; if x is in S then x + 1 is in S, and if x + 1 is nonzero, then -1/(x + 1) is in S; duplicates are deleted as they occur.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 3, 2, 1, 1, 4, 3, 2, 2, 3, 1, 5, 4, 3, 3, 5, 2, 5, 3, 1, 1, 6, 5, 4, 4, 7, 3, 8, 5, 2, 2, 7, 5, 3, 3, 4, 1, 7, 6, 5, 5, 9, 4, 11, 7, 3, 3, 11, 8, 5, 5, 7, 2, 9, 7, 5, 5, 8, 3, 7, 4, 1, 1, 8, 7, 6, 6, 11, 5, 14, 9, 4, 4, 15, 11, 7, 7, 10, 3
Offset: 1

Views

Author

Clark Kimberling, Dec 02 2013

Keywords

Comments

Let S be the sequence (or tree) of numbers generated by these rules: 0 is in S; if x is in S then x + 1 is in S, and if x + 1 is nonzero, then -1/(x + 1) is in S. Deleting duplicates as they occur, the generations of S are given by g(1) = (0), g(2) = (1,-1), g(3) = (2,-1/2), g(4) = (3, -1/3, 1/2, -2), ... Concatenating gives 0, 1, -1, 2, -1/2, 3, -1/3, 1/2, -2, 4, -1/4, ...
Conjectures: If b/c is a positive rational number, the position of n + b/c for n >= 0 forms a linear recurrence sequence with signature (1,1), and the position of -n - b/c forms a linear recurrence sequence with signature (4, -4, 1). For n>=1, the numbers -(1 + 1/n) are terminal nodes in the tree, and their positions are linearly recurrent with signature (2,0,-1). For n >=3, the n-th generation g(n) consists of F(n-1) positive numbers and F(n-1) negative numbers, where F = A000045, the Fibonacci numbers.

Examples

			To generate S, the number 0 begets (1,-1), whence 1 begets 2 and -1/2, whereas -1 begets 0 and -1/2, both of which are (deleted )duplicates, so that g(3) = (2, -1/2).  The resulting concatenation of all the generations g(n) begins with 0, 1, -1, 2, -1/2, 3, -1/3, 1/2, -2, 4, -1/4, so that A232890 begins with 1,1,1,1,2,1,3,2,1,1,4.
		

Crossrefs

Programs

  • Mathematica
    Off[Power::infy]; x = {0}; Do[x = DeleteDuplicates[Flatten[Transpose[{x, x + 1, -1/(x + 1)} /. ComplexInfinity -> 0]]], {8}]; x
    On[Power::infy]; Denominator[x]  (* Peter J. C. Moses, Nov 29 2013 *)
Showing 1-3 of 3 results.