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.

A326664 Column 3 of the array at A326661 see Comments.

Original entry on oeis.org

7, 16, 25, 35, 43, 52, 61, 71, 79, 88, 97, 107, 115, 124, 133, 142, 151, 160, 169, 179, 187, 196, 205, 215, 223, 232, 241, 251, 259, 268, 277, 286, 295, 304, 313, 323, 331, 340, 349, 359, 367, 376, 385, 395, 403, 412, 421, 430, 439, 448, 457, 467, 475, 484
Offset: 1

Views

Author

Clark Kimberling, Jul 16 2019

Keywords

Comments

This is the sequence (c(n)) defined by the complementary equation c(n) = a(n) + b(3n), with initial value a(1) = 1. See A326661. Conjecture: 9n-c(n) is in {1,2} for all n.

Crossrefs

Cf. A326661.

Programs

  • Mathematica
    mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
    a = b = c = {}; h = 1; k = 3;
    Do[Do[AppendTo[a,
      mex[Flatten[{a, b, c}], Max[Last[a /. {} -> {0}], 1]]];
      AppendTo[b, mex[Flatten[{a, b, c}], Max[Last[b /. {} -> {0}], 1]]], {k}];
      AppendTo[c, a[[h Length[a]/k]] + Last[b]], {150}]; c
    (* Peter J. C. Moses, Jul 04 2019 *)

A309157 Rectangular array in 3 columns that solve the complementary equation c(n) = a(n) + b(2n), where a(1) = 1; see Comments.

Original entry on oeis.org

1, 2, 5, 3, 4, 12, 6, 7, 20, 8, 9, 26, 10, 11, 33, 13, 14, 41, 15, 16, 47, 17, 18, 54, 19, 21, 61, 22, 23, 68, 24, 25, 75, 27, 28, 83, 29, 30, 89, 31, 32, 96, 34, 35, 104, 36, 37, 110, 38, 39, 117, 40, 42, 124, 43, 44, 131, 45, 46, 138, 48, 49, 146, 50, 51
Offset: 1

Views

Author

Clark Kimberling, Jul 15 2019

Keywords

Comments

Let A = (a(n)), B = (b(n)), and C = (c(n)). A unique solution (A,B,C) exists for these conditions: (1) A,B,C must partition the positive integers, and (2) A and B are defined by mex (minimal excludant, as in A067017); that is, a(n) is the least "new" positive integer, and likewise for b(n).

Examples

			c(1) = a(1) + b(2) > = 1 + 3, so that
a(2) = mex{1,2} = 3;
b(2) = mex{1,2,3} = 4;
c(1) = 5.
Then c(2) = a(2) + b(4) >= 3 + 8, so that
a(3) = 6, b(3) = 7;
a(4) = 8, b(4) = 9;
c(2) = a(2) + b(4) = 3 + 9 = 12.
   n    a(n) b(n) c(n)
  --------------------
   1      1    2    5
   2      3    4   12
   3      6    7   20
   4      8    9   26
   5     10   11   33
   6     13   14   41
   7     15   16   47
   8     17   18   54
   9     19   21   61
  10     22   23   68
		

Crossrefs

Cf. A326663 (3rd column),
A101544 solves c(n) = a(n) + b(n),
A326661 solves c(n) = a(n) + b(3n),
A326662 solves c(n) = a(2n) + b(2n).

Programs

  • Mathematica
    mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
    a = b = c = {}; h = 1; k = 2;
    Do[Do[AppendTo[a,
      mex[Flatten[{a, b, c}], Max[Last[a /. {} -> {0}], 1]]];
      AppendTo[b, mex[Flatten[{a, b, c}], Max[Last[b /. {} -> {0}], 1]]], {k}];
      AppendTo[c, a[[h Length[a]/k]] + Last[b]], {150}];
    {a, b, c} // ColumnForm
    a = Take[a, Length[c]]; b = Take[b, Length[c]];
    Flatten[Transpose[{a, b, c}]] (* Peter J. C. Moses, Jul 04 2019 *)

A326662 Rectangular array in 3 columns that solve the complementary equation c(n) = a(2n) + b(2n), where a(1) = 1; see Comments.

Original entry on oeis.org

1, 2, 7, 3, 4, 17, 5, 6, 25, 8, 9, 34, 10, 11, 43, 12, 13, 53, 14, 15, 61, 16, 18, 71, 19, 20, 79, 21, 22, 89, 23, 24, 97, 26, 27, 106, 28, 29, 115, 30, 31, 125, 32, 33, 133, 35, 36, 142, 37, 38, 151, 39, 40, 161, 41, 42, 169, 44, 45, 178, 46, 47, 187, 48
Offset: 1

Views

Author

Clark Kimberling, Jul 16 2019

Keywords

Comments

Let A = (a(n)), B = (b(n)), and C = (c(n)). A unique solution (A,B,C) exists for the following conditions: (1) A,B,C must partition the positive integers, and (2) A and B are defined by mex (minimal excludant, as in A067017); that is, a(n) is the least "new" positive integer, and likewise for b(n).

Examples

			c(1) = a(2) + b(2) >= 3 + 4, so that b(1) = mex{1} = 2; a(2) = mex{1,2} = 3; b(2) = mex{1,2,3} = 4; a(3)= mex{1,2,3,4} = 5, a(4) = mex{1,2,3,4,5} = 6, c(1) = 7.
n           a(n)      b(n)     c(n)
-----------------------------------
1             1        2        7
2             3        4       17
3             5        6       25
4             8        9       34
5            10       11       43
6            12       13       53
7            14       15       61
8            16       18       71
9            19       20       79
10           21       22       89
		

Crossrefs

Programs

  • Mathematica
    mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
    a = b = c = {}; h = 2; k = 2;
    Do[Do[AppendTo[a,
       mex[Flatten[{a, b, c}], Max[Last[a /. {} -> {0}], 1]]];
      AppendTo[b, mex[Flatten[{a, b, c}], Max[Last[b /. {} -> {0}], 1]]], {k}];
      AppendTo[c, a[[h Length[a]/k]] + Last[b]], {150}];
    {a, b, c} // ColumnForm
    a = Take[a, Length[c]]; b = Take[b, Length[c]];
    Flatten[Transpose[{a, b, c}]](* Peter J. C. Moses, Jul 04 2019 *)

Extensions

Replaced a(0)->a(1) in NAME. - R. J. Mathar, Jun 19 2021
Showing 1-3 of 3 results.