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!)
A089497 mu(prime(n)+1) - mu(prime(n)-1), where mu is the Moebius function. 3
1, 1, -1, -1, 1, 0, 0, -1, -1, 1, 1, -1, 1, -1, 0, -1, 1, 1, 1, 1, 1, -1, 0, 0, -1, 1, -1, -1, -1, 0, 1, -1, 1, 0, 0, 1, 0, -1, -1, -1, -1, 1, 1, 0, 0, -1, 1, -1, -1, 0, 1, 0, 0, -1, -1, 0, 0, 1, -1, 1, 0, 0, 1, 1, -1, -1, 0, -1, 0, -1, -1, 1, -1, 0, -1, 1, 1, -1, -1, 1, 1, 1, -1, 1, 1, 0, 1, 1, -1, -1, -1, 0, 0, 1, -1, 1, 0, 0, 1, -1, 0, -1, 1, -1, 0, -1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
This difference is always -1, 0 or 1 because for odd prime p, both p-1 and p+1 cannot be squarefree; one of them will be divisible by 4. This also implies that terms in this sequence are zero only for primes p such that mu(p-1) = mu(p+1) = 0, which is A075432.
LINKS
Eric Weisstein's World of Mathematics, Moebius Function
Eric Weisstein's World of Mathematics, Legendre Symbol
FORMULA
Let p = prime(n), then a(n) = (-1/p) mu(p+(-1/p)), where (-1/p) is the Legendre symbol, A070750. (Pieter Moree)
MATHEMATICA
Table[MoebiusMu[Prime[n]+1] - MoebiusMu[Prime[n]-1], {n, 2, 150}]
MoebiusMu[#+1]-MoebiusMu[#-1]&/@Prime[Range[2, 110]] (* Harvey P. Dale, Sep 16 2018 *)
CROSSREFS
Cf. A089451 (mu(p-1) for prime p), A089495 (mu(p+1) for prime p), A089496 (mu(p+1)+mu(p-1) for prime p).
Sequence in context: A014079 A071032 A071034 * A355937 A345950 A122895
KEYWORD
sign
AUTHOR
T. D. Noe, Nov 04 2003
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 18 18:10 EDT 2024. Contains 371781 sequences. (Running on oeis4.)