[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Let's see how many summerfags have invaded this board.
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 17
Thread images: 2
File: actualbits.jpg (119 KB, 600x450) Image search: [Google]
actualbits.jpg
119 KB, 600x450
Let's see how many summerfags have invaded this board.

How many 25-bit arrays can you form if they must contain exactly 15 ones and no consecutive zeroes?
>>
8008
>>
>hey /g/ do my homework for me

How about you fuck off.
>>
>>55622705
cant you write somthing that does that?
>>
>>55622705
17 choose 10 is my best guess
>>
Infinini
>>
Permutate and remove duplicates.
>>
Compute the 25! permutations of your arrays and then do a pattern match on them.

Don't post on /g/ until that program finishes running.
>>
>>55622804
DING DING DING
This guy actually knows informatics.
>>
>>55622956
This is 7th grade maths level.
>>
File: literally unsaucable.jpg (102 KB, 800x600) Image search: [Google]
literally unsaucable.jpg
102 KB, 800x600
>>55622705
Why 25-bit? Why not take it a step further?
>>
>>55623022
n-bit array then
>>
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

first zero can go into 16 spots, second zero can go into 15 spots, third can go into 14 spots etc
so this is 16!/6! or
16*15*14*13...*7

i hate counting, but i think this is write
>>
>>55623339
I had the same idea but considering the position of 1's instead of 0's.

For 25-bit the lowest number of 1's that gives no solution is 12.
After that the next 1 can go in 13 places, the next in 12, then 11, then 10.
That gives 13*12*11*10 = 17160. However the 1's are not distinct so this overcounts by n! where n is the number of 1's we used.
We used four 1's so my final answer is 13*12*11*10/4! = 715.

I am off to work so by the time I check this thread again once it will probably be dead. Hopefully someone can find a flaw with this method because I don't think it's correct.
>>
>>55623482
ya im overcounting ofcourse like a retard you are correct
>>
>>55623339
You are off by 10! Zeros aren't unique retard kys
>>
>>55623339
You're permuting the zeroes, you should divide that by 10!
Thread replies: 17
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.