The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A339145 a(n) is 1 if A196202(n) is a local maximum, -1 if A196202(n) is a local minimum and 0 otherwise. 0
 0, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 0, 0, 1, 0, -1, 1, 0, -1, 1, -1, 1, -1, 0, 1, 0, -1, 0, 1, 0, -1, 1, -1, 1, -1, 1, 0, 0, -1, 0, 1, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 0, 1, 0, -1, 1, 0, -1, 1, -1, 0, 1, 0, -1, 1, -1, 0, 0, 1, 0, -1, 1, 0, -1, 1, -1, 1, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 2 COMMENTS Clearly, if p = prime(n) is a Wieferich prime (A001220) that is preceded and followed by non-Wieferich primes, then a(n) = -1. Heuristic arguments predict this is the case for all Wieferich primes. How are the terms with value -1 distributed within this sequence? Is there a correlation between the distribution of Wieferich primes within A000040 and the distribution of the -1 terms within this sequence? LINKS EXAMPLE For n = 4: The values of A196202(i) for i = 3, 4, 5, respectively, are 16, 15, 56 and 16 > 15 < 56, meaning 15 is a local minimum and therefore a(4) = -1. PROG (PARI) a(n) = my(p=prime(n), v=[precprime(p-1), p, nextprime(p+1)]); v=[lift(Mod(2, v[1]^2)^(v[1]-1)), lift(Mod(2, v[2]^2)^(v[2]-1)), lift(Mod(2, v[3]^2)^(v[3]-1))]; if(v[2] > v[1] && v[2] > v[3], return(1), if(v[2] < v[1] && v[2] < v[3], return(-1), return(0))) CROSSREFS Cf. A001220, A196202. Sequence in context: A168046 A168184 A013595 * A011582 A145568 A168185 Adjacent sequences:  A339142 A339143 A339144 * A339146 A339147 A339148 KEYWORD sign,easy AUTHOR Felix FrÃ¶hlich, Nov 25 2020 STATUS approved

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

Last modified May 15 17:50 EDT 2021. Contains 343920 sequences. (Running on oeis4.)