A305848 Solution b() of the complementary equation a(n) + b(n) = 5n, where a(1) = 1. See Comments.
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
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.
Links
- Clark Kimberling, Table of n, a(n) for n = 1..10000
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 *)
Comments