cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A284098 a(n) = Sum_{d|n, d == 1 (mod 6)} d.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 14, 8, 1, 1, 1, 1, 20, 1, 8, 1, 1, 1, 26, 14, 1, 8, 1, 1, 32, 1, 1, 1, 8, 1, 38, 20, 14, 1, 1, 8, 44, 1, 1, 1, 1, 1, 57, 26, 1, 14, 1, 1, 56, 8, 20, 1, 1, 1, 62, 32, 8, 1, 14, 1, 68, 1, 1, 8, 1, 1, 74, 38, 26, 20, 8, 14, 80, 1, 1
Offset: 1

Views

Author

Seiichi Manyama, Mar 20 2017

Keywords

Crossrefs

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

Programs

  • Mathematica
    Table[Sum[If[Mod[d, 6] == 1, d, 0], {d, Divisors[n]}], {n, 80}] (* Indranil Ghosh, Mar 21 2017 *)
  • PARI
    for(n=1, 82, print1(sumdiv(n, d, if(Mod(d, 6)==1, d, 0)), ", ")) \\ Indranil Ghosh, Mar 21 2017
    
  • Python
    from sympy import divisors
    def a(n): return sum([d for d in divisors(n) if d%6==1]) # Indranil Ghosh, Mar 21 2017

Formula

G.f.: Sum_{k>=0} (6*k + 1)*x^(6*k+1)/(1 - x^(6*k+1)). - Ilya Gutkovskiy, Mar 21 2017
G.f.: Sum_{n >= 1} x^n*(1 + 5*x^(6*n))/(1 - x^(6*n))^2. - Peter Bala, Dec 19 2021
Sum_{k=1..n} a(k) = c * n^2 + O(n*log(n)), where c = Pi^2/72 = 0.137077... (A086729). - Amiram Eldar, Nov 26 2023