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
Eight people go to a movie. Adult tickets cost $15 and children's tickets cost $8
Reptile [31]

Answer: number of adults = 3, number of children = 5

Step-by-step explanation:

let the number of adults be x, and the number of children be y.

x + y = 8 , 15x + 8y = 85

1st equation x 8 = 8x + 8y = 64

8x+8y-15x-8y = 64 - 85\\-7x = -21\\x=3

substitute x=3

3+y=8\\y=5

5 0
3 years ago
Rename the fraction 1/4 using the least common denominator,12
kiruha [24]

Answer:

3/12

Step-by-step explanation:
to rename the fraction with the common denominator of 12, u have to multiply 1/4 by 3/3 to get 3/12. You can check ur answer by simplifying your answer. 3/12=1/4

4 0
2 years ago
Read 2 more answers
Jordan wants to measure a length of fabric, but the only tape measure she has is damaged. The first number on her tape measure i
Alex
Djdjxkdjdkdkdjddjdjdj yuppppppppp 37387(5y6666+4)WEI
7 0
3 years ago
A new car is sold with or without antilock brakes, with or without a CD player, with or without electric seats, and with or with
True [87]

Answer:

8 different choices

Step-by-step explanation:

With or without antibrake=2 ways

With or without player=2ways

With or without sunroof=2 ways

Total number of ways=2×2×2=8 ways

3 0
3 years ago
For which equation does it make the most sense to solve by using the square root property?
VARVARA [1.3K]
The answer 4x^2-5=20 i just took the test
4 0
3 years ago
Read 2 more answers
Other questions:
  • Find the equation of the line that is perpendicular to y = –4x + 8 and passes though the point (–12, 4). A) y = – 1 4 x + 7 B) y
    15·1 answer
  • Marcelo runs 3/4 of a mile in 1/8 of an hour. What is his unit rate in miles per hour?
    6·1 answer
  • Debbie needs to fill juice cups for her little brother's birthday party. There are 20 juice cups and each juice cup holds 10 flu
    7·1 answer
  • A rectangle’s perimeter and its area have the same numerical value. The width of the
    5·1 answer
  • A store manager wishes to investigate whether there is a relationship between the type of promotion offered and the number of cu
    9·2 answers
  • What is the length of the hypotenuse of the right triangle? Enter your answer in the box.
    15·2 answers
  • In a certain​ city, the average​ 20- to​ 29-year old man is 69.6 inches​ tall, with a standard deviation of 3.1 ​inches, while t
    14·1 answer
  • Find the slope. hsjsnsjsbjabajabahabh​
    10·1 answer
  • What is the solution to the system of equations 3x + 5y = -1<br> ?<br> 6x - 4y = 26
    9·1 answer
  • What is 7 x 7 x 7 x 7 x 7 as an exponent?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!