A349262 a(n) is the start of the least run of exactly n consecutive numbers with the same value of A349258.
1, 14, 20, 2, 91, 6850, 2302, 141, 56014, 184171, 2800171, 27805034, 35297611, 8313366182, 1791416073, 3618621410
Offset: 1
Examples
a(2) = 14 since A349258(14) = A349258(15) = 2, but A349258(13) != 2 and A349258(16) != 2.
Programs
-
Mathematica
f[p_, e_] := 2^DigitCount[e, 2, 1] - 1; d[1] = 0; d[n_] := Plus @@ f @@@ FactorInteger[n]; seq[len_, nmax_] := Module[{s = Table[0, {len}], dprev = 0, n = 2, c = 1, k = 1}, s[[1]] = 1; While[k < len && n < nmax, d1 = d[n]; If[d1 == dprev, c++, If[c > 0 && c <= len && s[[c]] == 0, k++; s[[c]] = n - c]; c = 1]; n++; dprev = d1]; TakeWhile[s, # > 0 &]]; seq[8, 10^4]
Comments