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-2 of 2 results.

A155156 Triangle T(n, k) = 4*n*k + 2*n + 2*k, read by rows.

Original entry on oeis.org

8, 14, 24, 20, 34, 48, 26, 44, 62, 80, 32, 54, 76, 98, 120, 38, 64, 90, 116, 142, 168, 44, 74, 104, 134, 164, 194, 224, 50, 84, 118, 152, 186, 220, 254, 288, 56, 94, 132, 170, 208, 246, 284, 322, 360, 62, 104, 146, 188, 230, 272, 314, 356, 398, 440, 68, 114, 160, 206, 252, 298, 344, 390, 436, 482, 528
Offset: 1

Views

Author

Vincenzo Librandi, Jan 21 2009

Keywords

Comments

First column: A016933, second column: A017317, third column: A063151, fourth column: 2*A017209. - Vincenzo Librandi, Nov 21 2012

Examples

			Triangle begins:
   8;
  14,  24;
  20,  34,  48;
  26,  44,  62,  80;
  32,  54,  76,  98, 120;
  38,  64,  90, 116, 142, 168;
  44,  74, 104, 134, 164, 194, 224;
  50,  84, 118, 152, 186, 220, 254, 288;
  56,  94, 132, 170, 208, 246, 284, 322, 360;
  62, 104, 146, 188, 230, 272, 314, 356, 398, 440;
		

Crossrefs

Programs

  • Magma
    [4*n*k + 2*n + 2*k : k in [1..n], n in [1..11]]; // Vincenzo Librandi, Nov 21 2012
    
  • Maple
    seq(seq( 2*(2*n*k +n+k), k=1..n), n=1..15); # G. C. Greubel, Mar 20 2021
  • Mathematica
    T[n_,k_]:=4*n*k +2*n +2*k; Table[T[n, k], {n, 15}, {k, n}]//Flatten (* Vincenzo Librandi, Nov 21 2012 *)
  • Sage
    flatten([[2*(2*n*k +n+k) for k in (1..n)] for n in (1..15)]) # G. C. Greubel, Mar 20 2021

Formula

T(n, k) = 2*A083487(n, k). - R. J. Mathar, Jan 05 2011
Sum_{k=0..n} T(n,k) = n*(2*n^2 + 5*n + 1) = 2*A162254(n) = A163832(n). - G. C. Greubel, Mar 20 2021

Extensions

Edited by Robert Hochberg, Jun 21 2010

A165274 Table read by antidiagonals: T(n, k) is the k-th number with n-1 even-power summands in its base 2 representation.

Original entry on oeis.org

2, 8, 1, 10, 3, 5, 32, 4, 7, 21, 34, 6, 13, 23, 85, 40, 9, 15, 29, 87, 341, 42, 11, 17, 31, 93, 343, 1365, 128, 12, 19, 53, 95, 349, 1367, 5461, 130, 14, 20, 55, 117, 351, 1373, 5463, 21845, 136, 16, 22, 61, 119, 373, 1375, 5469, 21847, 87381, 138, 18, 25, 63
Offset: 1

Views

Author

Clark Kimberling, Sep 12 2009

Keywords

Comments

For n>=0, row n is the ordered sequence of positive integers m such that the number of even powers of 2 in the base 2 representation of m is n.
Every positive integer occurs exactly once in the array, so that as a sequence it is a permutation of the positive integers.
For odd powers, see A165275.
For the number of even powers of 2 in the base 2 representation of n, see A139351; for odd, see A139352.
Essentially, (Row 0)=A062880, (Row 1)=A158705, (Column 1)=A002450, also possibly (Column 2)=A163832.

Examples

			Northwest corner:
2....8...10...32...34...40...42...129
1....3....4....6....9...11...12...14
5....7...13...15...17...19...20...22
21..23...29...31...53...55...61...63
Examples:
40 = 32 + 8 = 2^5 + 2^3, so that 40 is in row 0.
13 = 8 + 4 + 1 = 2^3 + 2^2 + 2^0, so that 13 is in row 2.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Total[(Reverse@IntegerDigits[n, 2])[[1 ;; -1 ;; 2]]]; T = GatherBy[ SortBy[Range[10^5], f], f]; Table[Table[T[[n - k + 1, k]], {k, n, 1, -1}], {n, 1, Length[T]}] // Flatten (* Amiram Eldar, Feb 04 2020*)

Extensions

More terms from Amiram Eldar, Feb 04 2020
Showing 1-2 of 2 results.