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.

A236532 Triangle T(n,k) read by rows: T(n,k) = floor(n*k/(n+k)), with 1 <= k <= n.

Original entry on oeis.org

0, 0, 1, 0, 1, 1, 0, 1, 1, 2, 0, 1, 1, 2, 2, 0, 1, 2, 2, 2, 3, 0, 1, 2, 2, 2, 3, 3, 0, 1, 2, 2, 3, 3, 3, 4, 0, 1, 2, 2, 3, 3, 3, 4, 4, 0, 1, 2, 2, 3, 3, 4, 4, 4, 5, 0, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 0, 1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 0, 1, 2, 3, 3, 4, 4, 4, 5, 5
Offset: 1

Views

Author

Alex Ratushnyak, Jan 27 2014

Keywords

Comments

It appears that the least m such that T(m, n) = n-1 is given by A103505(n) for n>= 1. - Michel Marcus, Feb 25 2020

Examples

			Triangle begins:
  0
  0 1
  0 1 1
  0 1 1 2
  0 1 1 2 2
  0 1 2 2 2 3
  0 1 2 2 2 3 3
  0 1 2 2 3 3 3 4
  0 1 2 2 3 3 3 4 4
  0 1 2 2 3 3 4 4 4 5
  0 1 2 2 3 3 4 4 4 5 5
  0 1 2 3 3 4 4 4 5 5 5 6
  0 1 2 3 3 4 4 4 5 5 5 6 6
  0 1 2 3 3 4 4 5 5 5 6 6 6 7
  0 1 2 3 3 4 4 5 5 6 6 6 6 7 7
  0 1 2 3 3 4 4 5 5 6 6 6 7 7 7 8
  0 1 2 3 3 4 4 5 5 6 6 7 7 7 7 8 8
  0 1 2 3 3 4 5 5 6 6 6 7 7 7 8 8 8 9
		

Crossrefs

Programs

  • PARI
    T(n,k)={n*k\(n+k)} \\ Andrew Howroyd, Feb 24 2020
  • Python
    for n in range(1, 21):
      for k in range(1, n+1):
        print(n*k // (n+k), end=', ')
      #print() # Uncomment to display as a triangle
    

Formula

T(n, n) = floor(n/2). See A004526. - Michel Marcus, Feb 25 2020