Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A048865
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A048865 Number of primes in the reduced residue system mod n. +0
10
0, 0, 1, 1, 2, 1, 3, 3, 3, 2, 4, 3, 5, 4, 4, 5, 6, 5, 7, 6, 6, 6, 8, 7, 8, 7, 8, 7, 9, 7, 10, 10, 9, 9, 9, 9, 11, 10, 10, 10, 12, 10, 13, 12, 12, 12, 14, 13, 14, 13, 13, 13, 15, 14, 14, 14, 14, 14, 16, 14, 17, 16, 16, 17, 16, 15, 18, 17, 17, 16, 19, 18, 20, 19, 19, 19, 19, 18, 21, 20, 21 (list; graph; listen)
OFFSET

1,5

COMMENT

Sum{ceil(n/p) - floor(n/p): p prime and p<=n}: a(n)=A093614(n)-A013939(n). - Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystems.com), Apr 05 2004

FORMULA

a(n) = A000720(n) - A001221(n)

EXAMPLE

At n=30 all but 1 element in reduced residue system of 30 are primes (see A048597) so a(30)=Phi(30)-1=7. n=100: a(100)=Pi(100)-A001221(100)=25-2=23.

MATHEMATICA

p=Prime[Range[1000]]; q=Table[PrimePi[i], {i, 1, 1000}]; t=Table[c=0; Do[If[GCD[p[[j]], i]==1, c++ ], {j, 1, q[[i-1]]}]; c, {i, 2, 950}]

CROSSREFS

Cf. A000010, A000720, A001221, A048597, A070296.

Sequence in context: A138022 A113278 A132382 this_sequence A058754 A125087 A111353

Adjacent sequences: A048862 A048863 A048864 this_sequence A048866 A048867 A048868

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu)

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 July 19 08:04 EDT 2008. Contains 142098 sequences.


AT&T Labs Research