A353125 a(1)=2. If a(n) is a novel term, a(n+1) = sopfr(a(n)), else if there are k occurrences of a(j)=a(n), (1<=j<=n), a(n+1)=k*a(n).
2, 2, 4, 4, 8, 6, 5, 5, 10, 7, 7, 14, 9, 6, 12, 7, 21, 10, 20, 9, 18, 8, 16, 8, 24, 9, 27, 9, 36, 10, 30, 10, 40, 11, 11, 22, 13, 13, 26, 15, 8, 32, 10, 50, 12, 24, 48, 11, 33, 14, 28, 11, 44, 15, 30, 60, 12, 36, 72, 12, 48, 96, 13, 39, 16, 32, 64, 12, 60, 120
Offset: 1
Keywords
Examples
a(1)=2, a novel term, so a(2)=sopfr(2)=2. 2 occurs twice and is the only prime p whose multiplicity is not A000607(p), simply because it is the seed term. Since 2 has now appeared twice, a(3)=2*2=4, a novel term, so a(4)=sopfr(4)=4. a(25)=24 (3 occurrences of 8), a(46)=24 (2 occurrences of 12). Subsequently all occurrences of 24 are from condition 1. Therefore M(24) = 2 + A000607(24) = 48.
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
- Michael De Vlieger, Annotated log-log scatterplot of a(n), n = 1..2^12, records in red and likely local minima in blue.
- Michael De Vlieger, Log-log scatterplot of a(n), n = 1..2^16.
Programs
-
Mathematica
Block[{a, c, j, k, nn}, nn = 120; c[] = 0; j = a[1] = 2; c[2]++; Do[If[c[j] == 1, Set[k, Total@ Flatten[ConstantArray[#1, #2] & @@@ FactorInteger[j]]], Set[k, c[j] j]]; j = a[i] = k; c[k]++, {i, 2, nn}]; Array[a, nn] ] (* _Michael De Vlieger, Apr 24 2022 *)
-
PARI
sopfr(n) = (n=factor(n))[, 1]~*n[, 2]; \\ A001414 lista(nn) = {my(v=vector(nn), k); v[1] = 2; for (n=2, nn, if ((k=#select(x->(x==v[n-1]), Vec(v, n-1))) == 1, v[n] = sopfr(v[n-1]), v[n] = k*v[n-1]);); v;} \\ Michel Marcus, May 16 2022
Extensions
More terms from Michael De Vlieger, Apr 24 2022
Comments