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.

A293451 Number of proper divisors of n of the form 4k+1.

Original entry on oeis.org

0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 2, 1, 1, 1, 2, 2, 2, 1, 1, 2, 2, 1, 2, 1, 1, 3, 1, 1, 1, 1, 3, 2, 2, 1, 2, 2, 1, 1, 2, 1, 2, 1, 1, 3, 1, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 1, 1, 2, 1, 2, 2, 2, 1, 2, 3, 1, 2, 1, 1, 4, 2, 1, 1, 1, 2, 1, 1, 2, 3, 3, 1, 2, 1, 2, 3
Offset: 1

Views

Author

Antti Karttunen, Oct 19 2017

Keywords

Crossrefs

Programs

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

Formula

a(n) = Sum_{d|n, d
a(n) = A091954(n) - A293513(n).
a(n) = A001826(n) - A121262(n-1).
G.f.: Sum_{k>=1} x^(8*k-6) / (1 - x^(4*k-3)). - Ilya Gutkovskiy, Apr 14 2021
Sum_{k=1..n} a(k) = n*log(n)/4 + c*n + O(n^(1/3)*log(n)), where c = gamma(1,4) - (2 - gamma)/4 = A256778 - (2 - A001620)/4 = 0.354593... (Smith and Subbarao, 1981). - Amiram Eldar, Nov 25 2023