OFFSET
0,2
EXAMPLE
MATHEMATICA
dufQ[n_] := CompositeQ[n] && CoprimeQ[n, DivisorSigma[1, n]]; f[n_] := Sum[If[dufQ[k] && dufQ[n - k], 1, 0], {k, 1, Floor[n/2]}]; seq[len_, nmax_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < nmax, i = f[n] + 1; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[54, 2000] (* Amiram Eldar, Jul 19 2024 *)
PROG
(Magma) f:=func<n|n ne 1 and not IsPrime(n) and Gcd(n, DivisorSigma(1, n)) eq 1>; b:=[n: n in [1..2000] |f(n)]; a:=[]; for n in [0..60] do k:=1; while #RestrictedPartitions(k, 2, Set(b)) ne n do k:=k+1; end while; Append(~a, k); end for; a;
CROSSREFS
KEYWORD
nonn
AUTHOR
Marius A. Burtea, Jul 12 2024
STATUS
approved