求满足a-b的绝对值+ab=1的非负整数a、b的值?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 01:39:25
求满足a-b的绝对值+ab=1的非负整数a、b的值?求满足a-b的绝对值+ab=1的非负整数a、b的值?求满足a-b的绝对值+ab=1的非负整数a、b的值?|a-b|+ab=1a、b均为非负整数,则1

求满足a-b的绝对值+ab=1的非负整数a、b的值?
求满足a-b的绝对值+ab=1的非负整数a、b的值?

求满足a-b的绝对值+ab=1的非负整数a、b的值?
|a-b| + ab = 1
a、b均为非负整数,则
1.|a-b| = 0,ab =1,可得a = b =1
2.|a-b| = 1,ab =0
a = 0,b =1 (b=-1舍去)
或 b = 0,a =1 (a=-1舍去)
所以有三组a = b = 1; a = 0,b = 1; a =1,b = 0