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.

Showing 1-3 of 3 results.

A118413 Triangle read by rows: T(n,k) = (2*n-1)*2^(k-1), 0

Original entry on oeis.org

1, 3, 6, 5, 10, 20, 7, 14, 28, 56, 9, 18, 36, 72, 144, 11, 22, 44, 88, 176, 352, 13, 26, 52, 104, 208, 416, 832, 15, 30, 60, 120, 240, 480, 960, 1920, 17, 34, 68, 136, 272, 544, 1088, 2176, 4352, 19, 38, 76, 152, 304, 608, 1216, 2432, 4864, 9728, 21, 42, 84, 168
Offset: 1

Views

Author

Reinhard Zumkeller, Apr 27 2006

Keywords

Comments

Central terms give A118415; row sums give A118414;
T(n,1) = A005408(n-1);
T(n,2) = A016825(n-1) for n>1;
T(n,3) = A017113(n-1) for n>2;
T(n,4) = A051062(n-1) for n>3;
T(n,n-2) = A052951(n-1) for n>2;
T(n,n) = A014480(n-1) = A118416(n,n);
A001511(T(n,k)) = A002260(n,k);
A003602(T(n,k)) = A002024(n,k).
G.f.: x*y*(1 + x + 2*x*y - 6*x^2*y)/((1 - x)^2*(1 - 2*x*y)^2). - Stefano Spezia, Dec 22 2024

Examples

			   1
   3   6
   5  10  20
   7  14  28  56
   9  18  36  72 144
  11  22  44  88 176 352
  13  26  52 104 208 416  832
  15  30  60 120 240 480  960 1920
  17  34  68 136 272 544 1088 2176 4352
  19  38  76 152 304 608 1216 2432 4864 9728
  ...
		

Crossrefs

Programs

  • Mathematica
    Select[Flatten[Table[(2n-1)2^(k-1),{n,20},{k,0,n}]],IntegerQ] (* Harvey P. Dale, Jan 17 2024 *)
  • Python
    from math import isqrt, comb
    def A118413(n):
        a = (m:=isqrt(k:=n<<1))+(k>m*(m+1))
        return ((a<<1)-1)<Chai Wah Wu, Jun 20 2025

A014477 Expansion of (1 + 2*x)/(1 - 2*x)^3.

Original entry on oeis.org

1, 8, 36, 128, 400, 1152, 3136, 8192, 20736, 51200, 123904, 294912, 692224, 1605632, 3686400, 8388608, 18939904, 42467328, 94633984, 209715200, 462422016, 1015021568, 2218786816, 4831838208, 10485760000, 22682796032, 48922361856, 105226698752, 225754218496
Offset: 0

Views

Author

Keywords

Comments

The sequence 0,1,8,... has a(n) = n^2*2^(n-1) and is the binomial transform of the hexagonal numbers A000384 (with leading 0). - Paul Barry, Jun 09 2003
As 0,1,8,... this is n^2*2^(n-1), the binomial transform of the hexagonal numbers A000384 (include the leading 0). Partial sums are A036826. - Paul Barry, Jun 10 2003
Sequence gives total value of all possible sums of distinct odd integers with maximum term less than 2n+1. E.g., for a(3) we can have the sums 1, 3, 5, 1+3, 1+5, 3+5, 1+3+5, which sum to 1+3+5+4+6+8+9 = 36. - Jon Perry, Feb 06 2004
Number of edges on a partially truncated (n+1)-cube (column 2 of A271316).

Crossrefs

Programs

Formula

O.g.f.: (1 + 2*x)/(1 - 2*x)^3 (see the name).
a(n) = (n+1)^2*2^n = A007758(n+1)/2. - Henry Bottomley, Jun 13 2001
The binomial transform of 0, 1, 8, ... is A077616. - Paul Barry, Jul 24 2003
a(1)=1, a(n) = 2a(n-1) + (2n-1)*2^(n-1). - Jon Perry, Feb 06 2004
a(n) = sum of (n+1)-th row of the triangle in A118416. - Reinhard Zumkeller, Apr 27 2006
a(n) = Sum_{j=0..n} binomial(n,j)*n*j. - Zerinvary Lajos, Oct 19 2006
E.g.f.: exp(2*x)*(1 + 6*x + 8*x^2/2!). - Wolfdieter Lang, Jul 29 2017
Sum_{n>=0} 1/a(n) = Pi^2/6 - log(2)^2. - Daniel Suteu, Oct 31 2017
Sum_{n>=0} (-1)^n/a(n) = -2 * Li_2(-1/2) = -2 * A355234. - Amiram Eldar, Oct 01 2022

A277046 Triangle read by rows: T(n,k) = 2^n - n + k - 1 for n >= 1, with 1 <= k <= 2n-1.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 27, 28, 29, 30, 31, 32, 33, 34, 35, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519
Offset: 1

Views

Author

Miquel Cerda, Sep 27 2016

Keywords

Examples

			Triangle begins:
1;
2,   3,  4;
5,   6,  7,  8,  9;
12, 13, 14, 15, 16, 17, 18;
27, 28, 29, 30, 31, 32, 33, 34, 35;
58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68;
...
Written as an isosceles triangle the sequence begins:
.                      1;
.                  2,  3,  4;
.              5,  6,  7,  8,  9;
.         12, 13, 14, 15, 16, 17, 18;
.     27, 28, 29, 30, 31, 32, 33, 34, 35;
. 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68;
..
		

Crossrefs

Row lengths are A005408.
Row sums give A118414.
Column 1 gives A000325, n>=1.
Middle diagonal gives A000225.
Right border gives A083706.
Cf. A118413.

Programs

  • Mathematica
    Table[2^n-n+k-1,{n,10},{k,2n-1}]//Flatten (* Harvey P. Dale, Nov 27 2021 *)

Extensions

Definition from Omar E. Pol, Sep 28 2016
Showing 1-3 of 3 results.