OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..75
FORMULA
a(n) = 2^(n-2)*(2^n - 1)*QPochhammer(n, -1, 2). - G. C. Greubel, Nov 25 2022
MAPLE
f := i->2^(i-1)*(2^i-1)*product( '2^j+1', 'j'=1..i-1);
MATHEMATICA
Table[2^(n-1) (2^n-1)Product[2^j+1, {j, n-1}], {n, 0, 20}] (* Harvey P. Dale, Feb 02 2022 *)
Table[2^(n-2)*(2^n-1)*QPochhammer[-1, 2, n], {n, 0, 30}] (* G. C. Greubel, Nov 25 2022 *)
PROG
(Magma) [n le 1 select n else 2^(n-1)*(2^n -1)*(&*[2^j+1: j in [1..n-1]]): n in [0..25]]; // G. C. Greubel, Nov 25 2022
(SageMath)
def A005477(n): return 2^(n-2)*(2^n-1)*product(2^j+1 for j in range(n))
[A005477(n) for n in range(30)] # G. C. Greubel, Nov 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(0) prepended by G. C. Greubel, Nov 25 2022
STATUS
approved