Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A060945
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A060945 Number of ordered partitions of n into 1's, 2's and 4's. +0
7
1, 2, 3, 6, 10, 18, 31, 55, 96, 169, 296, 520, 912, 1601, 2809, 4930, 8651, 15182, 26642, 46754, 82047, 143983, 252672, 443409, 778128, 1365520 (list; graph; listen)
OFFSET

1,2

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,500

FORMULA

a(n) = a(n-1)+a(n-2)+a(n-4). G.f.: (x+x^2+x^4)/(1-x-x^2-x^4)

PROGRAM

(PARI) { for (n=1, 500, if (n>4, a=a1 + a2 + a4; a4=a3; a3=a2; a2=a1; a1=a, if (n==1, a=a4=1, if (n==2, a=a3=2, if (n==3, a=a2=3, a=a1=6)))); write("b060945.txt", n, " ", a); ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jul 15 2009]

CROSSREFS

Cf. A000045 (1's and 2's only), A023359 (all powers of 2)

Apart from n=0 term, same as unsigned version of A077930.

Sequence in context: A066067 A121364 A102702 this_sequence A077930 A023359 A082482

Adjacent sequences: A060942 A060943 A060944 this_sequence A060946 A060947 A060948

KEYWORD

nonn

AUTHOR

Len Smiley (smiley(AT)math.uaa.alaska.edu), May 07 2001

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 December 17 19:39 EST 2009. Contains 170821 sequences.


AT&T Labs Research