Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A065861
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A065861 Remainder when the n-th composite number is divided by Pi[n], the number of primes not exceeding n. +0
2
0, 0, 1, 1, 0, 2, 3, 0, 2, 0, 1, 4, 0, 1, 2, 6, 0, 6, 0, 1, 2, 8, 0, 2, 3, 4, 6, 4, 5, 2, 4, 5, 6, 7, 8, 6, 7, 8, 9, 6, 8, 6, 7, 8, 9, 6, 8, 9, 10, 12, 14, 11, 12, 13, 14, 0, 1, 14, 16, 13, 14, 15, 16, 0, 1, 16, 17, 18, 0, 16, 18, 15, 16, 18, 20, 0, 1, 20, 0, 1, 2, 22, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 (list; graph; listen)
OFFSET

2,6

LINKS

Harry J. Smith, Table of n, a(n) for n=2,...,1000

FORMULA

a(n)=Mod[A002808(n), A000720(n)]

EXAMPLE

n=100, c[100]=133, pi(100)=25, a(100)=8 because 133=5.25+8.

PROGRAM

(PARI) Composite(n) = { local(k); k=n + primepi(n) + 1; while (k != n + primepi(k) + 1, k = n + primepi(k) + 1); return(k) } { for (n = 2, 1000, a=Composite(n)%primepi(n); write("b065861.txt", n, " ", a) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Nov 02 2009]

CROSSREFS

Cf. A002808, A000720, A065855-A065864

Sequence in context: A008290 A059066 A059067 this_sequence A126832 A068908 A113407

Adjacent sequences: A065858 A065859 A065860 this_sequence A065862 A065863 A065864

KEYWORD

nonn,new

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Nov 26 2001

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research