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!)
A140682 Triangle T(n,k) = gcd(n,k)-binomial(n,k), 0<=k<=n. 1
-1, 0, 0, 1, -1, 1, 2, -2, -2, 2, 3, -3, -4, -3, 3, 4, -4, -9, -9, -4, 4, 5, -5, -13, -17, -13, -5, 5, 6, -6, -20, -34, -34, -20, -6, 6, 7, -7, -26, -55, -66, -55, -26, -7, 7, 8, -8, -35, -81, -125, -125, -81, -35, -8, 8, 9, -9, -43, -119, -208, -247, -208, -119, -43, -9, 9 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,7
COMMENTS
Row sums are -1, 0, 1, 0, -4, -18, -43, -108, -228, -482, -987...
LINKS
FORMULA
T(n,k) = T(n,n-k).
T(n,k) = A109004(n,k)-A007318(n,k). - R. J. Mathar, Jan 17 2013
EXAMPLE
-1;
0, 0;
1, -1, 1;
2, -2, -2, 2;
3, -3, -4, -3, 3;
4, -4, -9, -9, -4, 4;
5, -5, -13, -17, -13, -5, 5;
6, -6, -20, -34, -34, -20, -6, 6;
7, -7, -26, -55, -66, -55, -26, -7, 7;
8, -8, -35, -81, -125, -125, -81, -35, -8, 8;
9, -9, -43, -119, -208, -247, -208, -119, -43, -9, 9;
MAPLE
A140682 := proc(n, k)
igcd(n, k)-binomial(n, k) ;
end proc: # R. J. Mathar, Jan 17 2013
MATHEMATICA
Clear[p, x, n] p[x_, n_] = Sum[(GCD[n, i] - Binomial[n, i])*x^i, {i, 0, n}]; Table[ExpandAll[p[x, n]], {n, 1, 10}]; a = Table[CoefficientList[p[x, n], x], {n, 1, 10}]; Flatten[a]
CROSSREFS
Cf. A109004.
Sequence in context: A218123 A288157 A333701 * A049317 A134544 A230514
KEYWORD
tabl,easy,sign
AUTHOR
EXTENSIONS
New name, editing, and missing leading terms added. - R. J. Mathar, Jan 17 2013
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 April 23 02:53 EDT 2024. Contains 371906 sequences. (Running on oeis4.)