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!)
A214772 Number of partitions of n into parts 6, 9 or 20. 3

%I #10 Jul 13 2013 12:04:29

%S 1,0,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,2,0,1,1,0,0,2,0,1,2,0,1,2,0,1,2,

%T 0,1,3,0,2,2,1,1,3,0,2,3,1,2,3,1,2,3,1,2,4,1,3,3,2,2,5,1,3,4,2,3,5,2,

%U 3,5,2,3,6,2,4,5,3,3,7,2,5,6,3,4,7,3

%N Number of partitions of n into parts 6, 9 or 20.

%C a(A065003(n)) = 0; a(A214777(n)) > 0.

%H Reinhard Zumkeller, <a href="/A214772/b214772.txt">Table of n, a(n) for n = 0..1000</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/McNuggetNumber.html">McNugget Numbers</a>.

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Coin_problem">Coin problem</a>

%F G.f. 1/((1-x^6)*(1-x^9)*(1-x^20)). - _R. J. Mathar_, Jul 30 2012

%e a(10) = 0, cf. A065003(8) = 10;

%e a(20) = #{20} = 1;

%e a(30) = #{6+6+6+6+6, 6+6+9+9} = 2;

%e a(40) = #{20+20} = 1;

%e a(50) = #{5*6+20, 6+6+9+9+20} = 2;

%e a(60) = #{10*6, 7*6+9+9, 4*6+4*9, 6+6*9, 20+20+20} = 5;

%e a(70) = #{5*6+20+20, 6+6+9+9+20+20} = 2

%e a(80) = #{10*6+20], 7*6+9+9+20, 4*6+4*9+20, 6+6*99+20, 4*20} = 5;

%e a(90) = #{15*6, 12*6+9+9, 9*6+4*9, 6*6+6*99, 5*6+3*20, 3*6+8*9, 6+6+9+9+3*20, 10*9} = 8;

%e a(100) = #{10*6+2*20, 7*6+9+9+2*20, 4*6+4*9+2*20, 6+6*9+2*20, 5*20} = 5.

%o (Haskell)

%o a214772 = p [6, 9, 20] where

%o p _ 0 = 1

%o p [] _ = 0

%o p ks'@(k:ks) m = if m < k then 0 else p ks' (m - k) + p ks m

%K nonn,easy

%O 0,19

%A _Reinhard Zumkeller_, Jul 28 2012

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 25 09:28 EDT 2024. Contains 371967 sequences. (Running on oeis4.)