%I #10 Dec 19 2019 09:47:32
%S 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,
%T 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,
%U 9,57,28,48,18,69,7,60,28,82,49,71,37,2,59,23,81,44
%N a(n) is the remainder when the sum of the first n composite numbers is divided by the n-th composite number.
%H Rémy Sigrist, <a href="/A330578/b330578.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) = A053767(n) mod A002808(n).
%e a(3) = (4 + 6 + 8) mod 8 = 2.
%o (PARI) s=0; forcomposite (c=4, 96, s+=c; print1 (s%c", "))
%Y Cf. A002808, A053767, A071089 (prime variant), A330579 (positions of zeros).
%K nonn
%O 1,2
%A _Rémy Sigrist_, Dec 18 2019
|