OFFSET
1,1
COMMENTS
a(1)=3; for n>1, a(n+1)=a(n)+4 if n is already in the sequence, a(n+1)=a(n)+3 otherwise.
a(n)-1 is the index of the n-th 1 in sequence A276397. - M. F. Hasler, Oct 07 2016
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
B. Cloitre, N. J. A. Sloane and M. J. Vandermast, Numerical analogues of Aronson's sequence, J. Integer Seqs., Vol. 6 (2003), #03.2.2.
B. Cloitre, N. J. A. Sloane and M. J. Vandermast, Numerical analogues of Aronson's sequence, arXiv:math/0305308 [math.NT], 2003.
Eric Weisstein's World of Mathematics, Beatty Sequence.
MATHEMATICA
Floor[Range[100]*(3 + Sqrt[13])/2] (* Paolo Xausa, Jul 08 2024 *)
PROG
(Magma) [Floor(n*(3+Sqrt(13))/2): n in [1..80]]; // Vincenzo Librandi, Oct 25 2011
(PARI) A080081(n)=n*(3+sqrt(13))\2 \\ M. F. Hasler, Oct 07 2016
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
N. J. A. Sloane, Mar 15 2003
STATUS
approved