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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033922 Base 2 digital convolution sequence. 1
1, 1, 1, 2, 1, 2, 2, 3, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 4, 5, 5, 6, 5, 6, 6, 7, 3, 4, 4, 5, 4, 5, 5, 6, 5, 6, 6, 7, 6, 7, 7, 8, 2, 3, 3, 4, 3, 4, 4, 5, 4, 5, 5, 6, 5, 6, 6, 7, 3, 4, 4, 5, 4, 5 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

COMMENTS

Definition: a(0) = 1; for n > 0, let the base 2 representation of n be 2^k_1 + ... + 2^k_i, then a(n) = a(k_1) + ... + a(k_i).

LINKS

Alois P. Heinz, Table of n, a(n) for n = 0..10000

EXAMPLE

For example, 6 = 2^2 + 2^1, so a(6) = a(2) + a(1) = 2.

MAPLE

a:= proc(n) option remember; local c, m, t; if n=0 then 1 else m:= n; c:=0; for t from 0 while m<>0 do c:= c+ `if` (irem (m, 2, 'm')=1, a(t), 0) od; c fi end: seq (a(n), n=0..120);  # Alois P. Heinz, Jul 13 2011

PROG

(PARI) al(n)=local(v, k, e); v=vector(n+1); v[1]=1; for(m=1, n, k=m; e=0; while(k>0, if(k%2, v[m+1]+=v[e+1]); e++; k\=2)); v

CROSSREFS

Cf. A033639, A014221 (n such that a(n)=1).

Sequence in context: A143966 A178695 A029363 * A008624 A059169 A026922

Adjacent sequences:  A033919 A033920 A033921 * A033923 A033924 A033925

KEYWORD

nonn,base

AUTHOR

Dave Wilson

EXTENSIONS

Edited by Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Jul 13 2011

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 21:13 EST 2012. Contains 206085 sequences.