Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A166051
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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
5, 13, 21, 37, 85, 93, 165 (list; graph; listen)
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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research