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
Find the value of x.
In-s [12.5K]

Answer:

x = 19 cm

Step-by-step explanation:

3+3+2+5+6 = 19

5 0
3 years ago
What is the equivalent ratio to 7:10
sergiy2304 [10]

Answer:

14/20

Step-by-step explanation:

6 0
3 years ago
Consider a normal distribution curve where the middle 85 % of the area under the curve lies above the interval ( 8 , 14 ). Use t
NeTakaya

Answer:

\mu = 11

\sigma = 2.08

Step-by-step explanation:

Problems of normally distributed samples are solved using the z-score formula.

In a set with mean \mu and standard deviation \sigma, the zscore of a measure X is given by:

Z = \frac{X - \mu}{\sigma}

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the pvalue, we get the probability that the value of the measure is greater than X.

Middle 85%.

Values of X when Z has a pvalue of 0.5 - 0.85/2 = 0.075 to 0.5 + 0.85/2 = 0.925

Above the interval (8,14)

This means that when Z has a pvalue of 0.075, X = 8. So when Z = -1.44, X = 8. So

Z = \frac{X - \mu}{\sigma}

-1.44 = \frac{8 - \mu}{\sigma}

8 - \mu = -1.44\sigma

\mu = 8 + 1.44\sigma

Also, when X = 14, Z has a pvalue of 0.925, so when X = 8, Z = 1.44

Z = \frac{X - \mu}{\sigma}

1.44 = \frac{14 - \mu}{\sigma}

14 - \mu = 1.44\sigma

1.44\sigma = 14 - \mu

Replacing in the first equation

\mu = 8 + 1.44\sigma

\mu = 8 + 14 - \mu

2\mu = 22

\mu = \frac{22}{2}

\mu = 11

Standard deviation:

1.44\sigma = 14 - \mu

1.44\sigma = 14 - 11

\sigma = \frac{3}{1.44}

\sigma = 2.08

7 0
2 years ago
Please help me will give branlist
MatroZZZ [7]

Answer: 36 hotdogs

Step-by-step explanation: You need to find the least common multiple of 9 and 12.

You can check by multiplying 9 and 12 by consecutive whole numbers until you find a number that they match.

Example:

9*1= 9 , 9*2=18, 9*3= 27, 9*4=36, 9*5=45

12*1=12, 12*2=24, 12*3 =36

They both share 36.

7 0
3 years ago
Find the value of X. Please show work.
OverLord2011 [107]

Answer:

x=11.2

Step-by-step explanation:

8 0
3 years ago
Other questions:
  • URGENT PLS HELPPPPP
    5·1 answer
  • The cost of 5 squash and 2 zucchini is 1.32. Three squash and 1 zucchini cost $0.75. Find the cost of each vegetable
    8·1 answer
  • We can calculate the depth d of snow, in centimeters, that accumulates in Harper's yard during the first h hours of a snowstorm
    8·2 answers
  • PLEASE HELP!! I’ll mark brainliest!! Image of the figure will be attached. 2.5 2.5 and 5 are the numbers! To get brainliest plea
    5·2 answers
  • Four more than half of the students in Bryan’s homeroom have tickets to attend the school’s musical. 20 students have tickets. S
    12·1 answer
  • Calista worked all summer to save for spending money while she is away for college. She goes off to college with $3920 in her sa
    8·1 answer
  • Luis and Erin are playing a game. They each start with 0 points.At the end of the game, Luis has 250 points, and Erin has
    12·1 answer
  • Fill in the blank <br><br> The vertext of y= x^2-8x+18 is ( , )<br><br><br> PleASE HELP ASAP
    7·1 answer
  • Help with mathhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
    12·2 answers
  • A triangle with side lengths of 5 meters, 7 meters and 9 meters.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!