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!)
A080029 a(n) is taken to be the smallest positive integer not already present which is consistent with the condition "n is a member of the sequence if and only if a(n) is a multiple of 3". 5

%I #14 Jun 27 2021 18:45:16

%S 0,2,3,6,5,9,12,8,15,18,11,21,24,14,27,30,17,33,36,20,39,42,23,45,48,

%T 26,51,54,29,57,60,32,63,66,35,69,72,38,75,78,41,81,84,44,87,90,47,93,

%U 96,50,99,102,53,105,108,56,111,114,59,117,120,62,123,126,65,129,132,68

%N a(n) is taken to be the smallest positive integer not already present which is consistent with the condition "n is a member of the sequence if and only if a(n) is a multiple of 3".

%H Michael S. Branicky, <a href="/A080029/b080029.txt">Table of n, a(n) for n = 0..9999</a>

%H B. Cloitre, N. J. A. Sloane and M. J. Vandermast, <a href="http://www.cs.uwaterloo.ca/journals/JIS/index.html">Numerical analogues of Aronson's sequence</a>, J. Integer Seqs., Vol. 6 (2003), #03.2.2.

%H B. Cloitre, N. J. A. Sloane and M. J. Vandermast, <a href="https://arxiv.org/abs/math/0305308">Numerical analogues of Aronson's sequence</a>, arXiv:math/0305308 [math.NT], 2003.

%F a(3m)=6m, a(3m+1)=3m+2, a(3m+2)=6m+3.

%t {#+1,2#-1,2#}[[Mod[ #,3,1]]]&/@Range[0,80] (* _Federico Provvedi_, Jun 15 2021 *)

%o (Python)

%o def a(n): m, r = divmod(n, 3); return 3*(2-r%2)*m + (r > 0)*(r+1)

%o print([a(n) for n in range(68)]) # _Michael S. Branicky_, Jun 15 2021

%Y Cf. A079000, A079313, A080030, A080031.

%K easy,nonn

%O 0,2

%A _N. J. A. Sloane_, Mar 14 2003

%E More terms from _Matthew Vandermast_, Mar 20 2003

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 September 5 10:38 EDT 2024. Contains 375696 sequences. (Running on oeis4.)