a(n) = value of n defined as follows: start with n and reach 2 by repeatedly either dividing by d where d <= the square root or by subtracting 1. The division steps are free, but subtracting 1 costs 1 point. The "value" of n is the smallest cost to reach 2.
A048823
a(n) = value of n defined as follows: start with n and reach 2 by repeatedly either dividing by d where d <= the square root or by subtracting 1. The division steps are free, but subtracting 1 costs 1 point. The "value" of n is the smallest cost to reach 2.
Terms
- a(0) =0a(1) =1a(2) =0a(3) =1a(4) =1a(5) =2a(6) =0a(7) =1a(8) =1a(9) =2a(10) =0a(11) =1a(12) =2a(13) =1a(14) =0a(15) =1a(16) =1a(17) =2a(18) =1a(19) =2a(20) =2a(21) =3a(22) =0a(23) =1a(24) =1a(25) =1a(26) =2a(27) =3a(28) =1a(29) =2
External references
- oeis: A048823