A376511 a(1) = 2. For n > 1, if a(n-1) is a novel term, a(n)=A001414(a(n-1)), else if there are k (>1) occurrences of a(j) = a(n-1) (1<=j<=n-1), a(n) is the smallest novel m such that A001414(m) = k*a(n-1).
2, 2, 4, 4, 15, 8, 6, 5, 5, 21, 10, 7, 7, 33, 14, 9, 6, 35, 12, 7, 38, 21, 185, 42, 12, 95, 24, 9, 65, 18, 8, 39, 16, 8, 114, 24, 215, 48, 11, 11, 57, 22, 13, 13, 69, 26, 15, 161, 30, 10, 51, 20, 9, 92, 27, 9, 155, 36, 10, 209, 30, 371, 60, 12, 186, 36, 335, 72
Offset: 1
Keywords
Examples
a(1) = 2 is given, then since 2 is a novel term, a(2) = A001414(2) = 2. 2 has now been seen k = 2 times so a(3) is the smallest novel m such that A001414(m) = 2*2 = 4, so a(3) = 4, a novel term meaning that a(4) = A001414(4) = 4. now 4 has been seen twice so a(5) is the smallest novel m such that A001414(m) = 2*4 = 8, so a(5) = 15.
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..5000
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..5000, showing primes in red, perfect powers of primes in gold, squarefree composites in green, and numbers neither squarefree nor prime powers in blue and purple, with purple additionally representing powerful numbers that are not prime powers. Primes first appear in pairs.
Programs
-
Mathematica
nn = 120; c[_] := 0; j = a[1] = 2; u = 2; f[x_] := f[x] = Total@ Flatten[ConstantArray[#1, #2] & @@@ FactorInteger[x]]; s = PositionIndex@ Array[f, 2^16]; Do[If[Set[m, c[j]] == 0, Set[k, f[j]], Set[{k, t, w}, {1, #, Length[#]}] &@Lookup[s, (m + 1)*j]; While[c[t[[k]]] > 0, k++]; k = t[[k]] ]; c[j]++; Set[{a[i], j}, {k, k}], {i, 2, nn}]; Array[a, nn] (* Michael De Vlieger, Sep 27 2024 *)
Formula
If a(k) = first occasion of prime p, a(k+1) = p, a(k+2) = A056240(2*p), a(k+3) = 2*p.
Comments