cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A349961 a(n) = Sum_{k=0..n} (2*n)^k.

Original entry on oeis.org

1, 3, 21, 259, 4681, 111111, 3257437, 113522235, 4581298449, 210027483919, 10778947368421, 612142982430915, 38108188628928601, 2580398988131886039, 188802050194014479853, 14843696896551724137931, 1247923426698972051309601, 111713733654631566667971615
Offset: 0

Views

Author

Seiichi Manyama, Dec 07 2021

Keywords

Crossrefs

Programs

  • Mathematica
    a[0] = 1; a[n_] := Sum[(2*n)^k, {k, 0, n}]; Array[a, 18, 0] (* Amiram Eldar, Dec 07 2021 *)
  • PARI
    a(n) = sum(k=0, n, (2*n)^k);
    
  • PARI
    a(n) = ((2*n)^(n+1)-1)/(2*n-1);

Formula

a(n) = ((2*n)^(n+1) - 1)/(2*n - 1).