A little mathematical puzzle
We just need to get even parity i guess
Its not true. Suppose the given sequence is : 5 10 14 In this case answer is 1.
Yeah, making everything even is just an upper bound. Not the least upper bound
yes that is for sure :)
Another example : 11 33 55 answer would be 0 here. PS : I am just considering already non decreasing sequences for now
hey is it solved already?
nope
okay so n buckets, non decreasing order, GCD of partitions > 1 i have a question about the GCD of paritions
are we talking about comaring all the paritions at once or the comparison of* 2 paritions at a time
GCD of all the elements taken at once. GCD(11,33,55) = 11
kk
cool question so i think we should be considering prime number seapaartiosn basically
so lets take an example n=20 2*2*5, as it has only 3 prime factors there can only be 1 sequence
for n bunckets
Let \(\{a_n\}\) be the given sequence. Let \(\{b_n\}\) be the required sequence of extra balls. Then we need to have \(\gcd(a_1+b_1,a_2+b_2,\ldots,a_n+b_n ) \gt 1\), and \(\{a_n+b_n\}\) must be a non decreasing sequence.
oh true we also have to consider the unknown balls in each bin first of all
if they were all zero they have the trivial solution of simple adding by 2s in each bin
Assume that minimum ball in each bin is >=1
\(\gcd(p,q,r) = \gcd(\gcd(p,q),r)\)
|dw:1451732778758:dw|
Join our real-time social learning platform and learn together with your friends!