1,5

Least nonnegative k such that (2^n+k)/n is an integer.

If n is a power of 2, a(n) = 0; otherwise a(n) = n - A015910(n). - Robert Israel, Apr 08 2015

Robert Israel, Table of n, a(n) for n = 1..10000

a(n) = -(2^n) mod n. - Robert Israel, Apr 08 2015

seq(-2&^n mod n, n = 1 .. 100); # Robert Israel, Apr 08 2015

Cf. A053638, A015910, A000799, A082494, A215747.

Sequence in context: A213611 A318304 A318989 * A323912 A021887 A085015

Adjacent sequences: A082490 A082491 A082492 * A082494 A082495 A082496

easy,nonn,look

Vladeta Jovovic, Apr 28 2003

approved