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

A225632 Irregular table read by rows: n-th row gives distinct values of successively iterated Landau-like functions for n, starting with the initial value 1.

Original entry on oeis.org

1, 1, 2, 1, 3, 6, 1, 4, 12, 1, 6, 30, 60, 1, 6, 30, 60, 1, 12, 84, 420, 1, 15, 120, 840, 1, 20, 180, 1260, 2520, 1, 30, 210, 840, 2520, 1, 30, 420, 4620, 13860, 27720, 1, 60, 660, 4620, 13860, 27720, 1, 60, 780, 8580, 60060, 180180, 360360
Offset: 1

Views

Author

Antti Karttunen, May 13 2013

Keywords

Comments

The leftmost column of table (the initial term of each row, T(n,1)) is 1, corresponding to lcm(1,1,...,1) computed from the {1+1+...+1} partition of n, after which, on the same row, each further term T(n,i) is computed by finding such a partition [p1,p2,...,pk] of n so that value of lcm(T(n,i-1), p1,p2,...,pk) is maximized, until finally A003418(n) is reached, which will be listed as the last term of row n (as the result would not change after that, if we continued the same process).

Examples

			The first fifteen rows of table are:
  1;
  1,   2;
  1,   3,    6;
  1,   4,   12;
  1,   6,   30,    60;
  1,   6,   30,    60;
  1,  12,   84,   420;
  1,  15,  120,   840;
  1,  20,  180,  1260,   2520;
  1,  30,  210,   840,   2520;
  1,  30,  420,  4620,  13860,  27720;
  1,  60,  660,  4620,  13860,  27720;
  1,  60,  780,  8580,  60060, 180180, 360360;
  1,  84, 1260, 16380, 180180, 360360;
  1, 105, 4620, 60060, 180180, 360360;
		

Crossrefs

Cf. A225634 (length of n-th row), A000793 (n>=2 gives the second column).
Cf. A225629 (second largest/rightmost term of n-th row).
Cf. A003418 (largest/rightmost term of n-th row).
Cf. A225642 (row n starts from n instead of 1).
Cf. A226055 (the first term common with A225642 on the n-th row).
Cf. A225638 (distance to that first common term from the beginning of the row n).
Cf. A226056 (number of trailing terms common with A225642 on the n-th row).

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0, {1},
          `if`(i<1, {}, {seq(map(x->ilcm(x, `if`(j=0, 1, i)),
           b(n-i*j, i-1))[], j=0..n/i)}))
        end:
    T:= proc(n) option remember; local d, h, l, ll;
          l:= b(n$2); ll:= NULL; d:=1; h:=0;
          while d<>h do ll:= ll, d; h:= d;
            d:= max(seq(ilcm(h, i), i=l))
          od; ll
        end:
    seq(T(n), n=1..20);  # Alois P. Heinz, May 29 2013
  • Mathematica
    b[n_, i_] := b[n, i] = If[n==0, {1}, If[i<1, {}, Table[Map[Function[{x}, LCM[x, If[j==0, 1, i]]], b[n-i*j, i-1]], {j, 0, n/i}]]]; T[n_] := T[n] = Module[{d, h, l, ll}, l=b[n, n]; ll={}; d=1; h=0; While[d != h, AppendTo[ll, d]; h=d; d = Max[ Table[LCM[h, i], {i, l}]]]; ll]; Table[T[n], {n, 1, 20}] // Flatten (* Jean-François Alcover, Jul 29 2015, after Alois P. Heinz *)

A225634 a(n) = Number of distinct values in column n of A225630.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, May 13 2013

Keywords

Comments

Also, for n>=1, a(n) = the length of n-th row of A225632.
For the positions of records, and other remarks, see comments at A225633.

Crossrefs

Cf. A225635 (partial sums).

Programs

  • Scheme
    (define (A225634 n) (count_number_of_distinct_lcms_of_partitions_until_fixed_point_met n 1))
    (define (count_number_of_distinct_lcms_of_partitions_until_fixed_point_met n initial_value) (let loop ((lcms (list initial_value initial_value))) (fold_over_partitions_of n 1 lcm (lambda (p) (set-car! lcms (max (car lcms) (lcm (second lcms) p))))) (if (= (car lcms) (second lcms)) (length (cdr lcms)) (loop (cons (car lcms) lcms)))))
    (define (fold_over_partitions_of m initval addpartfun colfun) (let recurse ((m m) (b m) (n 0) (partition initval)) (cond ((zero? m) (colfun partition)) (else (let loop ((i 1)) (recurse (- m i) i (+ 1 n) (addpartfun i partition)) (if (< i (min b m)) (loop (+ 1 i))))))))

Formula

a(n) = A225638(n)+A226056(n).
a(n) = A225633(n) + 1.

A225645 Partial sums of A225644.

Original entry on oeis.org

1, 2, 3, 5, 7, 10, 13, 16, 19, 23, 27, 32, 37, 43, 48, 53, 58, 64, 69, 76, 82, 89, 95, 102, 109, 116, 123, 131, 139, 147, 156, 165, 174, 184, 193, 203, 212, 221, 231, 241, 251, 261, 271, 282, 294, 305, 316, 328, 340, 351, 362, 375, 387, 399, 411, 423, 435, 447
Offset: 1

Views

Author

Antti Karttunen, May 15 2013

Keywords

Comments

A225642(a(n)) = n (Note that some terms, like 6 for example, can occur multiple times in A225642.)

Crossrefs

Showing 1-3 of 3 results.