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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165607 a(n) = (A165608(n)-3)/4. 3
2, 6, 8, 14, 15, 18, 20, 25, 32, 33, 42, 43, 60, 62, 69, 73, 74, 79, 85, 87, 90, 92, 93, 98, 103, 104, 123, 134, 140, 141, 143, 151, 158, 164, 168, 175, 177, 182, 183, 188, 195, 216, 218, 223, 224, 225, 231, 235, 242, 249, 265, 266, 272, 275, 281, 283, 284, 285 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

PROG

(MIT Scheme with MATCHING-POS macro by AK): (define A165607 (MATCHING-POS 1 0 (lambda (n) (let ((w (A004767 n)) (hp (A005408 n))) (let loop ((i 1) (s 1) (zv 0)) (cond ((< s 0) #f) ((>= i hp) (not (zero? zv))) ((zero? s) (loop (1+ i) (+ s (jacobi-symbol (1+ i) w)) (1+ zv))) (else (loop (1+ i) (+ s (jacobi-symbol (1+ i) w)) zv))))))))

CROSSREFS

Set-wise difference of A095274 and A165468.

Sequence in context: A074383 A107505 A074400 * A109440 A063242 A104636

Adjacent sequences:  A165604 A165605 A165606 * A165608 A165609 A165610

KEYWORD

nonn

AUTHOR

Antti Karttunen (His-Firstname.His-Surname(AT)gmail.com), Oct 06 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 08:06 EST 2012. Contains 205604 sequences.