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”).

A330578
a(n) is the remainder when the sum of the first n composite numbers is divided by the n-th composite number.
2
0, 4, 2, 0, 7, 1, 7, 3, 14, 4, 12, 6, 21, 7, 24, 16, 7, 25, 5, 15, 4, 26, 14, 1, 11, 36, 22, 34, 4, 33, 17, 31, 14, 46, 28, 9, 23, 3, 38, 17, 53, 9, 25, 2, 42, 18, 59, 9, 52, 26, 44, 64, 37, 9, 57, 28, 48, 18, 69, 7, 60, 28, 82, 49, 71, 37, 2, 59, 23, 81, 44
OFFSET
1,2
LINKS
FORMULA
a(n) = A053767(n) mod A002808(n).
EXAMPLE
a(3) = (4 + 6 + 8) mod 8 = 2.
PROG
(PARI) s=0; forcomposite (c=4, 96, s+=c; print1 (s%c", "))
CROSSREFS
Cf. A002808, A053767, A071089 (prime variant), A330579 (positions of zeros).
Sequence in context: A195388 A255324 A328819 * A355289 A245970 A197813
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 18 2019
STATUS
approved