OFFSET
1,9
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8191
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537
PROG
(PARI)
up_to = 65537;
A160595(n) = { my(x=eulerphi(n)); x/gcd(x, n-1); };
DirInverse(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = -sumdiv(n, d, if(d<n, v[n/d]*u[d], 0))); (u) }; \\ Compute the Dirichlet inverse of the sequence given in input vector v.
v340142 = DirInverse(vector(up_to, n, A160595(n)));
A340142(n) = v340142[n];
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Dec 29 2020
STATUS
approved