Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A166048
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A166048 a(n) = (A166049(n)-1)/4. +0
2
0, 1, 2, 3, 5, 6, 9, 12, 20, 21, 23, 30, 41, 42, 56, 72, 90, 110, 132, 156, 182, 210, 240, 272, 306, 342, 380, 420, 462, 506, 552, 600, 650, 702, 756, 812, 870, 930, 992, 1056, 1122, 1190, 1260, 1332, 1406, 1482, 1560, 1640, 1722, 1806, 1892, 1980, 2070 (list; graph; listen)
OFFSET

1,3

COMMENT

Indexing sequence for A166049.

PROGRAM

(MIT Scheme with macro MATCHING-POS by AK):

(define A166048 (MATCHING-POS 1 0 (lambda (n) (let ((w (A016813 n)) (hp (A005843 n))) (let loop ((i 1) (s 1)) (cond ((< s 0) #f) ((>= i hp) #t) (else (loop (1+ i) (+ s (jacobi-symbol (1+ i) w))))))))))

CROSSREFS

Sequence in context: A084993 A046966 A035948 this_sequence A094873 A018126 A087900

Adjacent sequences: A166045 A166046 A166047 this_sequence A166049 A166050 A166051

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 December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research