I think that on first glance, since 7781 is not exactly divisable by 7, and 14 is a multiple of 7, then this is not able to be calculated.
However, if the number was say 7784 then dividing by 7 gives 1112 and dividing by 14 gives 556. so 556 14 nighters would leave nil available 7 nighters.
now if there were 555 14 nighters that would leave 2 7 nighters. and so on:
|
14 |
7 |
7784 |
556 |
0 |
|
555 |
2 |
|
554 |
4 |
|
553 |
6 |
|
552 |
8 |
|
551 |
10 |
|
550 |
12 |
|
549 |
14 |
|
548 |
16 |
|
547 |
18 |
|
546 |
20 |
|
545 |
22 |
|
544 |
24 |
|
543 |
26 |
|
542 |
28 |
|
541 |
30 |
|
540 |
32 |
|
539 |
34 |
|
538 |
36 |
|
537 |
38 |
|
536 |
40 |
|
535 |
42 |
etc until you get 0 14 nighters and 1112 7 nighters.
How you decide which combination is correct,,,, well, i don't think you can determine that.
Edited at 01 Jul 2016 04:57 PM GMT
|