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.

A320005 Number of proper divisors of n of the form 6*k + 5.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 2, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 2, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 2, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 2
Offset: 1

Views

Author

Antti Karttunen, Oct 03 2018

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := DivisorSum[n, 1 &, # < n && Mod[#, 6] == 5 &]; Array[a, 100] (* Amiram Eldar, Nov 25 2023 *)
  • PARI
    A320005(n) = if(!n,n,sumdiv(n, d, (d
    				

Formula

a(n) = A319995(n) - [+5 = n (mod 6)], where [ ] is the Iverson bracket, giving 1 only when n = -1 mod 6, and 0 otherwise.
a(n) = A320015(n) - A320001(n).
a(n) = A007814(A319992(n)).
G.f.: Sum_{k>=1} x^(12*k-2) / (1 - x^(6*k-1)). - Ilya Gutkovskiy, Apr 14 2021
Sum_{k=1..n} a(k) = n*log(n)/6 + c*n + O(n^(1/3)*log(n)), where c = gamma(5,6) - (2 - gamma)/6 = -0.387302..., gamma(5,6) = -(psi(5/6) + log(6))/6 is a generalized Euler constant, and gamma is Euler's constant (A001620) (Smith and Subbarao, 1981). - Amiram Eldar, Nov 25 2023