login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A340094 Dirichlet inverse of A062830, n - phi(n) + 1. 4
1, -2, -2, 1, -2, 3, -2, -1, 0, 1, -2, -1, -2, -1, 0, 0, -2, -1, -2, 3, -2, -5, -2, 1, -2, -7, -2, 7, -2, 9, -2, -1, -6, -11, -4, 4, -2, -13, -8, -3, -2, 17, -2, 15, 2, -17, -2, 1, -4, -3, -12, 19, -2, 3, -8, -7, -14, -23, -2, -11, -2, -25, 4, -1, -10, 33, -2, 27, -18, 17, -2, -3, -2, -31, -4, 31, -10, 41, -2, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(1) = 1, for n > 1, a(n) = -Sum_{d|n, d<n} A062830(n/d) * a(d).
PROG
(PARI)
up_to = 16384;
DirInverseCorrect(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = (-u[1])*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 (correctly!).
A062830(n) = 1+(n-eulerphi(n));
v340094 = DirInverseCorrect(vector(up_to, n, A062830(n)));
A340094(n) = v340094[n];
\\ Or as:
A340094(n) = if(1==n, 1, -sumdiv(n, d, if(d<n, A062830(n/d)*A340094(d), 0)));
CROSSREFS
Sequence in context: A365393 A366286 A072781 * A236566 A350957 A046923
KEYWORD
sign
AUTHOR
Antti Karttunen, Jan 05 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 14:17 EDT 2024. Contains 371960 sequences. (Running on oeis4.)