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.

A278115 Triangle T(n,k) = A278113(n,k)^2 A000040(k) for 1 <= k <= A278114(n), read by rows.

Original entry on oeis.org

2, 8, 3, 5, 7, 18, 12, 5, 7, 11, 13, 17, 32, 27, 20, 28, 11, 13, 17, 19, 23, 29, 31, 50, 48, 45, 28, 44, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 72, 48, 45, 63, 44, 52, 68, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 98, 75, 80, 63, 44, 52, 68, 76, 92, 29, 31, 37, 41, 43, 47, 53
Offset: 1

Views

Author

Jason Kimberley, Feb 10 2017

Keywords

Examples

			The first six rows are:
2;
8, 3, 5, 7;
18, 12, 5, 7, 11, 13, 17;
32, 27, 20, 28, 11, 13, 17, 19, 23, 29, 31;
50, 48, 45, 28, 44, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47;
72, 48, 45, 63, 44, 52, 68, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71;
		

Crossrefs

Cf. A278101.

Programs

  • Magma
    A278112:=func;
    A278115_row:=funcA278112(n,p)^2*p:p in PrimesUpTo(2*n^2)]>;
    &cat[A278115_row(n):n in[1..7]];
  • Mathematica
    Table[# Floor[n Sqrt[2/#]]^2 &@ Prime@ k, {n, 7}, {k, PrimePi[2 n^2]}] // Flatten (* Michael De Vlieger, Feb 17 2017 *)

Formula

T(n,k) = prime(k) * floor(n*sqrt(2/prime(k)))^2.