MathGroup Archive 2008

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

Search the Archive

RE: Find count of binary number pattern within concatenated number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91144] RE: [mg91093] Find count of binary number pattern within concatenated number
  • From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
  • Date: Thu, 7 Aug 2008 04:40:59 -0400 (EDT)
  • References: <200808060903.FAA22227@smc.vnet.net>

Diana:

StringCount["11011100101110111100010011010101111001101", "1101"]

http://reference.wolfram.com/mathematica/ref/StringCount.html

Jose
Mexico


-----Mensaje original-----
De: Diana [mailto:diana.mecum at gmail.com]
Enviado el: Mi=E9rcoles, 06 de Agosto de 2008 04:04
Para: mathgroup at smc.vnet.net
Asunto: [mg91093] 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: Find count of binary number pattern within concatenated number
  • Next by Date: NDSolve::mconly in algebraic differential equations
  • Previous by thread: Re: Find count of binary number pattern within concatenated number
  • Next by thread: Re: Find count of binary number pattern within concatenated number