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.

A115265 Correlation triangle for floor((n+3)/3).

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2, 4, 4, 4, 4, 2, 3, 4, 5, 7, 5, 4, 3, 3, 5, 6, 8, 8, 6, 5, 3, 3, 6, 7, 9, 11, 9, 7, 6, 3, 4, 6, 8, 12, 12, 12, 12, 8, 6, 4, 4, 7, 9, 13, 15, 15, 15, 13, 9, 7, 4
Offset: 0

Views

Author

Paul Barry, Jan 18 2006

Keywords

Comments

Row sums are A115266. Diagonal sums are A115267.
T(2n,n) is A092353. T(2n,n)-T(2n,n+1)=A087508(n+1).

Examples

			Triangle begins
1;
1,1;
1,2,1;
2,2,2,2;
2,3,3,3,2;
2,4,4,4,4,2;
3,4,5,7,5,4,3;
3,5,6,8,8,6,5,3;
3,6,7,9,11,9,7,6,3;
		

Programs

  • Mathematica
    T[n_, k_] := Sum[Boole[j <= k] * Floor[(k - j + 3)/3] * Boole[j <= n-k] * Floor[(n - k - j + 3)/3], {j, 0, n}]; Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 15 2017 *)

Formula

G.f.: (1+x+x^2)(1+xy+x^2*y^2)/((1-x^3)^2*(1-x^3*y^3)^2*(1-x^2*y)).
T(n, k) = sum{j=0..n, [j<=k]*floor((k-j+3)/3)*[j<=n-k]*floor((n-k-j+3)/3)}.

A182477 Primes of the form p*q*r + 2, where p, q and r are distinct primes.

Original entry on oeis.org

107, 167, 197, 233, 257, 347, 359, 401, 431, 457, 467, 557, 563, 617, 647, 653, 743, 761, 797, 863, 887, 937, 971, 1087, 1097, 1187, 1223, 1237, 1283, 1297, 1409, 1481, 1493, 1549, 1553, 1583, 1597, 1601, 1607, 1637, 1697, 1871, 1889, 1907, 1949, 2003, 2017
Offset: 1

Views

Author

Alex Ratushnyak, May 01 2012

Keywords

Examples

			107 = 3*5*7+2.
		

Crossrefs

Cf. A115267.

Programs

  • Mathematica
    mx = 50; ps = Prime[Range[2, mx + 1]]; t = Table[ps[[i]]*ps[[j]]*ps[[k]] + 2, {i, mx}, {j, i + 1, mx}, {k, j + 1, mx}]; Select[Union[Flatten[t]], # <= 3*5*ps[[-1]] + 2 && PrimeQ[#] &] (* T. D. Noe, May 01 2012 *)

Formula

{A007304(n)+2} INTERSECTION {A000040}.
Showing 1-2 of 2 results.