OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..8 (shortened by N. J. A. Sloane, Jan 13 2019)
FORMULA
a(n) = 2^(k-1)-k for k=A001792(n).
EXAMPLE
PROG
(Magma) [2^((n+2)*2^(n-1)-1)-(n+2)*2^(n-1): n in [1..7]]; // Vincenzo Librandi, Aug 26 2011
(PARI) a(n) = my(k=(n+2)*2^(n-1)); 2^(k-1)-k; \\ Michel Marcus, Mar 25 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Jan 09 2007
STATUS
approved