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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A335155 Start with 1; if n is in the sequence, so are n+5 and 3*n. 3
 1, 3, 6, 8, 9, 11, 13, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 29, 31, 32, 33, 34, 36, 37, 38, 39, 41, 42, 43, 44, 46, 47, 48, 49, 51, 52, 53, 54, 56, 57, 58, 59, 61, 62, 63, 64, 66, 67, 68, 69, 71, 72, 73, 74, 76, 77, 78, 79, 81, 82, 83, 84, 86, 87, 88, 89, 91, 92, 93, 94, 96, 97, 98, 99, 101, 102, 103, 104, 106 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS This is the lexicographically earliest sequence of positive numbers with the property that if n is in the sequence, so are n+5 and 3*n. Suggested by A335365 (which is the complement). LINKS Colin Barker, Table of n, a(n) for n = 1..1000 Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1). FORMULA From Colin Barker, Jun 07 2020: (Start) G.f.: x*(1 + 2*x + 3*x^2 + 2*x^3 - x^6 - x^7 + x^8 - x^10 + x^11 - x^13 + x^14 - x^15 - x^16) / ((1 - x)^2*(1 + x)*(1 + x^2)). a(n) = a(n-1) + a(n-4) - a(n-5) for n>17. (End) PROG (PARI) Vec(x*(1 + 2*x + 3*x^2 + 2*x^3 - x^6 - x^7 + x^8 - x^10 + x^11 - x^13 + x^14 - x^15 - x^16) / ((1 - x)^2*(1 + x)*(1 + x^2)) + O(x^60)) \\ Colin Barker, Jun 07 2020 CROSSREFS Cf. A335365. See also A005658, A005660, A005662, etc. Sequence in context: A005870 A194461 A186385 * A231005 A231010 A285250 Adjacent sequences:  A335152 A335153 A335154 * A335156 A335157 A335158 KEYWORD nonn,easy AUTHOR N. J. A. Sloane, Jun 05 2020 STATUS approved

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

Last modified January 27 10:39 EST 2022. Contains 350607 sequences. (Running on oeis4.)