OFFSET
0,4
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = gcd(A056040(n), 3^n).
a(n) <= n. - Charles R Greathouse IV, Jun 30 2011
From Johannes W. Meijer, Jun 30 2011: (Start)
a(3*n) = a(3*n+1) = a(3*n+2) = A010684(n)*a(n) for n > 1 with a(0) = a(1) = a(2) = 1.
a(9*n+3) = a(9*n+4) = a(9*n+5) = 3*a(n).
a(9*n) = a(9*n+1) = a(9*n+2) = a(9*n+6) = a(9*n+7) = a(9*n+8) = A010690(n)*a(n). (End)
MATHEMATICA
sf[n_] := With[{f = Floor[n/2]}, Pochhammer[f+1, n-f]/f!]; a[n_] := GCD[sf[n], 3^n]; Table[a[n], {n, 0, 80}] (* Jean-François Alcover, Jul 29 2013 *)
PROG
(PARI) a(n)=gcd(n!/(n\2)!^2, 3^n) \\ Charles R Greathouse IV, Jun 30 2011
(PARI) a(n)=my(s); while(n\=3, s+=n%2); 3^s \\ Charles R Greathouse IV, Jun 30 2011
CROSSREFS
AUTHOR
Peter Luschny, Jun 30 2011
STATUS
approved