a(n) is the smallest nonnegative k such that n divides 2^k + k.

A135366

a(n) is the smallest nonnegative k such that n divides 2^k + k.

Terms

    a(0) =0a(1) =2a(2) =1a(3) =4a(4) =4a(5) =2a(6) =6a(7) =8a(8) =7a(9) =4a(10) =3a(11) =8a(12) =12a(13) =6a(14) =7a(15) =16a(16) =16a(17) =14a(18) =18a(19) =4a(20) =19a(21) =8a(22) =22a(23) =8a(24) =33a(25) =12a(26) =7a(27) =40a(28) =11a(29) =26

External references