Minimal number of steps to get from 1 to n by (a) subtracting 1 or (b) multiplying by 2.
A061313
Minimal number of steps to get from 1 to n by (a) subtracting 1 or (b) multiplying by 2.
Terms
- a(0) =0a(1) =1a(2) =3a(3) =2a(4) =5a(5) =4a(6) =4a(7) =3a(8) =7a(9) =6a(10) =6a(11) =5a(12) =6a(13) =5a(14) =5a(15) =4a(16) =9a(17) =8a(18) =8a(19) =7a(20) =8a(21) =7a(22) =7a(23) =6a(24) =8a(25) =7a(26) =7a(27) =6a(28) =7a(29) =6
External references
- oeis: A061313