OFFSET
1,1
COMMENTS
First differs from A176313 at n = 14.
The numbers of terms that do not exceed 10^k, for k = 1, 2, ..., are 0, 0, 5, 43, 404, 4086, 40839, 408366, 4083039, 40830831, ... . Apparently, the asymptotic density of this sequence exists and equals 0.004083... .
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
135 is a term since 135 = 3^3 * 5 and 136 = 2^3 * 17 are both nonsquarefree numbers, and the number of divisors of 135 and 136 are both 8 = 2^3.
343 is a term since 343 = 7^3 and 344 = 2^3 * 43 are both nonsquarefree numbers, the number of divisors of 343 is 4 = 2^2, and the number of divisors of 344 is 8 = 2^3.
MATHEMATICA
pow2Q[n_] := n == 2^IntegerExponent[n, 2]; q[n_] := q[n] = Module[{e = FactorInteger[n][[;; , 2]]}, Max[e] > 1 && pow2Q[Times @@ (e+1)]]; Select[Range[500], q[#] && q[# + 1] &]
PROG
(PARI) is(n) = {my(f = factor(n), d = numdiv(f)); n > 1 && vecmax(f[, 2]) > 1 && d >> valuation(d, 2) == 1; }
lista(kmax) = {my(is1 = is(1), is2); for(k = 2, kmax, is2 = is(k); if(is1 && is2, print1(k-1, ", ")); is1 = is2); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, May 10 2024
STATUS
approved