login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A112059 Nonzero terms of A112053 and A112080. 3
2, -2, 4, 8, -2, 12, -6, 12, 2, -2, -6, 18, -6, 2, -6, -4, 2, -2, 18, 2, -2, 24, 6, -2, 6, -8, 4, 2, -2, -6, 32, -6, 2, -6, -10, 2, -2, 28, 2, -2, 4, 38, -2, 6, -6, 4, 2, -2, -4, 42, -6, 2, -8, -4, 2, -2, 2, -2, 6, 8, -2, 48, -6, 4, 2, -2, -10, 6, -12, 2, -6, -4, 2, -2, 2, -2, 52, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

A. Karttunen, Table of n, a(n) for n = 1..4096

PROG

(Python)

from sympy import jacobi_symbol as J

def a112046(n):

    i=1

    while True:

        if J(i, 2*n + 1)!=1: return i

        else: i+=1

def a(n): return a112046(2*n) - a112046(2*n - 1)

print [a(n) for n in xrange(1, 201) if a(n)!=0] # Indranil Ghosh, May 25 2017

CROSSREFS

a(n) = A112053(A112054(n)).

Sequence in context: A238184 A065844 A131199 * A093094 A045777 A136534

Adjacent sequences:  A112056 A112057 A112058 * A112060 A112061 A112062

KEYWORD

sign

AUTHOR

Antti Karttunen, Aug 27 2005

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 26 12:43 EDT 2019. Contains 321497 sequences. (Running on oeis4.)