Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A130970
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A130970 Smallest prime p, such that |A000040(n)-p| is of the form 2^k. +0
1
3, 2, 3, 3, 3, 5, 13, 3, 7, 13, 23, 5, 37, 11, 31, 37, 43, 29, 3, 7, 41, 47, 19, 73, 89, 37, 71, 43, 101, 97, 131, 3, 73, 11, 151, 23, 29, 131, 103, 109, 163, 53, 127, 191, 181, 71, 83, 191, 163, 101, 229, 223, 113, 283, 193, 7, 13, 239, 149, 277, 251, 37, 179, 307 (list; graph; listen)
OFFSET

1,1

PROGRAM

(Scheme:) (define (A130970 n) (let ((p1 (A000040 n))) (let loop ((i 1)) (cond ((pow2? (abs (- p1 (A000040 i)))) (A000040 i)) (else (loop (+ i 1)))))))

(define (pow2? n) (and (> n 0) (zero? (A004198bi n (- n 1)))))

CROSSREFS

Cf. A130971.

Sequence in context: A065801 A086920 A117451 this_sequence A144733 A091460 A035093

Adjacent sequences: A130967 A130968 A130969 this_sequence A130971 A130972 A130973

KEYWORD

nonn

AUTHOR

Antti Karttunen (His-Firstname.His-Surname(AT)gmail.com), Jun 19 2007

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