OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..226
FORMULA
From Emeric Deutsch, Aug 04 2005: (Start)
a(n) = product[j, j=n(n-1)/2+1..n(n+1)/2] - sum[j, j=n(n-1)/2+1..n(n+1)/2].
a(n) = [n(n+1)/2]!/[n(n-1)/2]! - n(n^2+1)/2. (End)
EXAMPLE
a(3) = 4*5*6-(4+5+6) = 120-15 = 105.
MAPLE
a:=n->(n*(n+1)/2)!/(n*(n-1)/2)!-n*(n^2+1)/2: seq(a(n), n=1..16); # Emeric Deutsch, Aug 04 2005
MATHEMATICA
Times@@#-Total[#]&/@With[{nn=15}, TakeList[Range[(nn(nn+1))/2], Range[ nn]]] (* Harvey P. Dale, May 06 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 19 2002
EXTENSIONS
More terms from Emeric Deutsch, Aug 04 2005
STATUS
approved