login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054390 Number of ways of writing n as a sum of powers of 3, each power being used at most three times. 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; refs; listen; history; internal format)
OFFSET

0,4

COMMENTS

Contribution from Gary W. Adamson (qntmpkt(AT)yahoo.com), Apr 14 2010: (Start)

Let M = an infinite matrix with (1, 1, 1, 1, 0, 0, 0,...) in each column

shifted down thrice from the previous column (for k>0). Then A054390 =

Lim_{n->inf} M^n, the left-shifted vector considered as a sequence. (End)

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: A067594 A089533 A184241 * A161068 A161107 A161042

Adjacent sequences:  A054387 A054388 A054389 * A054391 A054392 A054393

KEYWORD

nonn

AUTHOR

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 12:32 EST 2012. Contains 206016 sequences.