OFFSET
1,1
COMMENTS
The numbers of terms not exceeding 10^k for k = 2, 3, ..., are 1, 2, 7, 72, 719, 7226, 72238, 722565, 7225651, ... Apparently this sequence has an asymptotic density 0.00007225...
The asymptotic density of this sequence is 1 + Product_{p prime} (1 - 2*(p-1)*Sum_{k>=4, k nonsquarefree} 1/p^(k+1)) - 2*A262276 = 0.000722566657736771344086... (Srichan et al., 2026, a consequence of Theorem 1.1). - Amiram Eldar, Jul 22 2026
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Teerapat Srichan, Nithi Rungtanapirom, and Saeree Wananiyakul, On the distribution of consecutive M-free integers, RAIRO - Theoretical Informatics and Applications, Vol. 60 (2026), Article 22.
EXAMPLE
80 is a term since 80 = 2^4 * 5 and 81 = 3^4 both have a nonsquarefree exponent in their prime factorization.
MATHEMATICA
expSqFQ[n_] := AllTrue[FactorInteger[n][[;; , 2]], SquareFreeQ]; Select[Range[5*10^4], !expSqFQ[#] && !expSqFQ[# + 1] &]
PROG
(PARI) isA130897(k) = #select(x -> !issquarefree(x), factor(k)[, 2]) > 0;
isok(k) = isA130897(k) && isA130897(k+1); \\ Amiram Eldar, Jul 22 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Amiram Eldar, Mar 04 2021
STATUS
approved
