A330253 A variation of A330252: the same rules for a(n) apply with an additional rule a(n) = n if a(n-1) = 0. This sequence lists the n values where a(n) = 0.
3292, 4191, 4199, 4408, 4417, 4440, 4505, 4619, 4635, 4779, 4859, 4897, 5225, 5321, 5345, 5367, 5374, 5635, 6005, 6185, 6191, 6514, 6538, 6546, 6647, 6778, 6822, 6938, 6945, 7169, 7176, 7183, 7293, 7367, 7381, 7388, 7405, 7429, 7447, 7992, 8000, 8008, 8033, 8051, 8159, 8218, 8404
Offset: 1
Keywords
Examples
a(3292) = 0. See A330252.
Programs
-
Mathematica
f[1] = 1; f[n_] := f[n] = If[f[n - 1] == 0, n, If[PrimeQ[n], n*f[n - 1], Floor[f[n - 1]/FactorInteger[n][[1, 1]]]]]; seq = {}; Do[If[f[n] == 0, AppendTo[seq, n]], {n, 1, 10^4}]; seq (* Amiram Eldar, Dec 07 2019 *)
Comments