login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A298872 Solution (b(n)) of the system of 3 complementary equations in Comments. 6
2, 6, 11, 18, 26, 35, 45, 57, 70, 84, 99, 116, 135, 155, 176, 198, 221, 245, 270, 298, 327, 357, 388, 420, 453, 487, 523, 560, 598, 637, 677, 718, 760, 804, 850, 897, 945, 994, 1044, 1095, 1147, 1200, 1254, 1309, 1365, 1423, 1482, 1543, 1605, 1668, 1732 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Define sequences a(n), b(n), c(n) recursively, starting with a(0) = 1, b(0) = 2:
a(n) = least new;
b(n) = least new k >= a(n) + b(n-1);
c(n) = a(n) + 2 b(n);
where "least new k" means the least positive integer not yet placed. The sequences a,b,c partition the positive integers.
LINKS
EXAMPLE
n: 0 1 2 3 4 5 6 7 8 9
a: 1 4 5 7 8 9 10 12 13 14
b: 2 6 11 18 26 35 45 57 70 84
c: 3 16 27 43 60 30 79 100 126 153
MATHEMATICA
z = 400;
mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
a = {1}; b = {2}; c = {3};
Do[{AppendTo[a, mex[Flatten[{a, b, c}], 1]],
AppendTo[b, mex[Flatten[{a, b, c}], Last[a] + Last[b]]],
AppendTo[c, Last[a] + 2 Last[b]]}, {z}];
Take[a, 100] (* A298871 *)
Take[b, 100] (* A298872 *)
Take[c, 100] (* A298873 *)
CROSSREFS
Sequence in context: A104813 A239698 A039745 * A298875 A329598 A248469
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 18 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 5 22:20 EDT 2024. Contains 372290 sequences. (Running on oeis4.)