Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A000008
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A000008 Number of ways of making change for n cents using coins of 1, 2, 5, 10 cents.
(Formerly M0280 N0099)
+0
10
1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 11, 12, 15, 16, 19, 22, 25, 28, 31, 34, 40, 43, 49, 52, 58, 64, 70, 76, 82, 88, 98, 104, 114, 120, 130, 140, 150, 160, 170, 180, 195, 205, 220, 230, 245, 260, 275, 290, 305, 320, 341, 356, 377, 392, 413, 434, 455, 476, 497, 518, 546 (list; graph; listen)
OFFSET

0,3

COMMENT

There is a unique solution to this puzzle: "There are a prime number of ways that I can make change for n cents using coins of 1, 2, 5, 10 cents; but a semiprime number of ways that I can make change for n-1 cents and for n+1 cents." There is a unique solution to this related puzzle: "There are a prime number of ways that I can make change for n cents using coins of 1, 2, 5, 10 cents; but a 3-almost prime number of ways that I can make change for n-1 cents and for n+1 cents." - Jonathan Vos Post (jvospost2(AT)yahoo.com), Aug 26 2005

REFERENCES

X. Gourdon and B. Salvy, Effective asymptotics of linear recurrences with rational coefficients, Discrete Math., 153 (1996), 145-163.

R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 316.

G. P\'{o}lya and G. Szeg\"{o}, Problems and Theorems in Analysis, Springer-Verlag, NY, 2 vols., 1972, Vol. 1, p. 1.

J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 152.

LINKS

T. D. Noe, Table of n, a(n) for n = 0..1000

H. Bottomley, Initial terms of A000008, A001301, A001302, A001312, A001313

INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 174

Index entries for sequences related to making change.

FORMULA

G.f.: 1/((1-x)(1-x^2)(1-x^5)(1-x^10)). a(n)=a(n-2)+a(n-5)-a(n-7)+a(n-10)-a(n-12)-a(n-15)+a(n-17)+1. a(-18-n)=-a(n).

MAPLE

1/((1-x)*(1-x^2)*(1-x^5)*(1-x^10));

MATHEMATICA

a[n_] := SeriesTerm[1/((1 - x)(1 - x^2)(1 - x^5)(1 - x^10)), {x, 0, n}]

a[n_, d_] := SeriesTerm[1/(Times@@Map[(1-x^#)&, d]), {x, 0, n}] (general case for any set of denominations represented as a list of coin values in cents).

PROGRAM

(PARI) a(n)=if(n<-17, -a(-18-n), if(n<0, 0, polcoeff(1/((1-x)*(1-x^2)*(1-x^5)*(1-x^10))+x*O(x^n), n)))

CROSSREFS

a(n)-a(n-1)=A025810(n).

Adjacent sequences: A000005 A000006 A000007 this_sequence A000009 A000010 A000011

Sequence in context: A029016 A121385 A029015 this_sequence A001312 A001301 A001302

KEYWORD

nonn,easy,nice

AUTHOR

njas

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified May 15 13:16 EDT 2008. Contains 139641 sequences.


AT&T Labs Research