Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A103318
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A103318 Number of solutions i in range [0,n-1] to i == 0 mod 2^(n-i). +0
6
1, 1, 2, 1, 2, 2, 2, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 2, 3, 2, 2, 2, 2, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 2, 3, 2, 2, 2, 2, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 2, 3, 2, 3, 3, 2, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 2, 3, 2, 2, 2, 2, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 2, 3 (list; graph; listen)
OFFSET

1,3

COMMENT

i=0 is always a solution.

a(n) is the number of 1's in (A103745(n) written in base 2). - Philippe DELEHAM, Apr 02 2005

LINKS

David Applegate, Benoit Cloitre, Philippe DELEHAM and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers [pdf, ps].

FORMULA

a(n) = A104234(2^n - n). - DELEHAM Philippe (kolotoko(AT)wanadoo.fr), Apr 21 2005

EXAMPLE

For n = 11 solutions are i = 0, 8 and 10. Four solutions occur for the first time at n = 2059: they are i = 0, 2048, 2056, 2058. Five solutions occur for the first time at n = 2^2059 + 2059 (see A034797).

MAPLE

f:= proc (n) local t1, l; t1 := 0; for l to n do if `mod`(n-l, 2^l) = 0 then t1 := t1+1 end if end do; t1 end proc;

MATHEMATICA

f[n_] := Block[{c = 1, k = Max[1, n - Floor[ Log[2, n] + 2]]}, While[k < n, If[ Mod[k, 2^(n - k)] == 0, c++ ]; k++ ]; c]; Table[ f[n], {n, 105}] (from Robert G. Wilson v Mar 21 2005)

CROSSREFS

For records see A034797. Cf. A103745.

Sequence in context: A066086 A160520 A145866 this_sequence A002321 A043530 A164995

Adjacent sequences: A103315 A103316 A103317 this_sequence A103319 A103320 A103321

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Mar 21 2005

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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research