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
2 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]2 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
Write a formula for r in terms of 0 based on the image below.
Marina86 [1]

<u>Given</u>:

The arc length for the given sector is 7π

The central angle for the given sector is θ

The radius of the circle is r.

We need to determine the formula for r in terms of θ

<u>Formula for r:</u>

The formula for r in terms of θ can be determined using the arc length formula,

S=r \theta

Substituting the values, we have;

7 \pi =r \theta

Dividing both sides by θ, we get;

\frac{7 \pi}{\theta}=r

Thus, the formula for r in terms of θ is \frac{7 \pi}{\theta}

7 0
3 years ago
Solve this problem plss<br> -2 x &lt; 12
wlad13 [49]

Answer:

x<14

Step-by-step explanation:

5 0
2 years ago
You have $15.60 to buy juice boxes. Each juice box costs $0.80. How many juice boxes can you buy? Should you expect to get chang
geniusboy [140]
You can buy 19 yes you should have change 40¢ would be your change
5 0
2 years ago
Read 2 more answers
Jack is using a ladder to hang lights up in his house.he places the ladder 5 feet from the base of his house and leans it so it
Yakvenalex [24]

You did not complete your question but I think this is what you are looking for. View the image.

5 0
2 years ago
What is 12(6+9m) simplified
Alex

Answer:

12(6+9m)

therefore we multiple the 12 by the numbers in the blaket

72+10m

that's the correct answer

5 0
2 years ago
Read 2 more answers
Other questions:
  • A ball on a pendulum moves 30 cm on its first swing. Each succeeding swing it
    12·1 answer
  • If (-3)^-5=1/x, what is the value x?
    7·2 answers
  • Sebastian was in a hotel lobby and took the elevator up 7 floors to his room. Then he took the elevator down 9 floors to the par
    7·2 answers
  • Can someone help in need the length of the third side
    14·1 answer
  • Answer questions #13 &amp; 14. Number 13: What is the system shown? Number 14: Type the correct answer in the box. THE IMAGE BEL
    11·2 answers
  • PLEASE HELP I really need it so please can you help me answer 1-18, please and PLEASE DONT GIVE DUM ANSWERS LIKE Things to know
    9·1 answer
  • The sum of three numbers is 78. The second number is 10 more than the first, and the third number is two times the second number
    8·1 answer
  • "Six more than one third of a number is<br> three."
    10·2 answers
  • 2 Write the equation of the line that goes
    14·1 answer
  • Eroy collected data on the number of hours that each staff member at Eroy's Electronics slept Thanksgiving night. Mary the Manag
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!