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!)
A193865 a(n) = (A187108(n+1)-A187108(n))/2. 0
1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 3, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 3, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
PROG
(AS3)
var a:Array=new Array();
var i:int;
var n:int=0;
var ni:int;
var b:Array = new Array();
for (i=0; i<=1000; i++){
while(a[n]!=undefined) n++;
b.push(String(2*n+1));
a[n]=1;
ni=2*n+1;
while(ni>=2*n+1&&ni>1){
ni=3*ni+1;
while(ni%2==0)ni/=2;
a[(ni-1)/2]=1;
}}
for(i=0; i<1000; i++)b[i]=(b[i+1]-b[i])/2; b.pop();
trace(b);
CROSSREFS
Sequence in context: A166948 A325532 A180075 * A026171 A026176 A026141
KEYWORD
nonn
AUTHOR
Jimin Park, Aug 07 2011
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 07:28 EDT 2024. Contains 371922 sequences. (Running on oeis4.)