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.

A193334 Number of even divisors of sigma(n).

Original entry on oeis.org

0, 0, 2, 0, 2, 4, 3, 0, 0, 3, 4, 4, 2, 6, 6, 0, 3, 0, 4, 4, 5, 6, 6, 8, 0, 4, 6, 6, 4, 9, 5, 0, 8, 4, 8, 0, 2, 8, 6, 6, 4, 10, 4, 8, 4, 9, 8, 4, 0, 0, 9, 3, 4, 12, 9, 12, 8, 6, 8, 12, 2, 10, 6, 0, 8, 12, 4, 6, 10, 12, 9, 0, 2, 4, 4, 8
Offset: 1

Views

Author

Michel Lagneau, Jul 23 2011

Keywords

Comments

sigma(n) = sum of divisors of n, A000203.

Examples

			a(14) = 6 because sigma(14) = 24 and the 6 even divisors are {2, 4, 6, 8, 12, 24}.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Block[{d = Divisors[DivisorSigma[1,n]]}, Count[EvenQ[d], True]]; Table[a[n], {n, 80}]
  • PARI
    a(n)=n=sigma(n);if(n%2,0,numdiv(n/2)) \\ Charles R Greathouse IV, Jul 30 2011

Formula

a(n) = A183063(A000203(n)). - Amiram Eldar, Mar 22 2024