Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A157188
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A157188 Number of ways to write prime(n) as p*q-(p+q) with primes p<=q. +0
3
0, 2, 1, 1, 2, 0, 1, 1, 2, 1, 1, 0, 1, 1, 1, 0, 3, 0, 0, 4, 0, 1, 1, 0, 0, 1, 1, 2, 0, 0, 0, 2, 1, 1, 1, 0, 0, 1, 2, 0, 3, 0, 3, 0, 1, 1, 1, 1, 1, 0, 0, 3, 0, 2, 0, 2, 1, 1, 0, 1, 0, 0, 0, 4, 0, 0, 1, 0, 2, 0, 0, 4, 0, 0, 1, 2, 0, 0, 0, 0, 4, 0, 4, 0, 0, 1, 0, 0, 1, 1, 1, 3, 0, 1, 1, 3, 0, 1, 1, 0, 0, 0, 1, 1, 0 (list; graph; listen)
OFFSET

1,2

COMMENT

Records in this sequence are given in A157189, the corresponding primes in A157190.

LINKS

C. Rivera (Ed.), Puzzle 482: Two Bergot questions, March 2009.

EXAMPLE

a(1)=0 since prime(1) = 2 cannot be written as pq-(p+q) for primes p,q.

a(2)=2 since prime(2) = 3 = 2*5-(2+5) = 3*3-(3+3) are the two possibilities.

PROGRAM

(PARI) A157188(n)={ local(c=0, L=sqrtint(n=prime(n)+1)); fordiv( n, d, d>L&break; isprime(d+1) | next; isprime(n/d+1) & c++); c}

CROSSREFS

Cf. A157187-A157190

Sequence in context: A025925 A109066 A079066 this_sequence A096496 A117209 A035192

Adjacent sequences: A157185 A157186 A157187 this_sequence A157189 A157190 A157191

KEYWORD

nonn

AUTHOR

M. F. Hasler (MHasler(AT)univ-ag.fr), Mar 11 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