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
What is the value of the median in the set of data represented by the following box-and-whisker plot?
Phoenix [80]

Answer:

D)  15.5

Step-by-step explanation:

median is the middle line inside the 'box'

6 0
3 years ago
Read 2 more answers
The ratio of wolves to cougars in a forest is 5:3 find and interpret the value of the ratio
Iteru [2.4K]

Answer:

There are 5 wolves per 3 Cougars

Step-by-step explanation:

4 0
2 years ago
Which of the following is the graph of y = 4x + 2?
BARSIC [14]
Your graph should look like this

6 0
3 years ago
Read 2 more answers
(b) Eric removed 72 fish from his pond over a period of 9 days. He removed the same number of
Amanda [17]

Answer:

-8

Step-by-step explanation:

72 ÷ 9 = 8

The fish are being taken out, so negative.

I hope this helps!

pls ❤ and mark brainliest pls!

8 0
3 years ago
Use the graph below to determine the number of solutions the system has.
ankoles [38]
The correct answer would be the last option D
4 0
3 years ago
Other questions:
  • Write an equation in slope-intercept form for each line described.
    12·1 answer
  • The total cost of Anja’s trip to the dentist was $628.35. She paid a flat fee of $89.95 which included the checkup and cleaning
    7·1 answer
  • In a class of 47 students, the number of males is 7 less than twice the number of females. How many females and how many males a
    13·1 answer
  • Ken bought a car that holds 20.75 gallon of gas and gets an average of 15.5 miles per gallon how many miles can he expect to go
    5·1 answer
  • How do you get 3/5 of 20
    14·1 answer
  • (10m2+6mx−11x2)+(−2m2+4mx+4x2)
    14·1 answer
  • Two car dealerships sell only cars and trucks. At Dan’s Dealerships, the ratio of trucks sold to cars sold is 7:12 an at Carly’s
    10·2 answers
  • Find the slope of the line passing through the points (-7, -3) and (6,-3
    8·1 answer
  • 408/x = 4/9 <br> i really need help ofn
    13·1 answer
  • The coordinates of the vertices of a quadrilateral are (8, 11) (11, 7) (8, 3) (2, 3). What is the area, in square units, of the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!