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.

A278117 Irregular triangle T(n,k) = A278115(n,k) for 1 <= k <= A278116(n), read by rows.

Original entry on oeis.org

2, 8, 3, 18, 12, 5, 32, 27, 20, 50, 48, 45, 28, 72, 48, 45, 98, 75, 128, 108, 162, 147, 125, 112, 99, 200, 192, 180, 175, 242, 192, 180, 175, 288, 243, 338, 300, 392, 363, 320, 450, 432, 405, 512, 507, 500, 448, 396, 578, 507, 500, 648, 588, 722, 675, 800, 768, 720
Offset: 1

Views

Author

Jason Kimberley, Feb 12 2017

Keywords

Comments

Each row is the longest strictly decreasing prefix of the corresponding row of A278115.

Examples

			The first six rows are:
2;
8, 3;
18, 12, 5;
32, 27, 20;
50, 48, 45, 28;
72, 48, 45;
		

Crossrefs

Programs

  • Magma
    A278112:=func;
    A278115_row:=funcA278112(n,p)^2*p:p in PrimesUpTo(2*n^2)]>;
    A278117_row:=funcA278115_row(n) >;
    &cat[A278117_row(n):n in[1..20]];
  • Mathematica
    Map[Take[#, 1 + Length@ TakeWhile[Differences@ #, # < 0 &]] &, #] &@ Table[# Floor[n Sqrt[2/#]]^2 &@ Prime@ k, {n, 20}, {k, PrimePi[2 n^2]}] // Flatten (* Michael De Vlieger, Feb 17 2017 *)