Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A074397
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A074397 Number of primes between sigma(n) and n. +0
1
0, 0, 0, 1, 0, 2, 0, 2, 1, 3, 0, 4, 0, 3, 3, 4, 0, 5, 0, 5, 3, 3, 0, 8, 1, 4, 3, 7, 0, 10, 0, 7, 4, 5, 4, 13, 0, 5, 4, 12, 0, 11, 0, 9, 7, 6, 0, 15, 1, 9, 5, 10, 0, 14, 4, 14, 6, 8, 0, 22, 0, 6, 9, 12, 5, 16, 0, 11, 5, 15, 0, 24, 0, 9, 9, 13, 3, 18, 0, 20, 8, 8, 0, 25, 5, 9, 7, 18, 0, 27, 5, 15, 7 (list; graph; listen)
OFFSET

1,6

EXAMPLE

sigma(6) = 12, and there are 2 primes between 6 and 12 (endpoints are excluded), namely 7, 11. Hence a(6) = 2.

MATHEMATICA

(*gives number of primes < n*) f[n_] := Module[{r, i}, r = 0; i = 1; While[Prime[i] < n, i++ ]; i - 1]; (*gives number of primes between m and n with endpoints excluded*) g[m_, n_] := Module[{r}, r = f[m] - f[n]; If[PrimeQ[n], r = r - 1]; r]; Table[g[DivisorSigma[1, n], n], {n, 1, 100}]

CROSSREFS

Sequence in context: A061986 A127185 A055136 this_sequence A082023 A078152 A028932

Adjacent sequences: A074394 A074395 A074396 this_sequence A074398 A074399 A074400

KEYWORD

nonn

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Sep 24 2002

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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research