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-2 of 2 results.

A305849 Positions of 2 in the difference sequence of A305847.

Original entry on oeis.org

3, 6, 9, 11, 14, 17, 19, 22, 25, 27, 30, 32, 35, 38, 40, 43, 46, 48, 51, 53, 56, 59, 61, 64, 67, 69, 72, 74, 77, 80, 82, 85, 87, 90, 93, 95, 98, 101, 103, 106, 108, 111, 114, 116, 119, 122, 124, 127, 129, 132, 135, 137, 140, 142, 145, 148, 150, 153, 156, 158
Offset: 1

Views

Author

Clark Kimberling, Jun 11 2018

Keywords

Comments

This is also the sequence of positions of 3 in the difference sequence of A305848.

Examples

			A305837 = (1,2,3,5,6,7,9,10,11,13,14,16, ...);
differences: (1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, ...);
positions of 2: (3,6,9,11,14, ...).
		

Crossrefs

Programs

  • Mathematica
    mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
    u = 5; v = 5; z = 220;
    c = {v}; a = {1}; b = {Last[c] - Last[a]};
    Do[AppendTo[a, mex[Flatten[{a, b}], Last[a]]];
      AppendTo[c, u Length[c] + v];
      AppendTo[b, Last[c] - Last[a]], {z}];
    c = Flatten[Position[Differences[a], 2]];
    a  (* A305847 *)
    b  (* A305848 *)
    c  (* A305849 *)
    (* Peter J. C. Moses, May 30 2018 *)

A305848 Solution b() of the complementary equation a(n) + b(n) = 5n, where a(1) = 1. See Comments.

Original entry on oeis.org

4, 8, 12, 15, 19, 23, 26, 30, 34, 37, 41, 44, 48, 52, 55, 59, 63, 66, 70, 73, 77, 81, 84, 88, 92, 95, 99, 102, 106, 110, 113, 117, 120, 124, 128, 131, 135, 139, 142, 146, 149, 153, 157, 160, 164, 168, 171, 175, 178, 182, 186, 189, 193, 196, 200, 204, 207
Offset: 1

Views

Author

Clark Kimberling, Jun 11 2018

Keywords

Comments

The increasing complementary sequences a() and b() are uniquely determined by the titular equation and initial value. Let x = (5 - sqrt(5))/2 and y = (5 + sqrt(5))/2. Let r = y - 2 = golden ratio (A001622). It appears that
2 - r <= n*x - a(n) < r and 2 - r < b(n) - n*y < r for all n >= 1.

Examples

			a(1) = 1, so b(1) = 5 - a(1) = 4. In order for a() and b() to be increasing and complementary, we have a(2) = 2, a(3) = 3, a(4) = 5, etc.
		

Crossrefs

Programs

  • Mathematica
    mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
    u = 5; v = 5; z = 220;
    c = {v}; a = {1}; b = {Last[c] - Last[a]};
    Do[AppendTo[a, mex[Flatten[{a, b}], Last[a]]];
      AppendTo[c, u Length[c] + v];
      AppendTo[b, Last[c] - Last[a]], {z}];
    c = Flatten[Position[Differences[a], 2]];
    a  (* A305847 *)
    b  (* A305848 *)
    c  (* A305849 *)
    (* Peter J. C. Moses, May 30 2018 *)
Showing 1-2 of 2 results.