OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
From Robert Israel, Dec 08 2022: (Start)
If n is odd, a(n) = A070939(n).
If n > 2 is even, a(n) = 1 + A056171(n). (End)
MAPLE
f:= proc(n) local t;
if n::odd then ilog2(n)+1
else 1+numtheory:-pi(n) - numtheory:-pi(n/2)
fi
end proc:
f(2):= 1:
map(f, [$1..100]); # Robert Israel, Dec 08 2022
MATHEMATICA
a[n_]:=Module[{}, co=0; For[i=1, i<n+1, i++, If[GCD[n!!, i]==1, co++ ]]; co]; Table[a[n], {n, 1, 80}] (* Stefan Steinerberger, Jun 05 2007 *)
Table[Total[Boole[CoprimeQ[n!!, Range[n]]]], {n, 80}] (* Harvey P. Dale, Dec 12 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 03 2007
EXTENSIONS
More terms from Stefan Steinerberger, Jun 05 2007
STATUS
approved