Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A080574 a(1)=1, a(n)=a(n-1)+1 if n is odd and already in the sequence, a(n)=a(n-1)+2 if n is even and already in the sequence, a(n)=a(n-1)+3 otherwise. 1
1, 4, 7, 9, 12, 15, 16, 19, 20, 23, 26, 28, 31, 34, 35, 37, 40, 43, 44, 46, 49, 52, 53, 56, 59, 61, 64, 66, 69, 72, 73, 76, 79, 81, 82, 85, 86, 89, 92, 94, 97, 100, 101, 103, 106, 108, 111, 114, 115, 118, 121, 123, 124, 127, 130, 132, 135, 138, 139, 142 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Benoit Cloitre, N. J. A. Sloane and Matthew J. Vandermast, Numerical analogues of Aronson's sequence, J. Integer Seqs., Vol. 6 (2003), #03.2.2.
Benoit Cloitre, N. J. A. Sloane and Matthew J. Vandermast, Numerical analogues of Aronson's sequence, arXiv:math/0305308 [math.NT], 2003.
FORMULA
It appears that a(n) is asymptotic to c*n where c=2.36... is the largest root of q^2-3*q+3/2 = 0.
MATHEMATICA
a[1] = 1;
a[n_] := a[n] = If[MemberQ[Array[a, n-1], n], If[OddQ[n], a[n-1]+1, a[n-1]+2], a[n-1]+3];
Array[a, 60] (* Jean-François Alcover, Feb 13 2019 *)
CROSSREFS
Sequence in context: A279054 A086824 A266936 * A189367 A310951 A310952
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 23 2003
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 19 05:20 EDT 2024. Contains 374388 sequences. (Running on oeis4.)