OFFSET
8,2
COMMENTS
LINKS
Alexandre Laugier and Manjil Saikia, A characterization of a prime p from the binomial coefficient binomial(n,p), arXiv:1209.2373 [math.NT], The Mathematics Student, Vol. 83 (1-4), pp 1-7, 2014
M. P. Saikia and J. Vogrinc, A simple number theoretic result, arXiv:1207.6707v1 [math.NT]
Index entries for linear recurrences with constant coefficients, signature (7, -21, 35, -35, 21, -7, 2, -7, 21, -35, 35, -21, 7, -1).
FORMULA
O.g.f.: sum {n>=0} a(n)*x^n = x^8*(1 - 2*x + 3*x^2 - 2*x^3 + x^4)/((1-x^7)*(1-x)^7) = x^8*(1 + 5*x + 17*x^2 + 47*x^3 + ...). The numerator polynomial 1 - 2*x + 3*x^2 - 2*x^3 + x^4 is the negative of the row generating polynomial for row 7 of A178904.
MATHEMATICA
Table[(Binomial[n, 7]-Floor[n/7])/7, {n, 8, 50}] (* or *) LinearRecurrence[ {7, -21, 35, -35, 21, -7, 2, -7, 21, -35, 35, -21, 7, -1}, {1, 5, 17, 47, 113, 245, 490, 919, 1634, 2778, 4546, 7198, 11074, 16611}, 40] (* Harvey P. Dale, Dec 23 2014 *)
PROG
(PARI) a(n) = (binomial(n, 7) - n\7) / 7; \\ Michel Marcus, Jan 23 2014
(Magma) [(Binomial(n, 7)-Floor(n/7))/7: n in [8..50]]; // Vincenzo Librandi, Jun 23 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Bala, Aug 01 2012
STATUS
approved