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

A115015
Sum_{i=1..n} (gcd(7,i)=1) i.
1
1, 3, 6, 10, 15, 21, 21, 29, 38, 48, 59, 71, 84, 84, 99, 115, 132, 150, 169, 189, 189, 211, 234, 258, 283, 309, 336, 336, 365, 395, 426, 458, 491, 525, 525, 561, 598, 636, 675, 715, 756, 756, 799, 843, 888, 934, 981, 1029, 1029, 1079, 1130, 1182, 1235, 1289, 1344, 1344
OFFSET
1,2
FORMULA
a(-1-n) = a(n). - Michael Somos, Jul 12 2006
PROG
(PARI) a(n)=binomial(n+1, 2)-7*binomial(n\7+1, 2) /* Michael Somos, Jul 12 2006 */
(PARI) a(n)=sum(i=1, n, i*(1==gcd(7, i))) /* Michael Somos, Jul 12 2006 */
CROSSREFS
Cf. A115012.
Sequence in context: A306698 A139131 A130485 * A231676 A376211 A056150
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 24 2006
STATUS
approved