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.

A362421 Number of nonisomorphic vector spaces consisting of n elements.

Original entry on oeis.org

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

Views

Author

Philip Turecek, Apr 19 2023

Keywords

Comments

If n is a prime power p^k, then a vector space consisting of n elements has the form (F_(p^d))^(k/d) where d is a divisor of k.

Examples

			a(16) = 3 because 16=2^4 and 4 has 3 divisors.
		

Programs

  • Sage
    def f(a):
        if not a.is_prime_power(): return 0
        else: return sigma(factor(a)[0][1],0)

Formula

a(n) = a(p^k) = sigma_0(k) if n = p^k is a prime power, a(n) = 0 otherwise.