1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
azamat
3 years ago
9

I'm doing a task which involves magic v's, a maths pattern which has the rule of having the same total on each side. For e.g.

Mathematics
1 answer:
iogann1982 [59]3 years ago
6 0

Answer:

--1-- (of set 23456)

2   4

5 3

 6

--2-- (of set 23456)

2   3

5 4

 6

--3-- (of set 23456)

2   5

6 3

 4

--4-- (of set 23456)

2   3

6 5

 4

--5-- (of set 23456)

3   5

4 2

 6

--6-- (of set 23456)

3   2

4 5

 6

--7-- (of set 23456)

3   6

5 2

 4

--8-- (of set 23456)

3   2

5 6

 4

--9-- (of set 23456)

3   5

6 4

 2

--10-- (of set 23456)

3   4

6 5

 2

--11-- (of set 23456)

4   5

3 2

 6

--12-- (of set 23456)

4   2

3 5

 6

--13-- (of set 23456)

4   6

5 3

 2

--14-- (of set 23456)

4   3

5 6

 2

--15-- (of set 23456)

5   4

2 3

 6

--16-- (of set 23456)

5   3

2 4

 6

--17-- (of set 23456)

5   6

3 2

 4

--18-- (of set 23456)

5   2

3 6

 4

--19-- (of set 23456)

5   6

4 3

 2

--20-- (of set 23456)

5   3

4 6

 2

--21-- (of set 23456)

6   5

2 3

 4

--22-- (of set 23456)

6   3

2 5

 4

--23-- (of set 23456)

6   5

3 4

 2

--24-- (of set 23456)

6   4

3 5

 2

--1-- (of set 34567)

3   5

6 4

 7

--2-- (of set 34567)

3   4

6 5

 7

--3-- (of set 34567)

3   6

7 4

 5

--4-- (of set 34567)

3   4

7 6

 5

--5-- (of set 34567)

4   6

5 3

 7

--6-- (of set 34567)

4   3

5 6

 7

--7-- (of set 34567)

4   7

6 3

 5

--8-- (of set 34567)

4   3

6 7

 5

--9-- (of set 34567)

4   6

7 5

 3

--10-- (of set 34567)

4   5

7 6

 3

--11-- (of set 34567)

5   6

4 3

 7

--12-- (of set 34567)

5   3

4 6

 7

--13-- (of set 34567)

5   7

6 4

 3

--14-- (of set 34567)

5   4

6 7

 3

--15-- (of set 34567)

6   5

3 4

 7

--16-- (of set 34567)

6   4

3 5

 7

--17-- (of set 34567)

6   7

4 3

 5

--18-- (of set 34567)

6   3

4 7

 5

--19-- (of set 34567)

6   7

5 4

 3

--20-- (of set 34567)

6   4

5 7

 3

--21-- (of set 34567)

7   6

3 4

 5

--22-- (of set 34567)

7   4

3 6

 5

--23-- (of set 34567)

7   6

4 5

 3

--24-- (of set 34567)

7   5

4 6

 3

Step-by-step explanation:

This javascript code is extremely brute-force, but it does the job:

function checkIfInSet(i, set) {

   return i.toString().split('').sort().join('') === set;

}

function checkIfMagic(s) {

   return (parseInt(s[0]) + parseInt(s[1]) == parseInt(s[3]) + parseInt(s[4]))

}

function printMagic(s) {

   console.log(`${s[0]}   ${s[4]}`);

   console.log(` ${s[1]} ${s[3]}`);

   console.log(`  ${s[2]}\n`);

}

function checkSet(set) {

   let counter = 1;

   for(let i=1; i<99999; i++) {

       if (checkIfInSet(i, set) && checkIfMagic(i.toString())) {

           console.log(`--${counter++}-- (of set ${set})`);

           printMagic(i.toString());

       }

   }

}

checkSet('23456');

checkSet('34567');

You might be interested in
The distribution of bladder volume in men is approximately normal with mean 550 ml and standard deviation 100 ml. what percent o
ruslelena [56]

To solve this, we use the z-test.

z = (x – u) / σ

when x = 450

z = (450 – 550) / 100

z = -1

 

We use the standard distribution tables to find for P.

P = 0.1587

 

Since we are looking for values greater than x = 450, therefore:

1 – 0.1587 = 0.8413

 

This means that 84.13% have bladder volume larger than 450 mL.

7 0
3 years ago
Eve and Maria have summer jobs selling newspaper subscriptions door-to-door, but their compensation plans are different. Eve ear
frozen [14]

Answer:

if Maria sells 6 she will make 12 add base wage she earned 15. if eve sells 1 she will also make a profit of 15

5 0
3 years ago
PLEASE HELP<br> need to know cos(F), sin(F), and tan(F) <br> WILL GIVE BRAINLIEST
SVETLANKA909090 [29]

Answer:

Cos(F) = 5/13  

Sin(F) =  12/13

Tan(F) =  12/5

Step-by-step explanation:

Soh Sine: Opposite(12) over Hypotenuse(13)

Cah Cosine: Adjacent(5) over Hypotenuse(13)

Toa  Tangent: Opposite(12) over Adjacent(5)

7 0
3 years ago
If 12 1/2% of a sum of money is $40 what is the total sum of money?
alukav5142 [94]
12 1/2% = 12.5%

12.5% = $40

1% = 40 ÷ 12.5 = $3.20

100% = $3.20 x 100 = $320

Answer: $320
8 0
3 years ago
Please help me with this ​
adell [148]

Answer:

y = (x - 2)^{2}

Step-by-step explanation:

the graph shows the vertex is (2,0); which means it is

y = (x - 2)^{2} which show 2 units to the right on the x-axis and staying at y=0

6 0
3 years ago
Other questions:
  • Covert 4.5 yards to inches what is the answer ?
    12·2 answers
  • Find the length of an arc of 40° in a circle with an 8 inch radius.
    8·2 answers
  • Find the first six terms of the sequence.
    6·1 answer
  • Need help! please! I'll give brianliest to right answer
    9·1 answer
  • 5n=34=-2(1-7n) help me pleas
    14·1 answer
  • What does X equal.<br> 6x+2=10x-16
    7·2 answers
  • If x = 1 is a zero of the polynomial 3+ kx^2 + 2 ,find the value of k. <br><br>Plz it's urgent. ​
    5·1 answer
  • 10.2 puzzle time did you hear about the... page 328
    14·1 answer
  • Dear Ms. Quadratic
    10·1 answer
  • What is the equation of the line that passes through the point (1,8) and has a slope of 11?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!