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-1 of 1 results.

A368227 Square array read by ascending antidiagonals: row n is the trajectory of n under the A006369 map.

Original entry on oeis.org

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

Views

Author

Paolo Xausa, Dec 18 2023

Keywords

Examples

			Array begins:
  [ 0]   0,  0,  0,  0,  0,  0,  0,  0,  0,   0,  0, ... = A000004
  [ 1]   1,  1,  1,  1,  1,  1,  1,  1,  1,   1,  1, ... = A000012
  [ 2]   2,  3,  2,  3,  2,  3,  2,  3,  2,   3,  2, ... = A010693
  [ 3]   3,  2,  3,  2,  3,  2,  3,  2,  3,   2,  3, ... = A176059
  [ 4]   4,  5,  7,  9,  6,  4,  5,  7,  9,   6,  4, ... = A094328
  [ 5]   5,  7,  9,  6,  4,  5,  7,  9,  6,   4,  5, ... = A094328 (shifted)
  [ 6]   6,  4,  5,  7,  9,  6,  4,  5,  7,   9,  6, ... = A094328 (shifted)
  [ 7]   7,  9,  6,  4,  5,  7,  9,  6,  4,   5,  7, ... = A094328 (shifted)
  [ 8]   8, 11, 15, 10, 13, 17, 23, 31, 41,  55, 73, ... = A028394
  [ 9]   9,  6,  4,  5,  7,  9,  6,  4,  5,   7,  9, ... = A094328 (shifted)
  [10]  10, 13, 17, 23, 31, 41, 55, 73, 97, 129, 86, ... = A028394 (shifted)
  ...    |   |   |
      A001477|A168222
          A006369
		

Crossrefs

Programs

  • Mathematica
    A006369[n_]:=If[Divisible[n,3],2n/3,Round[4n/3]];
    A368227list[dmax_]:=With[{a=Reverse[Table[NestList[A006369,n-1,dmax-n],{n,dmax}]]},Array[Diagonal[a,#]&,dmax,1-dmax]];
    A368227list[15] (* Generates 15 antidiagonals *)
Showing 1-1 of 1 results.