%I #31 Nov 24 2021 03:05:11
%S 0,1,1,0,2,2,2,0,3,2,5,0,4,2,7,1,0,5,3,10,1,1,0,6,5,11,1,2,0,7,6,14,1,
%T 4,0,8,7,15,2,6,0,9,7,17,3,7,0,10,7,21,3,9,0,11,7,24,4,9,0,12,7,25,7,
%U 9,0,13,7,28,8,10,0,14,7,29,8,13,0,15,7,32,8,15,0,16,7,33,8,18,1,4
%N Variation on the Inventory Sequence A342585: record the number of occurrences of previous terms with an incrementing number of given divisors until 0 is recorded, then restart the divisor count from 0. See the Comments.
%C This sequence is a variation of A342585. Instead of iteratively counting the occurrences of each number starting from 0 and then repeating when 0 is recorded, we record the number of previous terms with a given number of divisors, where the number of divisors starts at 0 and increments by one until 0 is recorded, after which the divisor count restarts at 0. It is assumed 0 has zero divisors while the number of divisors for all other numbers is given by A000005. See the Examples below.
%C After 10 million terms, numbers with four, eight and two divisors are the most common, and in general terms with an even number of divisors are more common than those with an odd number. However like A342585 the graph of the sequence shows that the number of terms with a given number of divisors increases somewhat haphazardly and thus it is unclear if terms with four divisors stay the most numerous as n -> infinity.
%C Alternative definition: Record the number of existing terms which are divisible by any m > 0, then record the number of terms having 1 divisor, then 2, 3 and so on until a zero is recorded. Repeat the process indefinitely. - _David James Sycamore_, Sep 25 2021
%H Scott R. Shannon, <a href="/A345730/a345730.png">Colored image of the first 1000 terms</a>. In this and other colored images the colors are graduated across the spectrum to show which line corresponds to the divisor count it indicates. See the colored key at the top-left. Up to 1000 terms the most common divisor count is 2 followed by 4.
%H Scott R. Shannon, <a href="/A345730/a345730_1.png">Colored image of the first 10000 terms</a>. Terms with 4 divisors have now become the most common, passing those with 2.
%H Scott R. Shannon, <a href="/A345730/a345730_5.png">Colored image of the first 100000 terms</a>. Term with 4 and then 2 divisors are still the most common and those with 8 have become the third most common.
%H Scott R. Shannon, <a href="/A345730/a345730_2.png">Colored image of the first 1000000 terms</a>. Terms with 4 divisors are still the most common but those with 8 have passed 2 as the second most common.
%H Scott R. Shannon, <a href="/A345730/a345730_3.png">Colored image of the first 100000000 terms</a>.
%H Scott R. Shannon, <a href="/A345730/a345730_4.png">Image of the first 100000000 terms</a>.
%e The sequence begins 0, 1, 1, 0, 2, 2, 2, 0. After the initial 0, a(1) counts the terms with 0 divisors (i.e., the 0's), which is 1. a(2) then counts the terms with one divisor (i.e., the 1's), which is 1, and a(3) counts the terms with two divisors (i.e., the primes), which is 0. So the divisor count then resets to 0 and a(4) counts the terms with 0 divisors, which is 2. a(5) counts the terms with one divisor, which is 2, and a(6) counts the terms with two divisors, which is 2. There are no terms with three divisors so a(7) = 0 and the divisor count then resets to 0.
%Y Cf. A342585, A000005.
%K nonn
%O 0,5
%A _Scott R. Shannon_, Jun 25 2021