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.

A353092 Inventory sequence counting prime factors. (See comment.)

Original entry on oeis.org

0, 1, 0, 3, 1, 0, 5, 2, 0, 6, 3, 1, 0, 8, 4, 2, 1, 0, 10, 5, 3, 1, 0, 12, 7, 3, 2, 0, 13, 11, 3, 2, 0, 14, 14, 5, 2, 0, 15, 16, 6, 2, 1, 0, 17, 18, 7, 3, 1, 0, 19, 21, 8, 4, 1, 0, 21, 21, 11, 4, 1, 0, 23, 23, 12, 5, 1, 0, 25, 25, 14, 5, 1, 0, 27, 26, 16, 6, 2
Offset: 0

Views

Author

David James Sycamore, Apr 22 2022

Keywords

Comments

0 and 1 are the only nonnegative integers which have no prime factors. The sequence uses this property as follows: Record the number of existing terms which have 0 prime factors, then the number having 1 prime factor, then 2, 3 and so on until reaching a number k such that there are no terms having k prime factors (counted with multiplicity). At this point record a 0 term, and restart the count.

Examples

			a(0) = 0 since at first there are no terms, hence 0 terms with 0 prime factors. The count now restarts because a 0 term has occurred.
a(1) = 1 because now there is one term (a(0)) which has no prime factor.
a(2) = 0 because there is no term with one factor. The count now restarts.
a(3) = 3 because all three prior terms have no prime factor.
a(4) = 1 since a(3) is prime, the first to occur in the sequence.
a(5) = 0 since there are no terms with 2 prime divisors. The count now restarts...
As an irregular table the sequence starts:
   0;
   1, 0;
   3, 1, 0;
   5, 2, 0;
   6, 3, 1, 0;
   8, 4, 2, 1, 0;
  10, 5, 3, 1, 0;
		

Crossrefs

Programs

Extensions

a(50) and beyond from Michael S. Branicky, Apr 22 2022