MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Find count of binary number pattern within concatenated number


Math folks,

Can someone tell me how to find the count of the occurrences of "1101"
within "11011100101110111100010011010101111001101" generated with the
FromDigits statements below? I will be increasing "n".

n=13

FromDigits[Flatten[IntegerDigits[Range[n],2]]]

11011100101110111100010011010101111001101.

FromDigits[IntegerDigits[n, 2]]

1101

Diana



  • Prev by Date: Re: Can not run Mathematica 6.0.3 on Fedora 9
  • Next by Date: Re: Can not run Mathematica 6.0.3 on Fedora 9
  • Previous by thread: Re: Evaluate part of rhs of RuleDelayed
  • Next by thread: Re: Find count of binary number pattern within concatenated number