Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

2,4

COMMENT

Also remainder when the number of nonprimes is divided by the number of primes (not exceeding n).

LINKS

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

FORMULA

a(n) = n (mod pi(n)).

EXAMPLE

n = 2: Pi[2] = 1,Mod[1,1] = 0, the first term = a(2) = 0; n = 100: Pi[100] = 25, Mod[100,25] = 0 = a(100); n = 20: Pi[20] = 8, Mod[20,8] = 4 = a(20).

PROGRAM

(PARI) { for (n=2, 1000, write("b065134.txt", n, " ", n%primepi(n)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 11 2009]

CROSSREFS

Cf. A000720.

Cf. A000720, A057809, A057810, A000040, A065134, A004648, A062298, A065858-A065864, A065133

Sequence in context: A164658 A079067 A160271 this_sequence A088673 A035614 A133735

Adjacent sequences: A065131 A065132 A065133 this_sequence A065135 A065136 A065137

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Oct 15 2001

EXTENSIONS

Term a(1) removed so OFFSET changed from 1,5 to 2,4 by Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 11 2009

Since OFFSET is 2,4; Term a(1) removed and a(91) added by Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 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 16 17:18 EST 2009. Contains 170825 sequences.


AT&T Labs Research