OFFSET
1,1
COMMENTS
The primes in the sequence are: 2, 3, 7, 13, 31, 127, 8191, 65521, 131071, 524287, 2147483647,... .
EXAMPLE
For n = 4, 2^4 = 16, sum of proper divisors of n is 1 + 2 = 3, so a(4) = 16 - 3 = 13.
MAPLE
with(numtheory); A242389:=n->2^n+n-sigma(n); seq(A242389(n), n=1..50); # Wesley Ivan Hurt, May 13 2014
MATHEMATICA
Table[2^n + n - DivisorSigma[1, n], {n, 50}] (* Wesley Ivan Hurt, May 13 2014 *)
PROG
(Magma) [2^n + n - DivisorSigma(1, n): n in [1..30]];
(PARI) a(n) = 2^n + n - sigma(n); \\ Michel Marcus, May 13 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, May 12 2014.
EXTENSIONS
a(30) corrected by Michel Marcus, Jun 14 2022
STATUS
approved