Jump to content

The ultimate community for Ruby on Rails developers.


Table Serial - Challenge

  • Please log in to reply
No replies to this topic

#1 jalal-moumou



  • Members
  • 1 posts

Posted 12 June 2014 - 10:48 PM

Table Serial - Challenge
Gentlemen, I want to help me

I cannot solve it for the multitude of their probability ... Could you please help

I have two tables of random values, and each table consists of 7 numbers in each table and each has a number (X).

When collecting (X) for each table there will be two possibilities:

    The first possibility is that the total is divisible by 7.
    In the second possibility, the total is not divisible by 7 ... and in this case, is added (Q) and its value as the number of single variable (17-19 -23), and Q is added until the total is divisible by 7.
    The maximum value of Q is 6 extras.

Required: first:

Linking the two tables must be :

  1-  Do not be mix  with the values of Table I Table II .. ie do not put No. 2, 3, 4, 5, 6 and 7 in the order of 8 to 14.
   2- The only value is fixed only No. 1.
   3- A total of seven values is divisible by 7 .... Any (2 to 8) and (9 to 3) and (4 to 10), and (5 to 11) and (6 to 12) and (7 to 13). These are all ... be a total divisible by 7 ...
   4- You must add each iteration of Q by your table only.


Required: Second :

 1-   All the values of the first table fixed from 1 to 7, which means the third table will link with the second table and must be take the probability of Q from 0 to 6.
   2-  Connecting the second table to table in the same first previous applications.


 This the file link :http://www.4shared.c...table_by_7.html
And Thank you very much ...


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users