a(n) = A082894(n)-A000079(n), the difference of 2^n and the number closest to it and divisible by n.

A082900

a(n) = A082894(n)-A000079(n), the difference of 2^n and the number closest to it and divisible by n.

Terms

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

External references