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.

A278482 Square array A(n,k): A(0, n) = n; A(k, n) = A(k-1, floor(n*(k+1)/k)), for k >= 1, read by descending antidiagonals as A(0,0), A(0,1), A(1,0), A(0,2), A(1,1), A(2,0), ...

Original entry on oeis.org

0, 1, 0, 2, 2, 0, 3, 4, 2, 0, 4, 6, 6, 2, 0, 5, 8, 8, 6, 2, 0, 6, 10, 12, 12, 6, 2, 0, 7, 12, 14, 14, 12, 6, 2, 0, 8, 14, 18, 18, 18, 12, 6, 2, 0, 9, 16, 20, 24, 24, 18, 12, 6, 2, 0, 10, 18, 24, 26, 26, 26, 18, 12, 6, 2, 0, 11, 20, 26, 30, 30, 30, 26, 18, 12, 6, 2, 0, 12, 22, 30, 36, 38, 38, 38, 26, 18, 12, 6, 2, 0
Offset: 0

Views

Author

Antti Karttunen, Nov 23 2016 after David W. Wilson's posting on SeqFan list Nov 22 2016

Keywords

Comments

Related to Flavius Josephus's sieve. See A278492 and the postings by David W. Wilson et al. on SeqFan list, Nov 22 2016.

Examples

			The top left corner of the array:
  0, 1, 2,  3,  4,  5,  6,  7,  8,  9
  0, 2, 4,  6,  8, 10, 12, 14, 16, 18
  0, 2, 6,  8, 12, 14, 18, 20, 24, 26
  0, 2, 6, 12, 14, 18, 24, 26, 30, 36
  0, 2, 6, 12, 18, 24, 26, 30, 38, 42
  0, 2, 6, 12, 18, 26, 30, 38, 42, 48
  0, 2, 6, 12, 18, 26, 38, 42, 48, 60
  0, 2, 6, 12, 18, 26, 38, 48, 60, 62
  0, 2, 6, 12, 18, 26, 38, 48, 62, 66
  0, 2, 6, 12, 18, 26, 38, 48, 62, 78
		

Crossrefs

Transpose: A278483.
Main diagonal: A278484.
One less than A278492.

Programs

  • Mathematica
    t[k_, n_] := t[k - 1, Floor[n*(k + 1)/k]]; t[0, n_] = n; Table[t[k - 1, n - k + 1], {n, 0, 12}, {k, 1, n + 1}] // Flatten (* Robert G. Wilson v, Nov 23 2016 *)
  • Scheme
    (define (A278482 n) (A278482bi (A002262 n) (A025581 n)))
    (define (A278482bi row col) (if (zero? row) col (A278482bi (- row 1) (floor->exact (* col (/ 1 row) (+ 1 row))))))

Formula

A(0, n) = n for n >= 0; A(k, n) = A(k - 1, [n*(k + 1)/k]) for k > 0 and n >= 0. Here [ ] stands for floor-function. From David W. Wilson's posting to SeqFan list on 22 Nov 2016.

A278484 Main diagonal of A278482.

Original entry on oeis.org

0, 2, 6, 12, 18, 26, 38, 48, 62, 78, 90, 108, 132, 146, 180, 206, 222, 252, 288, 306, 348, 386, 398, 458, 480, 528, 566, 612, 648, 708, 762, 806, 842, 926, 948, 1008, 1092, 1110, 1188, 1260, 1320, 1358, 1470, 1482, 1578, 1692, 1718, 1806, 1898, 1932, 2022, 2160, 2186, 2268, 2366, 2478, 2532, 2702, 2738, 2798, 2966, 3018
Offset: 0

Views

Author

Antti Karttunen, Nov 23 2016 after David W. Wilson's posting on SeqFan list Nov 22 2016

Keywords

Crossrefs

Main diagonal of A278482 (and A278483).
Partial sums of A278484.

Programs

  • Mathematica
    a[n_]:= Fold[Floor@Times@##&,Prepend[Table[(k + 1)/k, {k, n, 1, -1}], n]] (* Ethan Beihl, Nov 29 2016 *)

Formula

By definition, a(n) = A278482(n,n).
a(n) = A000960(n + 1) - 1.
a(n) = 2*A073359(n). [Observed by Arie Groeneveld on SeqFan list, Nov 22 2016.] [Conjectural, true for n <= 2000 David W. Wilson, Nov 23 2016]
Showing 1-2 of 2 results.