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!)
A298471 a(n) = a(0)*b(n) + a(1)*b(n-1), where a(0) = 2, a(1) = 4, b(0) = 1; b(1) = 3 ; b(2) = 5. 1
2, 4, 22, 32, 38, 44, 50, 56, 62, 68, 74, 80, 86, 92, 98, 104, 110, 116, 122, 130, 140, 146, 152, 158, 164, 170, 176, 182, 190, 200, 206, 212, 218, 226, 236, 242, 248, 254, 262, 272, 278, 284, 290, 298, 308, 314, 320, 326, 334, 344, 350 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
The increasing complementary sequences a() and b() are uniquely determined by the titular equation and initial values. See A297830 for a guide to related sequences.
LINKS
EXAMPLE
a(2) = 2*5 + 4*3 = 22.
MATHEMATICA
mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]);
aCoeffs = {2, 4}; bCoeffs = {1, 3, 5};
Table[a[n - 1] = #[[n]], {n, Length[#]}] &[aCoeffs];
Table[b[n - 1] = #[[n]], {n, Length[#]}] &[bCoeffs];
a[n_] := Hold[Sum[a[z] b[n - z], {z, 0, Length[aCoeffs] - 1}]]
Table[{a[z] = ReleaseHold[a[z]], b[z + 1] =
mex[Join[Table[a[n], {n, 0, z}], Table[b[n], {n, 0, z}]], 1]}, {z,
Length[aCoeffs], 1000}];
Table[a[n], {n, 0, 50}] (* A298471 *)
Table[b[n], {n, 0, 50}] (* complement *)
(* Peter J. C. Moses, Jan 19 2018 *)
CROSSREFS
Sequence in context: A284920 A254221 A366060 * A348785 A067654 A271944
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Feb 11 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 July 15 19:27 EDT 2024. Contains 374334 sequences. (Running on oeis4.)