Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A119917
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A119917 Number of rationals in [0, 1) consisting just of repeating bits of period at most n. +0
3
1, 3, 9, 21, 51, 105, 231, 471, 975, 1965, 4011, 8031, 16221, 32475, 65205, 130485, 261555, 523131, 1047417, 2094957, 4191975, 8384229, 16772835, 33545715, 67100115, 134200785, 268418001, 536837061, 1073707971, 2147415981 (list; graph; listen)
OFFSET

1,2

FORMULA

a(n) = sum_{i=1..n} sum_{d|i} (2^d - 1) * mu(i/d)

EXAMPLE

1/6 = 0.0010101... has repeating bits of period 2, but isn't counted because it has a preperiodic part (i.e., the repetition doesn't start immediately after the binary point). Also, 0 = 0.000... is counted and considered to have period 1.

a(1) = |{0 = 0.(0)...}| = 1

a(2) = |{0 = 0.(0)..., 1/3 = 0.(01)..., 2/3 = 0.(10)...}| = 3

MATHEMATICA

Table[Sum[Plus@@((2^Divisors[i]-1)MoebiusMu[i/Divisors[i]]), {i, 1, n}], {n, 1, 30 }]

CROSSREFS

Partial sums of A038199.

Adjacent sequences: A119914 A119915 A119916 this_sequence A119918 A119919 A119920

Sequence in context: A006813 A056823 A105544 this_sequence A111209 A109755 A005254

KEYWORD

nonn,base,easy

AUTHOR

Brad Chalfan (brad(AT)chalfan.net), May 29, 2006

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 May 16 23:01 EDT 2008. Contains 139884 sequences.


AT&T Labs Research