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.

A354598 Maximal GCD of eight positive integers with sum n.

Original entry on oeis.org

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

Views

Author

Wesley Ivan Hurt, Jul 08 2022

Keywords

Crossrefs

Maximal GCD of k positive integers with sum n for k = 2..10: A032742 (k=2,n>=2), A355249 (k=3), A355319 (k=4), A355366 (k=5), A355368 (k=6), A355402 (k=7), this sequence (k=8), A354599 (k=9), A354601 (k=10).

Programs

  • Maple
    b:= proc(n, i, t) option remember; `if`(n=0, signum(t),
         `if`(min(i, t)<1, 1, max(b(n, i-1, t),
          igcd(b(n-i, min(n-i, i), t-1), i))))
        end:
    a:= n-> `if`(n<8, 0, b(n$2, 8)):
    seq(a(n), n=8..200);  # Alois P. Heinz, Jul 13 2022
  • Mathematica
    b[n_, i_, t_] := b[n, i, t] = If[n == 0, Sign[t], If[Min[i, t] < 1, 1, Max[b[n, i - 1, t], GCD[b[n - i, Min[n - i, i], t - 1], i]]]];
    a[n_] := If[n < 8, 0, b[n, n, 8]];
    Table[a[n], {n, 8, 100}] (* Jean-François Alcover, Sep 21 2022, after Alois P. Heinz *)

A162788 a(n) = A162528(n)/8.

Original entry on oeis.org

8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263
Offset: 1

Views

Author

Omar E. Pol, Jul 13 2009

Keywords

Crossrefs

A162786 a(n) = A162526(n)/6.

Original entry on oeis.org

6, 7, 8, 9, 10, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277
Offset: 1

Views

Author

Omar E. Pol, Jul 13 2009

Keywords

Comments

Starting with a(6) = 11, these are just the primes. [From Franklin T. Adams-Watters, Aug 06 2009]

Crossrefs

Extensions

More terms from Franklin T. Adams-Watters, Aug 06 2009
Showing 1-3 of 3 results.