Challenge: Linear Algebra Foundations #8 – Systems of Equations

Subdomeniu: Linear Algebra Foundations (linear-algebra-foundations)

Scor cont: 5.0 / 5

Submission status: Accepted

Submission score: 1.0

Submission ID: 464733289

Limbaj: python3

Link challenge: https://www.hackerrank.com/challenges/linear-algebra-fundamentals-8-systems-of-equations/problem

Cerinta

There are more than one integer values of $a$ for which the following system of equations in *x*, *y*, *z* has **no solutions**:  

$a$ *x* + *y*  + 2 *z* = 0  
   *x* + 2 *y* +  *z* = b  
2 *x* + *y* + $a$ *z* = 0  

What is the smallest integer value of $a$ for which the above system has no solutions? Fill in the required integer value into the text box. Do not leave any leading or trailing spaces.

Cod sursa

print(-1)
HackerRank Linear Algebra Foundations – Linear Algebra Foundations #8 – Systems of Equations