OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A053674(n)^2.
MATHEMATICA
m=0; Table[fla=1; Do[s=GCD[n, k]; s1=GCD[n, k+1]; s2=GCD[n, k+2]; s3=GCD[n, k+3]; s4=GCD[n, k+4]; s5=GCD[n, k+5]; If[Equal[s, 1]&&Equal[s1, 1]&&Equal[s2, 1]&&Equal[s3, 1]&& Equal[s4, 1]&&Equal[s5, 1]&&!PrimeQ[n]&&!Equal[n, 1]&&Equal[fla, 1], m=m+1; Print[n]; fla=0], {n, 1, 1000}], {k, 1, 256}]
scn[n_]:=Module[{k=4, c=n+Range[0, 5]}, While[PrimeQ[k]||!AllTrue[c, CoprimeQ[ k, #]&], k++]; k]; Array[scn, 60] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 30 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 26 2003
STATUS
approved