Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089822
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089822 Number of subsets of {1,.., n} containing exactly two primes. +0
5
0, 0, 2, 4, 12, 24, 48, 96, 192, 384, 640, 1280, 1920, 3840, 7680, 15360, 21504, 43008, 57344, 114688, 229376, 458752, 589824, 1179648, 2359296, 4718592, 9437184, 18874368, 23592960, 47185920, 57671680, 115343360, 230686720 (list; graph; listen)
OFFSET

1,3

COMMENT

a(n) = A000217(A000720(n)-1)*A089819(n);

for n>2: a(n) = A089818(n,2).

FORMULA

a(n) = (pi(n)*(pi(n)-1)*2^(n-pi(n)))/2, with pi = A000720.

EXAMPLE

a(5)=12 subsets of {1,2,3,4,5} contain exactly two primes: {2,3},

{2,5}, {3,5}, {1,2,3}, {1,2,5}, {1,3,5}, {2,3,4}, {2,4,5}, {3,4,5},

{1,2,3,4}, {1,2,4,5} and {1,3,4,5}.

CROSSREFS

Cf. A089821.

Sequence in context: A059322 A163908 A108720 this_sequence A079352 A089888 A133411

Adjacent sequences: A089819 A089820 A089821 this_sequence A089823 A089824 A089825

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Nov 12 2003

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 20 16:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research