Number of ways of writing n as a sum of powers of 3, each power being used at most three times.

A054390

Number of ways of writing n as a sum of powers of 3, each power being used at most three times.

Terms

    a(0) =1a(1) =1a(2) =1a(3) =2a(4) =1a(5) =1a(6) =2a(7) =1a(8) =1a(9) =3a(10) =2a(11) =2a(12) =3a(13) =1a(14) =1a(15) =2a(16) =1a(17) =1a(18) =3a(19) =2a(20) =2a(21) =3a(22) =1a(23) =1a(24) =2a(25) =1a(26) =1a(27) =4a(28) =3a(29) =3

External references