login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A284099 a(n) = Sum_{d|n, d == 1 (mod 7)} d. 15

%I #30 Nov 26 2023 06:34:40

%S 1,1,1,1,1,1,1,9,1,1,1,1,1,1,16,9,1,1,1,1,1,23,1,9,1,1,1,1,30,16,1,9,

%T 1,1,1,37,1,1,1,9,1,1,44,23,16,1,1,9,1,51,1,1,1,1,1,9,58,30,1,16,1,1,

%U 1,73,1,23,1,1,1,1,72,45,1,1,16,1,1,79,1,9,1,1

%N a(n) = Sum_{d|n, d == 1 (mod 7)} d.

%H Seiichi Manyama, <a href="/A284099/b284099.txt">Table of n, a(n) for n = 1..10000</a>

%F G.f.: Sum_{k>=0} (7*k + 1)*x^(7*k+1)/(1 - x^(7*k+1)). - _Ilya Gutkovskiy_, Mar 21 2017

%F G.f.: Sum_{n >= 1} x^n*(1 + 6*x^(7*n))/(1 - x^(7*n))^2. - _Peter Bala_, Dec 19 2021

%F Sum_{k=1..n} a(k) = c * n^2 + O(n*log(n)), where c = Pi^2/84 = 0.117495... . - _Amiram Eldar_, Nov 26 2023

%t Table[Sum[If[Mod[d, 7] == 1, d, 0], {d, Divisors[n]}], {n, 82}] (* _Indranil Ghosh_, Mar 21 2017 *)

%t Table[DivisorSum[n,#&,Mod[#,7]==1&],{n,90}] (* _Harvey P. Dale_, Aug 08 2021 *)

%o (PARI) for(n=1, 82, print1(sumdiv(n, d, if(Mod(d, 7)==1, d, 0)), ", ")) \\ _Indranil Ghosh_, Mar 21 2017

%o (Python)

%o from sympy import divisors

%o def a(n): return sum([d for d in divisors(n) if d%7==1]) # _Indranil Ghosh_, Mar 21 2017

%Y Cf. A109703.

%Y Cf. Sum_{d|n, d == 1 (mod k)} d: A000593 (k=2), A078181 (k=3), A050449 (k=4), A284097 (k=5), A284098 (k=6), this sequence (k=7), A284100 (k=8).

%Y Cf. Sum_{d|n, d == k (mod 7)} d: this sequence (k=1), A284443 (k=2), A284444 (k=3), A284445 (k=4), A284446 (k=5), A284105 (k=6).

%K nonn,easy

%O 1,8

%A _Seiichi Manyama_, Mar 20 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 12 10:56 EDT 2024. Contains 375092 sequences. (Running on oeis4.)