OFFSET
1,1
EXAMPLE
The proper divisors of 25 are (1, 5); 25-1 and 25-5 are both nonsquarefree; so 25 is a term.
MATHEMATICA
q[n_] := ! SquareFreeQ[n] && AllTrue[Divisors[n], # == n || ! SquareFreeQ[n - #] &]; Select[Range[5000], q] (* Amiram Eldar, Jan 22 2023 *)
PROG
(Magma) [n: n in [1..5000] | not IsSquarefree(n) and #[d: d in [1..n-1] | n mod d eq 0 and IsSquarefree(n-d)] eq 0];
(PARI) isok(k) = if (!issquarefree(k), fordiv(k, d, if (issquarefree(k-d), return(0))); return(1)); \\ Michel Marcus, Jan 22 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jan 21 2023
STATUS
approved