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.

A378056 a(n) = gcd(A057643(n), A084190(n)) = gcd(lcm{d+1 : d|n}, lcm{d-1 : d > 1 and d|n}).

Original entry on oeis.org

1, 1, 2, 3, 2, 2, 2, 3, 4, 6, 2, 30, 2, 6, 4, 15, 2, 20, 2, 6, 4, 6, 2, 210, 6, 6, 4, 6, 2, 84, 2, 15, 4, 6, 12, 420, 2, 6, 4, 126, 2, 60, 2, 30, 8, 6, 2, 210, 8, 6, 4, 30, 2, 20, 12, 90, 4, 6, 2, 4620, 2, 6, 40, 45, 6, 84, 2, 6, 4, 36, 2, 420, 2, 6, 24, 30, 12
Offset: 1

Views

Author

Amiram Eldar, Nov 15 2024

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := Module[{d = Divisors[n]}, GCD[LCM @@ (d + 1), LCM @@ (Rest @ d - 1)]]; a[1] = 1; Array[a, 100]
  • PARI
    a(n) = {my(d = divisors(n)); gcd(lcm(apply(x->x+1, d)), lcm(apply(x -> if(x > 1, x-1, x), d)));}

Formula

a(n) == 1 (mod 2) if and only if n is a power of 2 (A000079).
a(p) = 2 for an odd prime p. Composite numbers k such that a(k) = 2 are listed in A378057.
Showing 1-1 of 1 results.