login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A304498
Solution (b(n)) of the system of complementary equations defined in Comments.
3
2, 5, 7, 9, 12, 14, 16, 18, 21, 23, 26, 28, 30, 33, 35, 37, 39, 42, 44, 47, 49, 51, 54, 56, 58, 60, 63, 65, 68, 70, 72, 75, 77, 79, 81, 84, 86, 89, 91, 93, 96, 98, 100, 102, 105, 107, 110, 112, 114, 117, 119, 121, 123, 126, 128, 131, 133, 135, 138, 140, 142
OFFSET
0,1
COMMENTS
Define sequences a(n), b(n), c(n) recursively, starting with a(0) = 1:
a(n) = least new,
b(n) = least new,
c(n) = 2*a(n) + b(n),
where "least new k" means the least positive integer not yet placed. The three sequences partition the positive integers. Empirically, for all n >= 0,
1 <= 3*a(n) - 7*n <= 5,
5 <= 3*b(n) - 7*n <= 8,
3 <= c(n) - 7*n <= 6.
EXAMPLE
a(0) = 1, b(0) = 2; c(0) = 2*1 + 2 = 4, so that a(1) = 3, so that b(1) = 4, so that c(1) = 11.
MATHEMATICA
z = 300;
mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
a = {}; b = {}; c = {};
Do[AppendTo[a,
mex[Flatten[{a, b, c}], If[Length[a] == 0, 1, Last[a]]]];
AppendTo[b, mex[Flatten[{a, b, c}], Last[a]]];
AppendTo[c, 2 Last[a] + Last[b]], {z}];
Take[a, 100] (* A304497 *)
Take[b, 100] (* A304498 *)
Take[c, 100] (* A304499 *)
Grid[{Join[{"n"}, Range[0, 20]], Join[{"a(n)"}, Take[a, 21]],
Join[{"b(n)"}, Take[b, 21]], Join[{"c(n)"}, Take[c, 21]]},
Alignment -> ".", Dividers -> {{2 -> Red, -1 -> Blue}, {2 -> Red, -1 -> Blue}}]
(* Peter J. C. Moses, Apr 26 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 16 2018
STATUS
approved