A294860 Solution of the equation a(n) = a(n-2) + b(n-2), where a( ) and b( ) are increasing sequences of positive integers such that every positive integer is in one of them and only one term is in both.
1, 2, 4, 6, 9, 13, 17, 23, 28, 35, 42, 50, 58, 68, 77, 88, 98, 110, 122, 135, 148, 162, 177, 192, 208, 224, 241, 258, 277, 295, 315, 334, 355, 375, 398, 419, 443, 465, 490, 513, 539, 564, 591, 617, 645, 672, 701, 729, 760, 789, 821, 851, 884, 915, 949, 981
Offset: 0
Examples
a(0) = 1, a(1) = 2, b(0) = 3, so that a(2) = 4 (b(n)) = (3,4,5,7,8,10,11,12,14,15,...)
Links
- Clark Kimberling, Complementary equations, J. Int. Seq. 19 (2007), 1-13.
Programs
-
Mathematica
mex := First[Complement[Range[1, Max[#1] + 1], #1]] &; a[0] = 1; a[1] = 2; b[0] = 3; a[n_] := a[n] = a[n - 2] + b[n - 2]; b[n_] := b[n] = mex[Flatten[Table[Join[{a[n]}, {a[i], b[i]}], {i, 0, n - 1}]]]; Table[a[n], {n, 0, 18}] (* A294860 *) Table[b[n], {n, 0, 10}]
Extensions
Edited by Clark Kimberling, Dec 02 2017
Comments