MathGroup Archive 2008

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

Search the Archive

Find count of binary number pattern within concatenated number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91093] Find count of binary number pattern within concatenated number
  • From: Diana <diana.mecum at gmail.com>
  • Date: Wed, 6 Aug 2008 05:03:51 -0400 (EDT)

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