Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A091311
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A091311 Partial sums of 3^A007814(n). +0
1
0, 1, 4, 5, 14, 15, 18, 19, 46, 47, 50, 51, 60, 61, 64, 65, 146, 147, 150, 151, 160, 161, 164, 165, 192, 193, 196, 197, 206, 207, 210, 211, 454, 455, 458, 459, 468, 469, 472, 473, 500, 501, 504, 505, 514, 515, 518, 519, 600, 601, 604, 605, 614, 615, 618, 619 (list; graph; listen)
OFFSET

0,3

FORMULA

Recurrence: a(2n) = 3a(n) + n, a(2n+1) = 3a(n) + n + 1.

G.f.: 1/(1-x) * sum(k>=0, 3^k*t/(1-t^2), t=x^2^k).

PROGRAM

(PARI) a(n)=sum(k=1, n, 3^valuation(n, 2))

(PARI) a(n)=if(n<1, 0, if(n%2==0, 3*a(n/2)+n/2, 3*a((n-1)/2)+(n+1)/2))

CROSSREFS

First differences are A061393(n)-1.

Equals 2*A005836(n) - n.

Sequence in context: A102981 A029663 A082312 this_sequence A008540 A000867 A049770

Adjacent sequences: A091308 A091309 A091310 this_sequence A091312 A091313 A091314

KEYWORD

nonn,easy

AUTHOR

Ralf Stephan (ralf(AT)ark.in-berlin.de), Feb 24 2004

page 1

Search completed in 0.004 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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research