OFFSET
1,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
Scott Chapman, Christopher O'Neill, Factoring in the Chicken McNugget monoid, arXiv:1709.01606 [math.AC], 2017.
Anita Wah and Henri Picciotto, Lesson in Algebra: Themes, Tools, Concepts
Eric Weisstein's World of Mathematics, Frobenius Number.
Eric Weisstein's World of Mathematics, McNugget Numbers.
Wikipedia, Coin problem
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
G.f.: -x^2*(x^22-x^21+x^17-x^16+x^15-x^14+x^13-x^12+x^11-x^10+x^9+x^8-2*x^7+x^6+x^5+3*x-6) / (x-1)^2. [Colin Barker, Dec 13 2012]
a(n) = n + 21 for n >= 23. - Robert Israel, May 01 2015
MATHEMATICA
CoefficientList[Series[- x (x^22 - x^21 + x^17 - x^16 + x^15 - x^14 + x^13 - x^12 + x^11 - x^10 + x^9 + x^8 - 2 x^7 + x^6 + x^5 + 3 x - 6)/(1 - x)^2, {x, 0, 70}], x] (* Vincenzo Librandi, Apr 27 2015 *)
PROG
(Haskell)
import Data.List (findIndices)
a214777 n = a214777_list !! (n-1)
a214777_list = findIndices (> 0) a214772_list
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jul 28 2012
STATUS
approved