Take b(0)=n, for i>0 if b(i-1) is odd prime then b(i)=(b(i-1)+1)/2 otherwise b(i)=b(i-1)+1. For all n sequence b(i) ends with 2. The sequence gives a(n) = a number of steps from n to 2, a(n)=i when b(i)=2.
A121480
Take b(0)=n, for i>0 if b(i-1) is odd prime then b(i)=(b(i-1)+1)/2 otherwise b(i)=b(i-1)+1. For all n sequence b(i) ends with 2. The sequence gives a(n) = a number of steps from n to 2, a(n)=i when b(i)=2.
Terms
- a(0) =2a(1) =1a(2) =0a(3) =1a(4) =3a(5) =2a(6) =5a(7) =4a(8) =9a(9) =8a(10) =7a(11) =6a(12) =6a(13) =5a(14) =12a(15) =11a(16) =10a(17) =9a(18) =9a(19) =8a(20) =10a(21) =9a(22) =8a(23) =7a(24) =17a(25) =16a(26) =15a(27) =14a(28) =13a(29) =12
External references
- oeis: A121480