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!)
A325429 a(n) is the least number not 3*a(m) or floor(3*a(m)/2) for any m < n. 5
1, 2, 4, 5, 8, 9, 10, 11, 14, 17, 18, 19, 20, 22, 23, 26, 29, 31, 32, 35, 36, 37, 38, 40, 41, 44, 45, 47, 49, 50, 53, 56, 58, 59, 62, 63, 64, 65, 68, 71, 72, 74, 76, 77, 80, 81, 82, 83, 85, 86, 89, 90, 91, 92, 95, 98, 99, 100, 101, 103, 104, 107, 109, 110 (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 number 3 is disallowed, so that a(2) = 2, whence the numbers 3 and 6 are 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[{#/3,
If[Mod[#, 3] == 0, (2 #)/3, 0] + If[Mod[#, 3] == 1, 1/3 (1 + 2 #), 0]}],
IntegerQ || # == 0]]] &]], {150}]; a (* A325429 *)
Complement[Range[Last[a]], a] (* A325430 *)
(* Peter J. C. Moses, Apr 25 2019 *)
CROSSREFS
Sequence in context: A072008 A175141 A072756 * A004761 A004754 A322014
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 30 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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)