login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A355476 a(1)=1. For a(n) a novel term, a(n+1) = A000005(a(n)). For a(n) seen already k > 1 times, a(n+1) = k*a(n). 1
1, 1, 2, 2, 4, 3, 2, 6, 4, 8, 4, 12, 6, 12, 24, 8, 16, 5, 2, 8, 24, 48, 10, 4, 16, 32, 6, 18, 6, 24, 72, 12, 36, 9, 3, 6, 30, 8, 32, 64, 7, 2, 10, 20, 6, 36, 72, 144, 15, 4, 20, 40, 8, 40, 80, 10, 30, 60, 12, 48, 96, 12, 60, 120, 16, 48, 144, 288, 18, 36, 108, 12, 72, 216, 16 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
1 is the only number to appear twice, since it has just one divisor.
Consequently 2 is the only prime whose first occurrence is a multiple of prior terms (2*1), all other occurrences of 2 being subsequent to a novel prime (including itself).
All composite numbers appear as multiples of prior terms, and also as the number of divisors of novel terms, whereas all odd prime terms are the result of novel (square) terms whose number of divisors is prime (A009087).
Conjectures: (i) Every integer > 1 appears infinitely many times. (ii) The first occurrences of primes appear in natural order, starting with 2 as described above, and continuing with odd primes a(n) = p, following a(n-1) = 2^(p-1).
LINKS
Michael De Vlieger, Annotated log-log scatterplot of a(n), n = 1..2^16, showing records in red and highlighting terms with predecessors that have appeared for the first time in green.
EXAMPLE
a(1)=1 a novel term, so a(2)=d(1)=1, then a(3)=2+1=2.
a(15)=24, a novel term, therefore a(16)=d(24)=8, and since this is the second occurrence of 8 (a(10=8), a(17)=2*8=16. Since 16 is a novel term with 5 divisors, a(18)=5, and so on.
MATHEMATICA
nn = 120; c[_] = 0; a[1] = c[1] = 1; Do[If[c[#] == 1, Set[k, DivisorSigma[0, #]]; c[k]++, Set[k, c[#]*#]; c[k]++] &@ a[n - 1]; a[n] = k, {n, 2, nn}]; Array[a, nn] (* Michael De Vlieger, Jul 05 2022 *)
PROG
(PARI) lista(nn) = my(va = vector(nn)); va[1] = 1; for (n=2, nn, my(nb = #select(x->(x==va[n-1]), va)); if (nb == 1, va[n] = numdiv(va[n-1]), va[n] = nb*va[n-1]); ); va; \\ Michel Marcus, Jul 05 2022
(Python)
from sympy import divisor_count
from collections import Counter
from itertools import count, islice
def agen():
an, c = 1, Counter()
for n in count(2):
yield an; c[an] += 1
an = divisor_count(an) if c[an] == 1 else c[an]*an
print(list(islice(agen(), 75))) # Michael S. Branicky, Jul 06 2022
CROSSREFS
Sequence in context: A112153 A112154 A112155 * A328932 A341148 A209749
KEYWORD
nonn,changed
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Jul 05 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 3 19:10 EST 2023. Contains 367540 sequences. (Running on oeis4.)