Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A083904
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A083904 G.f. 1/(1-x) * sum(k>=0, 3^k*x^2^(k+1)/(1+x^2^k)). +0
1
0, 1, 0, 4, 3, 1, 0, 13, 12, 10, 9, 4, 3, 1, 0, 40, 39, 37, 36, 31, 30, 28, 27, 13, 12, 10, 9, 4, 3, 1, 0, 121, 120, 118, 117, 112, 111, 109, 108, 94, 93, 91, 90, 85, 84, 82, 81, 40, 39, 37, 36, 31, 30, 28, 27, 13, 12, 10, 9, 4, 3, 1, 0, 364, 363, 361, 360 (list; graph; listen)
OFFSET

1,4

COMMENT

Distance to next number of form 2^k-1, written down in binary, then interpreted as ternary. Thus the numbers have no 2 in ternary representation.

LINKS

R. Stephan, Some divide-and-conquer sequences ...

R. Stephan, Table of generating functions

FORMULA

a(1)=0, a(2n) = 3a(n)+1, a(2n+1) = 3a(n).

a(n) = 1/2*(3^(floor(log2(n))+1)-1) - A005836(n).

PROGRAM

(PARI) for(n=1, 100, l=ceil(log(n)/log(2)):t=polcoeff(1/(1-x)*sum(k=0, l, 3^k*(x^2^(k+1))/(1+x^2^k)), n):print1(t", "))

CROSSREFS

Cf. A005823, A005836.

Adjacent sequences: A083901 A083902 A083903 this_sequence A083905 A083906 A083907

Sequence in context: A021236 A136590 A117026 this_sequence A129810 A016500 A046546

KEYWORD

nonn,easy

AUTHOR

Ralf Stephan (ralf(AT)ark.in-berlin.de), Jun 18 2003

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 October 12 15:26 EDT 2008. Contains 144830 sequences.


AT&T Labs Research