The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A295165 Numbers n such that !n and n!! (A000166(n) and A006882(n)) are coprime. 1
0, 1, 2, 3, 4, 5, 6, 8, 9, 12, 14, 17, 18, 20, 24, 30, 32, 33, 44, 48, 54, 62, 65, 68, 72, 74, 80, 84, 98, 102, 110, 114, 128, 140, 150, 158, 168, 180, 182, 198, 200, 212, 224, 228, 230, 234, 252, 257, 264, 270, 272, 278, 282, 308, 312, 314, 318, 332, 348, 354, 374, 380, 384, 402, 410, 420, 422, 432 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Odd n is in the sequence iff !n is not divisible by any odd primes < n.
Even n is in the sequence iff !n is not divisible by any odd primes < n/2.
All odd terms are in A083318, all even terms > 2 are in A008864, but both of these are strict inclusions.
Odd terms include 1,3,5,9,17,33,65,257,513,32769.
LINKS
EXAMPLE
!5 = 44 and 5!! = 15 are coprime so 5 is in the sequence.
MAPLE
sf:= proc(n) option remember; n*procname(n-1)+(-1)^n end proc:
sf(0):= 1:
select(n -> igcd(sf(n), doublefactorial(n))=1, [$0..1000]);
MATHEMATICA
Select[Range[0, 1000], CoprimeQ[Subfactorial[#], #!!]&] (* Jean-François Alcover, Oct 16 2020 *)
CROSSREFS
Sequence in context: A052063 A129525 A351987 * A258023 A190232 A084693
KEYWORD
nonn
AUTHOR
Robert Israel, Nov 16 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 02:15 EDT 2024. Contains 372536 sequences. (Running on oeis4.)