OFFSET
1,1
COMMENTS
Definition variant is: numbers k such that mu(d+1) is zero for all divisors d of k except d = 1, where mu is the Möbius function and k is not prime. The primes p where p+1 is not squarefree are at A049098.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10011
EXAMPLE
For k=49 the divisors are 1,7,49. Increment to get 2,8,50, with mu(8)=0 and mu(50)=0, hence k=49 is in the sequence.
MAPLE
with(NumberTheory): isA := proc(n) local t; t := Divisors(n) minus {1};
nops(t) > 1 and andseq(Möbius(d + 1) = 0, d in t) end:
select(isA, [seq(1..1210)]); # Peter Luschny, Jun 12 2026
MATHEMATICA
q[k_] := CompositeQ[k] && AllTrue[Divisors[k], # == 1 || !SquareFreeQ[# + 1] &]; Select[Range[1300], q] (* Amiram Eldar, Jun 11 2026 *)
PROG
(PARI) isok(k) = if(isprime(k) || k == 1, return(0)); fordiv(k, d, if ((d!=1) && issquarefree(d+1), return(0))); 1; \\ Michel Marcus, Jun 11 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Marko Riedel, Jun 11 2026
STATUS
approved
