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!)
A325539 a(n) is the least number not 2*a(m)+1 or 3*a(m)+2 for any m < n. 5
1, 2, 4, 6, 7, 10, 11, 12, 16, 17, 18, 19, 22, 24, 26, 27, 28, 29, 30, 31, 34, 36, 40, 41, 42, 43, 44, 46, 47, 48, 51, 52, 54, 58, 60, 62, 64, 65, 66, 67, 70, 71, 72, 75, 76, 77, 78, 79, 82, 84, 88, 90, 91, 94, 96, 98, 99, 100, 101, 102, 106, 107, 108, 111 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
The sequence necessarily starts with 1. The next 2 terms are determined as follows: because a(1) = 1, the numbers 3 and 5 are disallowed, so that a(2) = 2, whence the number 8 is disallowed, and a(3) = 4. See A325417 for a guide to related sequences.
MATHEMATICA
a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1,
Apply[Or, Map[MemberQ[a, #] &, Select[Flatten[{(# - 1)/2, (# - 2)/3}],
IntegerQ]]] &]], {200}]; a (* A325539 *)
Complement[Range[Last[a]], a] (* A325540 *)
(* Peter J. C. Moses, Apr 25 2019 *)
CROSSREFS
Sequence in context: A259983 A050095 A102528 * A002158 A319829 A272631
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 07 2019
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 April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)