A300059 Numbers k such that k and k+1 are terms of A279767.
17, 54, 247, 339, 347, 721, 849, 948, 1060, 1147, 1203, 1204, 1240, 1276, 1313, 1314, 1666, 1671, 2147, 2715, 2947, 2948, 3257, 3580, 3649, 3650, 4043, 4264, 4626, 4841, 5091, 5092, 5450, 5740, 5764, 6243, 6354, 6355, 6564, 6639, 6850, 6962, 7361, 7403, 7756, 7771, 7849, 7939
Offset: 1
Keywords
Examples
17 is in the list because 17 and 19 have the same prime signature {1}, and 18 and 20 have the same prime signature {1,2}. Note, order doesn't matter.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
- Wikipedia, Prime signature.
- Index to sequences related to prime signature.
Crossrefs
Cf. A279767.
Programs
-
Mathematica
With[{s = Array[Sort[FactorInteger[#][[All, -1]]] &, 10^4]}, Function[t, t[[Flatten@ Position[Differences@ t, 1] ]] ]@ Select[Range[Length@ s - 2], s[[#]] == s[[# + 2]] &]] (* Michael De Vlieger, Feb 26 2018 *)
-
PARI
isok1(n) = vecsort(factor(n)[,2]) == vecsort(factor(n+2)[,2]); isok(n) = isok1(n) && isok1(n+1); \\ Michel Marcus, Feb 25 2018
Extensions
More terms from Michel Marcus, Feb 25 2018
Comments