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.

Showing 1-2 of 2 results.

A304817 Number of divisors of n that are either 1 or not a perfect power.

Original entry on oeis.org

1, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 5, 2, 4, 4, 2, 2, 5, 2, 5, 4, 4, 2, 6, 2, 4, 2, 5, 2, 8, 2, 2, 4, 4, 4, 6, 2, 4, 4, 6, 2, 8, 2, 5, 5, 4, 2, 7, 2, 5, 4, 5, 2, 6, 4, 6, 4, 4, 2, 11, 2, 4, 5, 2, 4, 8, 2, 5, 4, 8, 2, 8, 2, 4, 5, 5, 4, 8, 2, 7, 2, 4, 2, 11, 4, 4
Offset: 1

Views

Author

Gus Wiseman, May 18 2018

Keywords

Comments

First differs from A183095 at a(80) = 8, A183095(80) = 7.

Examples

			The a(72) = 8 divisors of 72 that are either 1 or not a perfect power are {1, 2, 3, 6, 12, 18, 24, 72}. Missing are {4, 8, 9, 36}.
		

Crossrefs

Programs

  • Mathematica
    Table[DivisorSum[n,Boole[GCD@@FactorInteger[#][[All,2]]==1]&],{n,100}]
  • PARI
    a(n) = sumdiv(n, d, !ispower(d)); \\ Michel Marcus, May 19 2018

Formula

a(n) = A183096(n) + 1.

A304819 Dirichlet convolution of r with zeta, where r(n) = (-1)^Omega(n) if n is 1 or not a perfect power and r(n) = 0 otherwise.

Original entry on oeis.org

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

Views

Author

Gus Wiseman, May 19 2018

Keywords

Comments

Omega(n) = A001222(n) is the number of prime factors of n counted with multiplicity.

Crossrefs

Positions of nonzero entries appear to be A126706.

Programs

  • Mathematica
    Table[Sum[(-1)^PrimeOmega[d],{d,Select[Divisors[n],GCD@@FactorInteger[#][[All,2]]==1&]}],{n,100}]
  • PARI
    A304819(n) = sumdiv(n,d,if(!ispower(d),(-1)^bigomega(d),0)); \\ Antti Karttunen, Jul 29 2018

Formula

a(n) = Sum_{d|n, d = 1 or not a perfect power} (-1)^Omega(d).
Showing 1-2 of 2 results.