|
Search: id:A166051
|
|
|
| A166051 |
|
Non-square integers of the form 4n+1 for which Sum_{i=1..u} J(i,4n+1) is never negative for any u in range [1,(2n)], where J(i,k) is the Jacobi symbol. |
|
+0 2
|
| |
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
Conjecture: There are no more terms after 165. (Checked up to A016813(290511) = 1162045.) If this is true, then also 5, 13 and 37 are only 4k+1 primes in A080114.
|
|
PROGRAM
|
(MIT Scheme with macro MATCHING-POS by AK):
(define (A166051 n) (A016813 (index_for_a166051 n)))
(define index_for_a166051 (MATCHING-POS 1 0 (lambda (n) (let ((w (A016813c n)) (hp (A005843 n))) (let loop ((i 1) (s 1)) (cond ((< s 0) #f) ((>= i hp) (zero? s)) (else (loop (1+ i) (+ s (jacobi-symbol (1+ i) w))))))))))
|
|
CROSSREFS
|
Setwise difference of A016754 and A166049.
Sequence in context: A166090 A065766 A034170 this_sequence A160170 A060004 A076408
Adjacent sequences: A166048 A166049 A166050 this_sequence A166052 A166053 A166054
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Antti Karttunen (His-Firstname.His-Surname(AT)gmail.com), Oct 08 2009
|
|
|
Search completed in 0.002 seconds
|