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.

A295662 Number of odd exponents larger than one in the canonical prime factorization of n.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Nov 28 2017

Keywords

Examples

			For n = 24 = 2^3 * 3^1 there are two odd exponents, but only the other is larger than 1, thus a(24) = 1.
For n = 216 = 2^3 * 3^3 there are two odd exponents larger than 1, thus a(216) = 2.
		

Crossrefs

Cf. A295661 (positions of nonzero terms).

Programs

Formula

Additive with a(p) = 0, a(p^e) = A000035(e) if e > 1.
a(1) = 0; and for n > 1, if A067029(n) = 1, a(n) = a(A028234(n)), otherwise A000035(A067029(n)) + a(A028234(n)).
a(n) = A162642(n) - A056169(n).
a(n) <= A295659(n).
a(n) = 0 iff A295663(n) = 0, and when A295663(n) > 0, a(n) <= A295663(n).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Sum_{p prime} 1/(p^2*(p+1)) = 0.122017493776862257491... . - Amiram Eldar, Sep 28 2023