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
- References:
- Find count of binary number pattern within concatenated number
- From: Diana <diana.mecum@gmail.com>
- Find count of binary number pattern within concatenated number