Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A054390
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A054390 Number of ways of writing n as a sum of powers of 3, each power being used at most three times. +0
2
1, 1, 1, 2, 1, 1, 2, 1, 1, 3, 2, 2, 3, 1, 1, 2, 1, 1, 3, 2, 2, 3, 1, 1, 2, 1, 1, 4, 3, 3, 5, 2, 2, 4, 2, 2, 5, 3, 3, 4, 1, 1, 2, 1, 1, 3, 2, 2, 3, 1, 1, 2, 1, 1, 4, 3, 3, 5, 2, 2, 4, 2, 2, 5, 3, 3, 4, 1, 1, 2, 1, 1, 3, 2, 2, 3, 1, 1, 2, 1, 1, 5, 4, 4, 7, 3, 3, 6, 3, 3, 8, 5, 5, 7, 2, 2, 4, 2, 2, 6, 4, 4, 6, 2, 2 (list; graph; listen)
OFFSET

0,4

FORMULA

a(0)=1, a(1)=1, a(2)=1 and, for n>0, a(3n)=a(n)+a(n-1), a(3n+1)=a(n), a(3n+2)=a(n).

G.f.=product((1+x^(3^j)+x^(2*(3^j))+x^(3*(3^j))), j=0..infinity). - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 02 2006

EXAMPLE

a(33)=4 because we have 33=27+3+3=27+3+1+1+1=9+9+9+3+3=9+9+9+3+1+1+1.

MAPLE

a[0]:=1: a[1]:=1: a[2]:=1: for n from 1 to 35 do a[3*n]:=a[n]+a[n-1]: a[3*n+1]:=a[n]: a[3*n+2]:=a[n] od: A:=[seq(a[n], n=0..104)]; - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 02 2006

g:=product((1+x^(3^j)+x^(2*(3^j))+x^(3*(3^j))), j=0..10): gser:=series(g, x=0, 125): seq(coeff(gser, x, n), n=0..104); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 02 2006

CROSSREFS

Cf. A002487.

Sequence in context: A056138 A067594 A089533 this_sequence A161068 A161107 A161042

Adjacent sequences: A054387 A054388 A054389 this_sequence A054391 A054392 A054393

KEYWORD

nonn

AUTHOR

John W. Layman (layman(AT)math.vt.edu), May 09 2000

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 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research