OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..10000
EXAMPLE
6 --> 6!! = 48; 6 + 4 + 2 = 12; 48/12 = 4.
17 --> 17!! = 34459425; 17 + 15 + 13 + 11 + 9 + 7 + 5 + 3 + 1 = 81; 34459425/81 = 425425.
MAPLE
P:=proc(n) local a, i, j, k, w; for i from 1 by 1 to n do k:=i; w:=i-2; while w>0 do k:=k*w; w:=w-2; od; j:=i; w:=i-2; while w>0 do j:=j+w; w:=w-2; od; a:=k/j; if trunc(a)=a then print(i) fi; od; end: P(100);
# second Maple program:
q:= n-> irem(doublefactorial(n), floor((n+1)^2/4))=0:
select(q, [$1..200])[]; # Alois P. Heinz, Mar 16 2024
MATHEMATICA
r[n_] := If[OddQ[n], Range[1, n, 2], Range[2, n, 2]]; Select[Range[100], Divisible[Times @@ (x = r[#]), Plus @@ x] &] (* Jayanta Basu, Aug 12 2013 *)
Select[Range[100], If[OddQ[#], Divisible[#!!, ((#+1)/2)^2], Divisible[#!!, (#(#+2))/4]]&] (* Harvey P. Dale, Nov 30 2016 *)
CROSSREFS
KEYWORD
easy,nonn,changed
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, May 23 2007
STATUS
approved