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.

A340187 Dirichlet inverse of A063994(x) = Product_{primes p dividing x} gcd(p-1, x-1).

Original entry on oeis.org

1, -1, -2, 0, -4, 3, -6, 0, 2, 7, -10, -1, -12, 11, 12, 0, -16, -5, -18, -3, 20, 19, -22, 0, 12, 23, -2, -7, -28, -29, -30, 0, 36, 31, 44, 4, -36, 35, 44, 0, -40, -49, -42, -9, -24, 43, -46, 0, 30, -33, 60, -13, -52, 7, 76, 4, 68, 55, -58, 23, -60, 59, -36, 0, 80, -93, -66, -15, 84, -119, -70, -1, -72, 71, -52, -19
Offset: 1

Views

Author

Antti Karttunen, Dec 31 2020

Keywords

Crossrefs

Programs

  • PARI
    up_to = 65537;
    A063994(n) = { my(f=factor(n)); prod(i=1, #f~, gcd(f[i, 1]-1, n-1)); };
    DirInverse(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = -sumdiv(n, d, if(dA063994(n)));
    A340187(n) = v340187[n];