OFFSET
1,1
COMMENTS
Numbers k such that k and k+1 are both terms of A365866.
The numbers of terms not exceeding 10^k, for k = 3, 4, ..., are , 12, 110, 1119, 11167, 111662, 1116693, 11166978, 111669826, 1116697990, ... . Apparently, the asymptotic density of this sequence exists and equals 0.0111669... .
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
80 is a term since 2 is the least prime factor of 80 and 80 is divisible by 2^3 = 8, and 3 is the least prime factor of 81 and 81 is divisible by 3^3 = 27.
MATHEMATICA
q[n_] := FactorInteger[n][[1, -1]] >= 3; consec[kmax_] := Module[{m = 1, c = Table[False, {2}], s = {}}, Do[c = Join[Rest[c], {q[k]}]; If[And @@ c, AppendTo[s, k - 1]], {k, 1, kmax}]; s]; consec[5000]
PROG
(PARI) lista(kmax) = {my(q1 = 0, q2); for(k = 2, kmax, q2 = factor(k)[1, 2] >= 3; if(q1 && q2, print1(k-1, ", ")); q1 = q2); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Sep 21 2023
STATUS
approved