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