[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A173683 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

newer changes | Showing entries 11-20 | older changes
Sum of n mod p, for p = 2, 3, 5, ..., smallest prime >= n.
(history; published version)
#12 by Alois P. Heinz at Thu Nov 15 18:51:26 EST 2012
LINKS

Alois P. Heinz, <a href="/A173683/b173683.txt">Table of n, a(n) for n = 1..1000</a>

#11 by Alois P. Heinz at Thu Nov 15 18:51:10 EST 2012
EXAMPLE

a(1) = 1 because (1 mod 2) = 1 where 2 = smallest prime >= 1.

MAPLE

seq (a(n), n=1..60); # _Alois P. Heinz_, Nov 25 2010

EXTENSIONS

More terms and Maple program from Alois P. Heinz, Nov 25 2010

STATUS

approved

editing

#10 by Russ Cox at Fri Mar 30 18:52:39 EDT 2012
AUTHOR

_Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), _, Nov 25 2010

Discussion
Fri Mar 30
18:52
OEIS Server: https://oeis.org/edit/global/257
#9 by Russ Cox at Fri Mar 30 17:37:30 EDT 2012
EXTENSIONS

More terms and Maple program from _Alois P. Heinz (heinz(AT)hs-heilbronn.de), _, Nov 25 2010

Discussion
Fri Mar 30
17:37
OEIS Server: https://oeis.org/edit/global/179
#8 by T. D. Noe at Thu Nov 25 14:32:25 EST 2010
STATUS

reviewed

approved

#7 by Alois P. Heinz at Thu Nov 25 12:42:24 EST 2010
STATUS

proposed

reviewed

#6 by Alois P. Heinz at Thu Nov 25 12:41:51 EST 2010
EXAMPLE

a(1) = 1 because (1 mod 2) = 1 where 2 = smallest prime>=1.

#5 by Alois P. Heinz at Thu Nov 25 12:39:56 EST 2010
MAPLE

a:= procn-> add (n mod ithprime(i), i=1..numtheory[pi] (nextprime(n-1))):

add (n mod ithprime(i), i=1..numtheory[pi] (nextprime(n-1)))

end:

seq (a (n), n=1..60);

#4 by Alois P. Heinz at Thu Nov 25 12:36:11 EST 2010
NAME

Sum of remainders of n and prime(k), mod p, for prime(k)p=2, 3, 5, ..., smallest prime>=n.

DATA

1, 0, 1, 5, 3, 7, 4, 15, 14, 16, 14, 4, 8, 20, 13, 24, 23, 28, 18, 38, 27, 48, 47, 43, 29, 57, 62, 57, 64, 65, 46, 76, 56, 97, 95, 88, 88, 95, 70, 99, 96, 102, 74, 117, 88, 133, 140, 130, 98, 156, 165, 174, 170, 171, 134, 199, 200, 208, 203, 189, 147, 214

MAPLE

a:= proc(n)

add (n mod ithprime(i), i=1..numtheory[pi] (nextprime(n-1)))

end:

seq (a (n), n=1..60);

EXTENSIONS

More terms and Maple program from Alois P. Heinz (heinz(AT)hs-heilbronn.de), Nov 25 2010

#3 by Juri-Stepan Gerasimov at Thu Nov 25 00:32:27 EST 2010
NAME

allocated Sum of remainders of n and prime(k), for Juri-Stepan Gerasimovprime(k)=2,3,5,...,smallest prime>=n.

DATA

1, 0, 1, 5, 3, 7, 4, 15, 16, 14, 4, 20, 13, 24, 23, 28, 18, 38

OFFSET

1,4

EXAMPLE

a(1)=1 because (1 mod 2)=1 where 2=smallest prime>1.

CROSSREFS

Cf. A099726.

KEYWORD

allocated

nonn

AUTHOR

Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Nov 25 2010

STATUS

approved

proposed