Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A061168
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A061168 Partial sums of A000523. +0
6
0, 1, 2, 4, 6, 8, 10, 13, 16, 19, 22, 25, 28, 31, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 103, 108, 113, 118, 123, 128, 133, 138, 143, 148, 153, 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248 (list; graph; listen)
OFFSET

1,3

COMMENT

Given a term b>0 of the sequence and its left hand neighbour c, the corresponding unique sequence index n with property a(n)=b can be determined by n(b)=e+(b-d*(e+1)+2*(e-1))/d, where d=b-c and e=2^d. - Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), Dec 05 2006

REFERENCES

M. Griffiths, Double sequences of positive integers, Math. Gaz., 86 (2002), 285-287.

D. E. Knuth, Fundamental Algorithms, Addison-Wesley, 1973, Section 1.2.4, ex. 42(b).

LINKS

J.-P. Allouche and J. Shallit, The ring of k-regular sequences, Theoretical Computer Sci., 98 (1992), 163-197, ex. 27.

FORMULA

a(n) = Sum_{k=1..n} floor(log_2(k)) = (n+1)*floor(log_2(n)) - 2*(2^floor(log_2(n)) - 1). - Diego Torres (torresvillarroel(AT)hotmail.com), Oct 29 2002

G.f.: 1/(1-x)^2 * Sum(k>=1, x^2^k). - Ralf Stephan (ralf(AT)ark.in-berlin.de), Apr 13 2002

MAPLE

[seq(add(floor(log_2(k)), k=1..j), j=1..100)]

(PARI) a(n)=if(n<1, 0, if(n%2==0, a(n/2)+a(n/2-1)+n-1, 2*a((n-1)/2)+n-1)) (from R. Stephan)

PROGRAM

(PARI) a(n)=local(k); if(n<1, 0, k=length(binary(n))-1; (n+1)*k-2*(2^k-1))

CROSSREFS

Cf. A001855.

a(n) = A001855(n+1)-n.

Sequence in context: A053044 A129011 A130174 this_sequence A130798 A025224 A096182

Adjacent sequences: A061165 A061166 A061167 this_sequence A061169 A061170 A061171

KEYWORD

nonn

AUTHOR

Antti Karttunen Apr 19 2001

page 1

Search completed in 0.005 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research