Easy One

Algebra Level 3

How many triplets (a, b, c) for a+b+c=1 and a,b,c={-1,0,1}.

6 3 0 Infinity

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Aronas Nuresi
Apr 16, 2014
1 0 0
0 1 0
0 0 1
1 1 -1
1 -1 1
-1 1 1
Bill Bell
Jun 30, 2014

I used the diophantine solver from the sympy Python-language library known as sympy:

1
2
3
4
5
from sympy.solvers.diophantine import diophantine
from sympy import *

a,b,c=symbols('a b c')
diophantine( a+b+c-1)

It gave me the parametric result

set([(t, -c - t + 1, c)])

't' is clearly the same as 'a'. I can therefore simply evaluate these three expressions for the acceptable values for 'a' and 'c' to obtain all possible acceptable solutions. They are:

-1 1 1

0 1 0

0 0 1

1 1 -1

1 0 0

1 -1 1

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...